home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.sys.sgi:18222 comp.sys.sgi.bugs:22 comp.unix.ultrix:8982
- Newsgroups: comp.sys.sgi,comp.sys.sgi.bugs,comp.unix.ultrix
- Path: sparky!uunet!world!cmr
- From: cmr@world.std.com (Charles M Richmond)
- Subject: Re: tempnam(3S) bug, possibly on all MIPS
- Message-ID: <BzIxqC.Ivv@world.std.com>
- Organization: Integrated International Systems Corp. One Longfellow Place, Suite 3309, Boston, Ma.
- References: <1gu849INNp6k@menudo.uh.edu>
- Date: Sat, 19 Dec 1992 20:46:59 GMT
- Lines: 34
-
- svec5@menudo.uh.edu (T.C. Zhao) writes:
-
- >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;
- >}
-
- On a DS3100 with Ultrix 4.2a.
-
- While the functionality is clearly correct (ie it does return the
- proper directory/name) , "tempnam" does consistantly return a
- ENOENT errno, as does "tmpnam".
-
- Charlie
- --
- *****************************************************************************
- * Charles Richmond Integrated International Systems Corporation *
- * cmr@world.std.com (Temporary) cmr@koneko.shr.dec.com *
- * Specializing in UNIX, X, Image Processing, and Communications. *
-