diff options
author | 2011-01-07 21:57:01 +0000 | |
---|---|---|
committer | 2011-01-07 21:57:01 +0000 | |
commit | a702351654a08a2c43044fbba459fbe92fdbb8da (patch) | |
tree | 7372b6110375857c7b81aba7cb681254c36c4bab /lib/libc | |
parent | Remove an extraneous return statement with the wrong return value. (diff) | |
download | wireguard-openbsd-a702351654a08a2c43044fbba459fbe92fdbb8da.tar.xz wireguard-openbsd-a702351654a08a2c43044fbba459fbe92fdbb8da.zip |
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 |