Module Name:    src
Committed By:   nia
Date:           Sat Nov  2 10:49:10 UTC 2024

Modified Files:
        src/include: stdlib.h
        src/lib/libc/stdio: mktemp.3

Log Message:
libc: Expose mkostemp(3) to POSIX.1-2024 applications.


To generate a diff of this commit:
cvs rdiff -u -r1.127 -r1.128 src/include/stdlib.h
cvs rdiff -u -r1.33 -r1.34 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/include/stdlib.h
diff -u src/include/stdlib.h:1.127 src/include/stdlib.h:1.128
--- src/include/stdlib.h:1.127	Fri Oct 11 18:43:22 2024
+++ src/include/stdlib.h	Sat Nov  2 10:49:10 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: stdlib.h,v 1.127 2024/10/11 18:43:22 riastradh Exp $	*/
+/*	$NetBSD: stdlib.h,v 1.128 2024/11/02 10:49:10 nia Exp $	*/
 
 /*-
  * Copyright (c) 1990, 1993
@@ -184,7 +184,6 @@ void	 srandom(unsigned int) __RENAME(__s
 #endif
 #ifdef _NETBSD_SOURCE
 #define	RANDOM_MAX	0x7fffffff	/* (((long)1 << 31) - 1) */
-int	 mkostemp(char *, int);
 int	 mkostemps(char *, int, int);
 #endif
 
@@ -397,6 +396,7 @@ size_t	 wcstombs_l(char * __restrict, co
 #if (_POSIX_C_SOURCE - 0) >= 202405L || \
     defined(_NETBSD_SOURCE) || defined(_OPENBSD_SOURCE)
 void	*reallocarray(void *, size_t, size_t);
+int	 mkostemp(char *, int);
 #endif	/* _POSIX_C_SOURCE >= 202405L || _NETBSD_SOURCE || _OPENBSD_SOURCE */
 
 __END_DECLS

Index: src/lib/libc/stdio/mktemp.3
diff -u src/lib/libc/stdio/mktemp.3:1.33 src/lib/libc/stdio/mktemp.3:1.34
--- src/lib/libc/stdio/mktemp.3:1.33	Sat May  4 05:50:49 2024
+++ src/lib/libc/stdio/mktemp.3	Sat Nov  2 10:49:10 2024
@@ -1,4 +1,4 @@
-.\"	$NetBSD: mktemp.3,v 1.33 2024/05/04 05:50:49 rillig Exp $
+.\"	$NetBSD: mktemp.3,v 1.34 2024/11/02 10:49:10 nia Exp $
 .\"
 .\" Copyright (c) 1989, 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -310,6 +310,10 @@ The
 .Fn mkdtemp
 function conforms to
 .St -p1003.1-2008 .
+The
+.Fn mkostemp
+function conforms to
+.St -p1003.1-2024 .
 .Sh HISTORY
 A
 .Fn mktemp

Reply via email to