diff options
author | Bruno Haible <bruno@clisp.org> | 2023-03-24 11:12:47 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2023-03-24 11:12:47 +0100 |
commit | f18c0053d6103e00ae6a0c954982b5ecd317536b (patch) | |
tree | ef6ff88fcd5977c094dd8607e86eccdeff48f105 /doc | |
parent | e396564a334c9467ea919068f58678ccdb821e72 (diff) | |
download | gnulib-f18c0053d6103e00ae6a0c954982b5ecd317536b.tar.gz |
snprintf-gnu: New module.
* m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_IS_POSIX): New macro,
extracted from gl_FUNC_SNPRINTF_POSIX.
(gl_FUNC_SNPRINTF_POSIX): Require it. Invoke
gl_PREREQ_VASNPRINTF_WITH_POSIX_EXTRAS.
* m4/snprintf-gnu.m4: New file, based on m4/snprintf-posix.m4.
* modules/snprintf-gnu: New file, based on modules/vasnprintf-gnu.
* doc/posix-functions/snprintf.texi: Mention the new module.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/posix-functions/snprintf.texi | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/doc/posix-functions/snprintf.texi b/doc/posix-functions/snprintf.texi index 9ea76cfa8b..a5a7550c7d 100644 --- a/doc/posix-functions/snprintf.texi +++ b/doc/posix-functions/snprintf.texi @@ -4,9 +4,9 @@ POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/snprintf.html} -Gnulib module: snprintf or snprintf-posix +Gnulib module: snprintf or snprintf-posix or snprintf-gnu -Portability problems fixed by either Gnulib module @code{snprintf} or @code{snprintf-posix}: +Portability problems fixed by either Gnulib module @code{snprintf} or @code{snprintf-posix} or @code{snprintf-gnu}: @itemize @item This function is missing on some platforms: @@ -21,7 +21,7 @@ platforms: HP-UX 11, IRIX 6.5, Solaris 9, mingw. @end itemize -Portability problems fixed by Gnulib module @code{snprintf-posix}: +Portability problems fixed by either Gnulib module @code{snprintf-posix} or @code{snprintf-gnu}: @itemize @item This function does not support size specifiers as in C99 (@code{hh}, @code{ll}, @@ -94,6 +94,13 @@ This function does not fully support the @samp{n} directive on some platforms: HP-UX 11, mingw, MSVC 14. @end itemize +Portability problems fixed by Gnulib module @code{snprintf-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 |