Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site bnl.UUCP Path: utzoo!linus!philabs!sbcs!bnl44!bnl!stern From: stern@bnl.UUCP (eric) Newsgroups: net.lang.c Subject: Re: VAX VMS C / UNIX C Compatibility -- Need Info Message-ID: <150@bnl.UUCP> Date: Tue, 27-Aug-85 12:50:32 EDT Article-I.D.: bnl.150 Posted: Tue Aug 27 12:50:32 1985 Date-Received: Thu, 29-Aug-85 23:46:28 EDT References: <488@rdin.UUCP> <249@watmum.UUCP> <545@osu-eddie.UUCP> Organization: Brookhaven National Lab. Upton, N.Y. Lines: 19 > > VMS is very record-ish, while stream i/o is the unix thing. Unfortunately, > > port didn't work because we didn't really spend the effort required to do > > the QIO's required to fake stream i/o on VMS. > A year or two ago, I wrote a xmodem protocol program for VMS and UNIX in C. The effort required to set up the raw state in both OS's was equivalent. Doing these things on VMS takes no more effort than finding the appropriate ioctl function codes on UNIX. When it got to doing the reads byte by byte with timeouts, VMS was much simpler than UNIX. Under VMS, just one function call was able to read n characters returning an error if more than t seconds elapsed between characters. Under UNIX, it was a complicated mess with two functions, alarms, longjmps and extra buffering. Eric G. Stern stern@bnl.arpa stern@bnl.bitnet ...!philabs!sbcs!bnl!stern