summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/tmpnam.3
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdio/tmpnam.3')
-rw-r--r--lib/libc/stdio/tmpnam.39
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/libc/stdio/tmpnam.3 b/lib/libc/stdio/tmpnam.3
index efb6f1a5dc0..29cbb4cd684 100644
--- a/lib/libc/stdio/tmpnam.3
+++ b/lib/libc/stdio/tmpnam.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: tmpnam.3,v 1.11 2003/04/02 19:00:26 jmc Exp $
+.\" $OpenBSD: tmpnam.3,v 1.12 2003/06/01 18:56:04 jmc Exp $
.\"
.\" Copyright (c) 1988, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -191,8 +191,9 @@ with the historic
interface).
First, there is an obvious race between file name selection and file
creation and deletion: the program is typically written to call
-.Fn tmpnam Ns ,
-.Fn tmpname Ns , or
+.Fn tmpnam ,
+.Fn tmpname ,
+or
.Xr mktemp 3 .
Subsequently, the program calls
.Xr open 2
@@ -208,7 +209,7 @@ Second, most historic implementations provide only a limited number
of possible temporary file names (usually 26) before file names will
start being recycled.
Third, the System V implementations of these functions (and of
-.Xr mktemp )
+.Xr mktemp 3 )
use the
.Xr access 2
function to determine whether or not the temporary file may be created.