> Von: "Christopher W. Curtis" <[EMAIL PROTECTED]>
> Betreff: Bug#368501: manpages-dev: tempnam.3, mktemp.3 says to use
> mkstemp.3 which says to use tmpfile.3
>
> Quite simply, the man pages for tempnam.3 and mktemp.3 both say to use
> mkstemp.3 but that man page says to never use the function and
> recommends using tmpfile.3.  tmpfile.3 seems happy to be called.
> 
> I hope that tmpfile() really is a secure call ... people seem confused.

Yes, they do.  By chance, I recently had the following comment to Joey
and Justin on the subject.

[[
> +Don't use this function, use
> +.BR tmpfile (3)
> +instead.  It is better defined and more portable.

This advice is dubious.  mkstemp() is standardised and well defined,
and serves a somewhat different purpose to tmpfile().
]]

The quoted text should just be removed from mkstemp.3...

Cheers,

Michael

-- 
Michael Kerrisk
maintainer of Linux man pages Sections 2, 3, 4, 5, and 7 

Want to help with man page maintenance?  
Grab the latest tarball at
ftp://ftp.win.tue.nl/pub/linux-local/manpages/, 
read the HOWTOHELP file and grep the source 
files for 'FIXME'.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to