Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site watmum.UUCP Path: utzoo!watmath!watnot!watmum!cdshaw From: cdshaw@watmum.UUCP (Chris Shaw) Newsgroups: net.lang.c,net.lang.f77 Subject: Re: VAX VMS C / UNIX C Compatibility -- Need Info Message-ID: <249@watmum.UUCP> Date: Mon, 12-Aug-85 01:05:53 EDT Article-I.D.: watmum.249 Posted: Mon Aug 12 01:05:53 1985 Date-Received: Thu, 15-Aug-85 02:37:26 EDT References: <488@rdin.UUCP> Reply-To: cdshaw@watmum.UUCP (Chris Shaw) Organization: U of Waterloo, Ontario Lines: 21 Xref: watmath net.lang.c:5997 net.lang.f77:364 In article <488@rdin.UUCP> perl@rdin.UUCP (Robert Perlberg) writes: >Is the VAX VMS C-compiler compatible with UNIX? That is, can I take >C files that compiled under UNIX and compile them under VMS with no >changes other than the shell commands inside of system() calls? A guy >in my office says that to hope for this is naive at best, but I thought >that this ability was supposed to be a feature of C. > I tried porting Kermit from UNIX to VMS once, and it was a real bother.. all to do with system dependencies (tty names, etc) AND the way I/O was handled. 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. Other than that, porting is reasonably ok, but it was the terminal-driver part of the code that really made us chew steel wool. Chris Shaw watmath!watmum!cdshaw or cdshaw@watmath University of Waterloo Revolution is the opiate of the intellectuals.