home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / sgi / 18220 < prev    next >
Encoding:
Text File  |  1992-12-21  |  865 b   |  32 lines

  1. Xref: sparky comp.sys.sgi:18220 comp.sys.sgi.bugs:21 comp.unix.ultrix:8980
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!menudo.uh.edu!not-for-mail
  3. From: svec5@menudo.uh.edu (T.C. Zhao)
  4. Newsgroups: comp.sys.sgi,comp.sys.sgi.bugs,comp.unix.ultrix
  5. Subject: tempnam(3S) bug, possibly on all MIPS
  6. Date: 18 Dec 1992 22:23:37 -0600
  7. Organization: University of Houston
  8. Lines: 19
  9. Distribution: world
  10. Message-ID: <1gu849INNp6k@menudo.uh.edu>
  11. NNTP-Posting-Host: menudo.uh.edu
  12.  
  13. It appears that tempnam(3S) is broken on three MIPS machines I have
  14. access to:   IRIX 3.3, Ultrix 4.1, UMIPS 4.52:
  15.  
  16. /* 
  17.  * check to see if tempnam has the errno bug.
  18.  */
  19. #include <stdio.h>
  20. #include <stdlib.h>
  21. #include <unistd.h>
  22. #include <errno.h>
  23.  
  24. int main(int argc, char **argv)
  25. {
  26.    char *p;
  27.    errno = 0;
  28.    p = tempnam(0, 0);
  29.    if(errno) fprintf(stderr," tempnam is broken\n");
  30.    return 0;
  31. }
  32.