mirror of https://github.com/mkerrisk/man-pages
tmpnam.3: Recommend use mkstemp(3) or tmpfile(3) instead
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
47ce47ea89
commit
fa90334dcb
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue