On Mon, Aug 19, 2002 at 08:01:58PM +0200, Florent Rougon wrote: > Robert Millan <[EMAIL PROTECTED]> wrote: > > > sysintf.o: In function `Get_temp': > > sysintf.o(.text+0x5fc): the use of `tempnam' is dangerous, better use > > `mkstemp' > > Ahem. And what do I read in mkstemp's man page? ;-) > > Don't use this function, use tmpfile(3) instead. It's bet > ter defined and more portable.
more fun, from glibc documentation: Older Unix systems did not have the functions just described. [this includes tmpfile] Instead they used `mktemp' and `mkstemp'. so mkstemp is likely more portable. anyway, if you don't care about identifying that file in /tmp my guess is that tmpfile is faster. cheers, -- Robert Millan "5 years from now everyone will be running free GNU on their 200 MIPS, 64M SPARCstation-5" Andrew S. Tanenbaum, 30 Jan 1992