home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / vms / 19264 < prev    next >
Encoding:
Internet Message Format  |  1992-12-14  |  1.7 KB

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