summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2023-03-24 11:22:20 +0100
committerBruno Haible <bruno@clisp.org>2023-03-24 11:22:20 +0100
commit0139749ca02e6db4b42fe48363126efa52fbb44e (patch)
tree261026be393e919bb5a80cf9bf69876b26c8ced3 /doc
parent63c2d4a0256c9c6927d9ccb18fdd7391ea10afcc (diff)
downloadgnulib-0139749ca02e6db4b42fe48363126efa52fbb44e.tar.gz
sprintf-gnu: New module.
* m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_IS_POSIX): New macro, extracted from gl_FUNC_SPRINTF_POSIX. (gl_FUNC_SPRINTF_POSIX): Require it. Invoke gl_PREREQ_VASNPRINTF_WITH_POSIX_EXTRAS. * m4/sprintf-gnu.m4: New file, based on m4/sprintf-posix.m4. * modules/sprintf-gnu: New file, based on modules/vasnprintf-gnu. * doc/posix-functions/sprintf.texi: Mention the new module.
Diffstat (limited to 'doc')
-rw-r--r--doc/posix-functions/sprintf.texi11
1 files changed, 9 insertions, 2 deletions
diff --git a/doc/posix-functions/sprintf.texi b/doc/posix-functions/sprintf.texi
index 57c42c294d..54816f26ab 100644
--- a/doc/posix-functions/sprintf.texi
+++ b/doc/posix-functions/sprintf.texi
@@ -4,9 +4,9 @@
POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/sprintf.html}
-Gnulib module: sprintf-posix
+Gnulib module: sprintf-posix or sprintf-gnu
-Portability problems fixed by Gnulib:
+Portability problems fixed by either Gnulib module @code{sprintf-posix} or @code{sprintf-gnu}:
@itemize
@item
This function does not support size specifiers as in C99 (@code{hh}, @code{ll},
@@ -80,6 +80,13 @@ The compiler warns that this function is deprecated:
macOS 13.0.
@end itemize
+Portability problems fixed by Gnulib module @code{sprintf-gnu}:
+@itemize
+@item
+This function does not support the @samp{B} directive on some platforms:
+glibc 2.34, FreeBSD 13.1, NetBSD 9.0, OpenBSD 7.2, macOS 12.5, AIX 7.2, Solaris 11.4, and others.
+@end itemize
+
Portability problems not fixed by Gnulib:
@itemize
@item