home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sdrc!thor!scjones
- From: scjones@thor.sdrc.com (Larry Jones)
- Newsgroups: comp.os.vms
- Subject: Re: C programming question under VMS
- Message-ID: <2399@sdrc.COM>
- Date: 14 Dec 92 21:59:38 GMT
- References: <9212111249.AA17880@uu3.psi.com>
- Sender: news@sdrc.COM
- Lines: 25
-
- In article <9212111249.AA17880@uu3.psi.com>, leichter@lrw.com (Jerry Leichter) writes:
- > b) The emulated open, creat, fopen, and freopen in the VAX C RTL
- > work just like the ones in Unix, with the exception that an
- > action that creates a new file in Unix usually creates a new
- > version of an existing file in VMS. (In VMS, if the file
- > specification contains an explicit version number of an
- > existing file, that version will be replaced. If that was
- > the only version of the file before, it remains the only
- > version and the semantics is essentially equivalent to Unix.
- > If the were other versions before, they continue to exist,
- > and it may no longer be the case that the highest version
- > number is the most current version of the file.)
-
- Unfortunately, it would appear that whoever wrote the most recent
- version of VAXCRTL didn't understand the way VMS is supposed to work.
- If you ask one of the above functions to open a file for output and
- specify an explicit version number, and that file already exists, the
- function fails rather than arranging for the existing file to be
- overwritten or replaced (which, as has been pointed out, is actually
- trivial to do with RMS). In my opinion, this is a serious error which
- should be SPRed until it gets fixed.
- ----
- Larry Jones, SDRC, 2000 Eastman Dr., Milford, OH 45150-2789 513-576-2070
- larry.jones@sdrc.com or ...uunet!sdrc!larry.jones
- It works on the same principle as electroshock therapy. -- Calvin
-