home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.sys.sgi:18220 comp.sys.sgi.bugs:21 comp.unix.ultrix:8980
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!menudo.uh.edu!not-for-mail
- From: svec5@menudo.uh.edu (T.C. Zhao)
- Newsgroups: comp.sys.sgi,comp.sys.sgi.bugs,comp.unix.ultrix
- Subject: tempnam(3S) bug, possibly on all MIPS
- Date: 18 Dec 1992 22:23:37 -0600
- Organization: University of Houston
- Lines: 19
- Distribution: world
- Message-ID: <1gu849INNp6k@menudo.uh.edu>
- NNTP-Posting-Host: menudo.uh.edu
-
- It appears that tempnam(3S) is broken on three MIPS machines I have
- access to: IRIX 3.3, Ultrix 4.1, UMIPS 4.52:
-
- /*
- * check to see if tempnam has the errno bug.
- */
- #include <stdio.h>
- #include <stdlib.h>
- #include <unistd.h>
- #include <errno.h>
-
- int main(int argc, char **argv)
- {
- char *p;
- errno = 0;
- p = tempnam(0, 0);
- if(errno) fprintf(stderr," tempnam is broken\n");
- return 0;
- }
-