home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / sgi / 18222 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.4 KB

  1. Xref: sparky comp.sys.sgi:18222 comp.sys.sgi.bugs:22 comp.unix.ultrix:8982
  2. Newsgroups: comp.sys.sgi,comp.sys.sgi.bugs,comp.unix.ultrix
  3. Path: sparky!uunet!world!cmr
  4. From: cmr@world.std.com (Charles M Richmond)
  5. Subject: Re: tempnam(3S) bug, possibly on all MIPS
  6. Message-ID: <BzIxqC.Ivv@world.std.com>
  7. Organization: Integrated International Systems Corp. One Longfellow Place, Suite 3309, Boston, Ma.
  8. References: <1gu849INNp6k@menudo.uh.edu>
  9. Date: Sat, 19 Dec 1992 20:46:59 GMT
  10. Lines: 34
  11.  
  12. svec5@menudo.uh.edu (T.C. Zhao) writes:
  13.  
  14. >It appears that tempnam(3S) is broken on three MIPS machines I have
  15. >access to:   IRIX 3.3, Ultrix 4.1, UMIPS 4.52:
  16.  
  17. >/* 
  18. > * check to see if tempnam has the errno bug.
  19. > */
  20. >#include <stdio.h>
  21. >#include <stdlib.h>
  22. >#include <unistd.h>
  23. >#include <errno.h>
  24.  
  25. >int main(int argc, char **argv)
  26. >{
  27. >   char *p;
  28. >   errno = 0;
  29. >   p = tempnam(0, 0);
  30. >   if(errno) fprintf(stderr," tempnam is broken\n");
  31. >   return 0;
  32. >}
  33.  
  34. On a DS3100 with Ultrix 4.2a.
  35.  
  36. While the functionality is clearly correct (ie it does return the
  37. proper directory/name) , "tempnam" does consistantly return a 
  38. ENOENT errno, as does "tmpnam".
  39.  
  40. Charlie
  41. -- 
  42. *****************************************************************************
  43. *  Charles Richmond     Integrated International Systems Corporation        *
  44. *  cmr@world.std.com    (Temporary) cmr@koneko.shr.dec.com            *
  45. *  Specializing in UNIX, X, Image Processing, and Communications.           *
  46.