This patch is for OpenVMS Alpha systems. It was tested with DEC C V5.6-003 on OpenVMS Alpha V7.1. It should work on OpenVMS Alpha V7.0. OpenVMS V6.2 and below doesn't support "h_errno" so you will have to comment out the affected chunks of code. I have no idea if will work on OpenVMS VAX. VMS patches by John Ross Hunt (bigboote@ais.net) Tested with DEC C V5.6-003 on OpenVMS Alpha V7.1 To compile, link and execute: $ cc/prefix=all/standard=vaxc qstat $ link qstat $ qstat :== $'f$environ("default")'qstat.exe $ qstat "-P" "-qws" 38.241.43.118:27910 Note: Use quotes to preserve case in the command line switches. I don't care what anybody says. VMS rules! :)