diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-01-07 21:57:02 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-01-07 21:57:02 +0000 |
commit | 3a2bd2908bcd71d2b15fc9ea62ac8a08d5c304db (patch) | |
tree | fabf2fa9c643892231cc46bc22b58e10e47932fc /lib/libc | |
parent | d66330be431fd8df894681ff9024bf7ff7017309 (diff) |
mktemp(3) can be used, but not where mkstemp(3) is an alternative. Also
trim an inaccurate comment about its future removal.
ok deraadt
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/stdio/mktemp.3 | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/stdio/mktemp.3 b/lib/libc/stdio/mktemp.3 index 00d850beb12..34c2a341fd6 100644 --- a/lib/libc/stdio/mktemp.3 +++ b/lib/libc/stdio/mktemp.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mktemp.3,v 1.45 2010/12/27 21:18:44 millert Exp $ +.\" $OpenBSD: mktemp.3,v 1.46 2011/01/07 21:57:01 nicm Exp $ .\" .\" Copyright (c) 1989, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -27,7 +27,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: December 27 2010 $ +.Dd $Mdocdate: January 7 2011 $ .Dt MKTEMP 3 .Os .Sh NAME @@ -72,12 +72,12 @@ does not actually create the temporary file there is a window of opportunity during which another process can open the file instead. Because of this race condition, .Fn mktemp -should not be used in new code. +should not be used where +.Fn mkstemp +can be used instead. .Fn mktemp was marked as a legacy interface in -.St -p1003.1-2001 -and may be removed in a future release of -.Ox . +.St -p1003.1-2001 . .Pp The .Fn mkstemp |