tmpnam.3: Recommend use mkstemp(3) or tmpfile(3) instead

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-02-27 15:38:33 +01:00
parent 47ce47ea89
commit fa90334dcb
1 changed files with 10 additions and 1 deletions

View File

@ -24,7 +24,7 @@
.\"
.\" 2003-11-15, aeb, added tmpnam_r
.\"
.TH TMPNAM 3 2013-06-21 "" "Linux Programmer's Manual"
.TH TMPNAM 3 2014-02-27 "" "Linux Programmer's Manual"
.SH NAME
tmpnam, tmpnam_r \- create a name for a temporary file
.SH SYNOPSIS
@ -34,6 +34,15 @@ tmpnam, tmpnam_r \- create a name for a temporary file
.BI "char *tmpnam(char *" s );
.fi
.SH DESCRIPTION
.B Note:
Avoid use of
.BR tmpnam ();
use
.BR mkstemp (3)
or
.BR tmpfile (3)
instead.
The
.BR tmpnam ()
function returns a pointer to a string that is a valid filename,