aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2014-02-27 15:34:49 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2014-02-27 15:34:49 +0100
commit47ce47ea895a1edf095ebd16c9726f188a482b3d (patch)
tree3fa46776ab02972e3c270f411b8cc8b98bec31fd
parent6fd69f33d7788ab9245adf74c5517ad40abd29ae (diff)
downloadman-pages-47ce47ea895a1edf095ebd16c9726f188a482b3d.tar.gz
tempnam.3: Make warning not to use this function more prominent
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man3/tempnam.316
1 files changed, 8 insertions, 8 deletions
diff --git a/man3/tempnam.3 b/man3/tempnam.3
index e183257eac..caf1867eeb 100644
--- a/man3/tempnam.3
+++ b/man3/tempnam.3
@@ -22,7 +22,7 @@
.\" the source, must acknowledge the copyright and authors of this work.
.\" %%%LICENSE_END
.\"
-.TH TEMPNAM 3 2013-04-19 "" "Linux Programmer's Manual"
+.TH TEMPNAM 3 2014-02-27 "" "Linux Programmer's Manual"
.SH NAME
tempnam \- create a name for a temporary file
.SH SYNOPSIS
@@ -40,6 +40,13 @@ Feature Test Macro Requirements for glibc (see
.BR tempnam ():
_BSD_SOURCE || _SVID_SOURCE
.SH DESCRIPTION
+.I "Never use this function."
+Use
+.BR mkstemp (3)
+or
+.BR tmpfile (3)
+instead.
+
The
.BR tempnam ()
function returns a pointer to a string that is a valid filename,
@@ -158,13 +165,6 @@ upon failure to find a unique name.
.SH BUGS
The precise meaning of "appropriate" is undefined;
it is unspecified how accessibility of a directory is determined.
-
-Never use this function.
-Use
-.BR mkstemp (3)
-or
-.BR tmpfile (3)
-instead.
.SH SEE ALSO
.BR mkstemp (3),
.BR mktemp (3),