Re: Tempfile best practice vs. man pages

2006-12-04 Thread Michael Banck
On Sun, Dec 03, 2006 at 03:49:27PM -0800, Russ Allbery wrote: > The warning on mkstemp is wrong, or at least questionable. The info manual doesn't have this warning AFAICT. Michael -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECT

Re: Tempfile best practice vs. man pages

2006-12-03 Thread Russ Allbery
Nathanael Nerode <[EMAIL PROTECTED]> writes: > The manpages for the various ways of creating a temporary file from C > are a bit scary... > tmpnam(3): "Never use this function. Use mkstemp(3) or tmpfile(3) instead." > mktemp(3): "Never use mktemp()." > tempnam(3): "Never use this function. Use

Tempfile best practice vs. man pages

2006-12-03 Thread Nathanael Nerode
The manpages for the various ways of creating a temporary file from C are a bit scary... tmpnam(3): "Never use this function. Use mkstemp(3) or tmpfile(3) instead." mktemp(3): "Never use mktemp()." tempnam(3): "Never use this function. Use mkstemp(3) or tmpfile(3) instead." mkstemp(3): "Don't us