Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-crg!nike!ucbcad!ucbvax!NBS-VMS.ARPA!nunn From: nunn@NBS-VMS.ARPA ("NUNN, JOHN C.") Newsgroups: mod.computers.vax Subject: Re: VAX C help needed Message-ID: <8609070014.AA09116@ucbvax.Berkeley.EDU> Date: Sat, 6-Sep-86 14:43:00 EDT Article-I.D.: ucbvax.8609070014.AA09116 Posted: Sat Sep 6 14:43:00 1986 Date-Received: Sat, 6-Sep-86 22:17:09 EDT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: "NUNN, JOHN C." Organization: The ARPA Internet Lines: 15 Approved: info-vax@sri-kl.arpa Conrad, Provided 4.3BSD ex/vi hasn't changed much from ex/vi of 4.2BSD, you shouldn't have a problem with sbrk/brk. The problem I discovered, in porting ex/vi to vms, was a bug in VAX C V2.0. Ex/vi tries to open files and assumes that if it fails (file does not exist) that the file-descriptor will be available on the next successful open. This is normally the case in the UNIX environment. However, the VAX C OPEN fails to free the file-descriptor. Ex/vi, assuming that the file-descriptor value (I think it was 0) is assigned to an open file, tries to read on the failed file-descriptor. John ------