Module Name: src
Committed By: rillig
Date: Sat May 4 05:50:49 UTC 2024
Modified Files:
src/lib/libc/stdio: mktemp.3
Log Message:
mktemp.3: mkdtemp is no longer nonstandard
Reported by Aleksey Cheusov on tech-userlevel.
To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/lib/libc/stdio/mktemp.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/stdio/mktemp.3
diff -u src/lib/libc/stdio/mktemp.3:1.32 src/lib/libc/stdio/mktemp.3:1.33
--- src/lib/libc/stdio/mktemp.3:1.32 Thu Oct 28 09:51:39 2021
+++ src/lib/libc/stdio/mktemp.3 Sat May 4 05:50:49 2024
@@ -1,4 +1,4 @@
-.\" $NetBSD: mktemp.3,v 1.32 2021/10/28 09:51:39 kim Exp $
+.\" $NetBSD: mktemp.3,v 1.33 2024/05/04 05:50:49 rillig Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)mktemp.3 8.1 (Berkeley) 6/4/93
.\"
-.Dd July 25, 2021
+.Dd May 4, 2024
.Dt MKTEMP 3
.Os
.Sh NAME
@@ -304,13 +304,12 @@ It was however removed from the specific
revision.
The
.Fn mkstemp
-and
+function conforms to
+.St -p1003.1-2004 .
+The
.Fn mkdtemp
-functions conform to
-.St -p1003.1-2004
-and
-.St -p1003.1-2008 ,
-respectively.
+function conforms to
+.St -p1003.1-2008 .
.Sh HISTORY
A
.Fn mktemp
@@ -372,10 +371,6 @@ For this reason,
.Xr ld 1
will output a warning message whenever it links code that uses
.Fn mktemp .
-.Pp
-The
-.Fn mkdtemp
-function is nonstandard and should not be used if portability is required.
.Sh SECURITY CONSIDERATIONS
The use of
.Fn mktemp