git: dfa0ac74c2fb - main - libc: indicate existing functions that are POSIX 2024
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 15 Nov 2024 02:32:43 UTC
The branch main has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=dfa0ac74c2fbc1cde3e8cdb1ab9fe5cbb90a9b16
commit dfa0ac74c2fbc1cde3e8cdb1ab9fe5cbb90a9b16
Author: Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2024-11-14 19:30:54 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2024-11-15 02:32:20 +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
---
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 93870f3865de..2b8b2d6c9e44 100644
--- a/lib/libc/stdio/mktemp.3
+++ b/lib/libc/stdio/mktemp.3
@@ -275,7 +275,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 f2428740b529..b421a2a0985d 100644
--- a/lib/libc/stdio/printf.3
+++ b/lib/libc/stdio/printf.3
@@ -828,6 +828,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 ded7bd61f735..1337ec867237 100644
--- a/lib/libc/stdlib/getenv.3
+++ b/lib/libc/stdlib/getenv.3
@@ -218,7 +218,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