Path: utzoo!attcan!uunet!auspex!guy
From: guy@auspex.auspex.com (Guy Harris)
Newsgroups: comp.windows.x
Subject: Re: Linking Libraries/Undefined variables
Message-ID: <2369@auspex.auspex.com>
Date: 17 Aug 89 18:45:35 GMT
References: <3930009@hpcll01.HP.COM> <13489@bloom-beacon.MIT.EDU> <1687@bacchus.dec.com>
Reply-To: guy@auspex.auspex.com (Guy Harris)
Organization: Auspex Systems, Santa Clara
Lines: 17


 >> You are correct. Tempnam/Tmpnam is a routine in HP-UX C library that lets
 >> you create temporary files. It is strange that HP Widgets would use a routine
 >> that is not standardly available ... 
 >
 >For what it's worth, DEC Ultrix includes both tempnam and tmpnam.  I
 >don't have my old manuals with me, but I think one is primarily found
 >in AT&T UNIXs and the other in BSD UNIXs.  Only hybrid UNIXs will have
 >both.

BSD has "tmpnam", and S5 has "tempnam" and "tmpnam".  I don't know
which, if any, of them were in the AT&T UNIXes from which both BSD and
S5 were derived....

"tmpnam" is in POSIX, and "tempnam" isn't.  Given that, it would
probably be a good idea to avoid using "tempnam" if you possibly can,
since it's less likely to be available in any particular system.