Article View: comp.sys.next.software
Article #1131Re: tmpnam() bug and workaround (WAS Re: CVS 1.3)
From: Royce Howland
Date: Thu, 15 Oct 1992 13:02
Date: Thu, 15 Oct 1992 13:02
23 lines
1721 bytes
1721 bytes
alex@cs.umd.edu (Alex Blakemore) writes:
>In article <1992Oct14.002716.8257@splunge.uucp> royce@splunge.uucp (Royce Howland) writes:
>> NeXT's tmpnam() doesn't work
>I think someone from NeXT posted that this was a known bug and they recommend using
>NXGetTempFilename() instead.
>you could also try mktemp() which may be more portable.
Ah, that's what the work-around was (NXGetTempFilename()). Well, it's
all well and good, but I prefer not to make machine-specific local mods
like that to software distributions from other sources, such as FSF.
mktemp() can be used directly, as it works and is more portable.
What I ended up doing, though, was linking in a tmpnam() from another
source, and it works fine. I suggested to the people at info-cvs that
they could include a tmpnam() in the CVS lib directory for NeXToids with
this problem, and thus not influence the rest of their code at all.
--
Royce Howland, DKW Systems Corp. | "And since OS/2 2.0 is a 32-bit
Everything is IMHO | operating system, programs are easier
royce@splunge.uucp (NeXTMail OK) | to write and run faster, too."
or kakwa!atlantis!splunge!royce | ad for OS/2 2.0
Technical Details
Message-ID:
<1992Oct15.130251.14331@splunge.uucp>Path:
arc1-ca.pugleaf.net!sparky!uunet!kithrup!stanford.edu!agate!spool.mu.edu!sdd.hp.com!usc!sol.ctr.columbia.edu!destroyer!cs.ubc.ca!unixg.ubc.ca!kakwa.ucs.ualberta.ca!atlantis!splunge!royceReferences:
<1992Oct14.002716.8257@splunge.uucp> <61162@mimsy.umd.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.software Path: arc1-ca.pugleaf.net!sparky!uunet!kithrup!stanford.edu!agate!spool.mu.edu!sdd.hp.com!usc!sol.ctr.columbia.edu!destroyer!cs.ubc.ca!unixg.ubc.ca!kakwa.ucs.ualberta.ca!atlantis!splunge!royce From: royce@splunge.uucp (Royce Howland) Subject: Re: tmpnam() bug and workaround (WAS Re: CVS 1.3) Message-ID: <1992Oct15.130251.14331@splunge.uucp> Organization: Ashley, Howland & Wood References: <1992Oct14.002716.8257@splunge.uucp> <61162@mimsy.umd.edu> Date: Thu, 15 Oct 1992 13:02:51 GMT Lines: 23