git: 098ed26bf456 - stable/14 - libc: indicate existing functions that are POSIX 2024
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 21 Nov 2024 00:46:46 UTC
The branch stable/14 has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=098ed26bf4564362c4478b8c92b11ab9ca074da1
commit 098ed26bf4564362c4478b8c92b11ab9ca074da1
Author: Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2024-11-14 19:30:54 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2024-11-21 00:45:07 +0000
libc: indicate existing functions that are POSIX 2024
Reviewed by: brooks, imp
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D47581
(cherry picked from commit dfa0ac74c2fbc1cde3e8cdb1ab9fe5cbb90a9b16)
---
lib/libc/stdio/mktemp.3 | 5 ++++-
lib/libc/stdio/printf.3 | 6 ++++++
lib/libc/stdlib/getenv.3 | 3 ++-
lib/libc/stdlib/reallocarray.3 | 4 ++++
lib/libc/string/memmem.3 | 6 +++---
5 files changed, 19 insertions(+), 5 deletions(-)
diff --git a/lib/libc/stdio/mktemp.3 b/lib/libc/stdio/mktemp.3
index cfb6f79be251..5b0547c89fcd 100644
--- a/lib/libc/stdio/mktemp.3
+++ b/lib/libc/stdio/mktemp.3
@@ -277,7 +277,10 @@ function is expected to conform to
and is not specified by
.St -p1003.1-2008 .
The
-.Fn mkostemp ,
+.Fn mkostemp
+function conforms to
+.St -p1003.1-2024 .
+The
.Fn mkstemps ,
.Fn mkostemps
and
diff --git a/lib/libc/stdio/printf.3 b/lib/libc/stdio/printf.3
index a7b0c7399e2e..af1dcf90b4f9 100644
--- a/lib/libc/stdio/printf.3
+++ b/lib/libc/stdio/printf.3
@@ -830,6 +830,12 @@ and
.Fn vdprintf
conform to
.St -p1003.1-2008 .
+The functions
+.Fn asprintf
+and
+.Fn vasprintf
+conform to
+.St -p1003.1-2024 .
.Sh HISTORY
The functions
.Fn asprintf
diff --git a/lib/libc/stdlib/getenv.3 b/lib/libc/stdlib/getenv.3
index df5c1e59074a..bea6ca42699f 100644
--- a/lib/libc/stdlib/getenv.3
+++ b/lib/libc/stdlib/getenv.3
@@ -220,7 +220,8 @@ functions conforms to
.St -p1003.1-2001 .
The
.Fn secure_getenv
-function is expected to be glibc-compatible.
+function conforms to
+.St -p1003.1-2024 .
.Sh HISTORY
The functions
.Fn setenv
diff --git a/lib/libc/stdlib/reallocarray.3 b/lib/libc/stdlib/reallocarray.3
index d92be7d3f66b..80035c67a497 100644
--- a/lib/libc/stdlib/reallocarray.3
+++ b/lib/libc/stdlib/reallocarray.3
@@ -131,6 +131,10 @@ if ((newp = reallocarray(p, num, size)) == NULL) {
.Ed
.Sh SEE ALSO
.Xr realloc 3
+.Sh STANDARDS
+.Fn reallocarray
+conforms to
+.St -p1003.1-2024 .
.Sh HISTORY
The
.Fn reallocarray
diff --git a/lib/libc/string/memmem.3 b/lib/libc/string/memmem.3
index 5d8bcc84e31f..e301a0bd1e0f 100644
--- a/lib/libc/string/memmem.3
+++ b/lib/libc/string/memmem.3
@@ -67,10 +67,10 @@ is returned.
.Xr memchr 3 ,
.Xr strchr 3 ,
.Xr strstr 3
-.Sh CONFORMING TO
+.Sh STANDARDS
.Fn memmem
-started as a GNU extension but is now available in at least
-the GNU, musl, bionic, OpenBSD, NetBSD, macOS, and illumos C runtime libraries.
+conforms to
+.St -p1003.1-2024 .
.Sh HISTORY
The
.Fn memmem