summaryrefslogtreecommitdiffstats
path: root/man3/tmpnam.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/tmpnam.3')
-rw-r--r--man3/tmpnam.328
1 files changed, 14 insertions, 14 deletions
diff --git a/man3/tmpnam.3 b/man3/tmpnam.3
index 77ca78d90..4a9f89792 100644
--- a/man3/tmpnam.3
+++ b/man3/tmpnam.3
@@ -21,7 +21,7 @@ Standard C library
.P
.RS -4
Feature Test Macro Requirements for glibc (see
-.BR feature_test_macros (7)):
+.MR feature_test_macros 7 ):
.RE
.P
.BR tmpnam_r ()
@@ -34,9 +34,9 @@ Feature Test Macro Requirements for glibc (see
.SH DESCRIPTION
.B Note:
avoid using these functions; use
-.BR mkstemp (3)
+.MR mkstemp 3
or
-.BR tmpfile (3)
+.MR tmpfile 3
instead.
.P
The
@@ -87,7 +87,7 @@ filename, or NULL if a unique name cannot be generated.
No errors are defined.
.SH ATTRIBUTES
For an explanation of the terms used in this section, see
-.BR attributes (7).
+.MR attributes 7 .
.TS
allbox;
lbx lb lb
@@ -135,17 +135,17 @@ Although these functions generate names that are difficult to guess,
it is nevertheless possible that between the time that
the pathname is returned and the time that the program opens it,
another program might create that pathname using
-.BR open (2),
+.MR open 2 ,
or create it as a symbolic link.
This can lead to security holes.
To avoid such possibilities, use the
-.BR open (2)
+.MR open 2
.B O_EXCL
flag to open the pathname.
Or better yet, use
-.BR mkstemp (3)
+.MR mkstemp 3
or
-.BR tmpfile (3).
+.MR tmpfile 3 .
.P
Portable applications that use threads cannot call
.BR tmpnam ()
@@ -157,12 +157,12 @@ is defined.
.SH BUGS
Never use these functions.
Use
-.BR mkstemp (3)
+.MR mkstemp 3
or
-.BR tmpfile (3)
+.MR tmpfile 3
instead.
.SH SEE ALSO
-.BR mkstemp (3),
-.BR mktemp (3),
-.BR tempnam (3),
-.BR tmpfile (3)
+.MR mkstemp 3 ,
+.MR mktemp 3 ,
+.MR tempnam 3 ,
+.MR tmpfile 3