diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2014-02-27 15:38:33 +0100 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2014-02-27 15:38:33 +0100 |
| commit | fa90334dcbd92aa963fdf88d473a11a66cb7ea48 (patch) | |
| tree | b616c08639ca602cfbd9e5e6468f95a2f92ce5fa /man3 | |
| parent | 47ce47ea895a1edf095ebd16c9726f188a482b3d (diff) | |
| download | man-pages-fa90334dcbd92aa963fdf88d473a11a66cb7ea48.tar.gz | |
tmpnam.3: Recommend use mkstemp(3) or tmpfile(3) instead
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man3')
| -rw-r--r-- | man3/tmpnam.3 | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/man3/tmpnam.3 b/man3/tmpnam.3 index a45e4598d9..9875a89eae 100644 --- a/man3/tmpnam.3 +++ b/man3/tmpnam.3 @@ -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, |
