home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / sgi / 18270 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  1.8 KB

  1. Xref: sparky comp.sys.sgi:18270 comp.sys.sgi.bugs:33 comp.unix.ultrix:9038
  2. Newsgroups: comp.sys.sgi,comp.sys.sgi.bugs,comp.unix.ultrix
  3. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!usc!sol.ctr.columbia.edu!eff!world!cmr
  4. From: cmr@world.std.com (Charles M Richmond)
  5. Subject: Re: tmpnam/tempnam 
  6. Message-ID: <Bzo3pt.3tA@world.std.com>
  7. Organization: Integrated International Systems Corp. One Longfellow Place, Suite 3309, Boston, Ma.
  8. References: <BzKIrq.GqI@world.std.com> <1992Dec22.143124.7110@julian.uwo.ca>
  9. Date: Tue, 22 Dec 1992 15:44:17 GMT
  10. Lines: 26
  11.  
  12.  
  13. kinch@valve.heart.rri.uwo.ca
  14.  
  15. >You can argue style if you like but the point is that errno is not tested
  16. >until it is known that an error has occured. 
  17. >Just because ENOENT was probably generated internally in tmpnam() doesn't
  18. >mean that it will be that after the call. It would be perfectly reasonable
  19. >and legal behaviour to clear errno (or set it to a completely bogus value)
  20. >if the call succeeds.
  21. >Just trying to keep the misinformation down to a minimum.
  22.  
  23. If you really want to run a tight loop on generating a unique filename
  24. then you probably do not want to do a fileopen for each iteration. You
  25. can depend on the internal check in all but the homebrew pseudo UNIXs.
  26. I suppose that you could look at the source for these to verify their
  27. functionality. If I can , I'll try to find some doc for this. I had a
  28. momentary lapse of memory, but I do remember this from the "good old
  29. days".   Of course if this is a feature that is no longer "officially"
  30. supported then one would have to discontinue using it.  )-:
  31.  
  32. Charlie
  33. -- 
  34. *****************************************************************************
  35. *  Charles Richmond     Integrated International Systems Corporation        *
  36. *  cmr@world.std.com    (Temporary) cmr@koneko.shr.dec.com            *
  37. *  Specializing in UNIX, X, Image Processing, and Communications.           *
  38.