]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
Global rename *zs[n]printf -> *s[n]zprintf.
authorBruno Haible <bruno@clisp.org>
Sat, 29 Jun 2024 23:32:24 +0000 (01:32 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 29 Jun 2024 23:51:38 +0000 (01:51 +0200)
* lib/aszprintf.c: Renamed from lib/azsprintf.c.
* lib/c-aszprintf.c: Renamed from lib/c-azsprintf.c.
* lib/c-vaszprintf.c: Renamed from lib/c-vazsprintf.c.
* lib/c-vsnzprintf.c: Renamed from lib/c-vzsnprintf.c.
* lib/c-snzprintf.c: Renamed from lib/c-zsnprintf.c.
* lib/vaszprintf.c: Renamed from lib/vazsprintf.c.
* lib/vsnzprintf.c: Renamed from lib/vzsnprintf.c.
* lib/vszprintf.c: Renamed from lib/vzsprintf.c.
* lib/snzprintf.c: Renamed from lib/zsnprintf.c.
* lib/szprintf.c: Renamed from lib/zsprintf.c.
* tests/test-c-vaszprintf-gnu.c: Renamed from
tests/test-c-vazsprintf-gnu.c.
* tests/test-c-vaszprintf-gnu.sh: Renamed from
tests/test-c-vazsprintf-gnu.sh.
* tests/test-c-vsnzprintf-gnu.c: Renamed from
tests/test-c-vzsnprintf-gnu.c.
* tests/test-c-vsnzprintf-gnu.sh: Renamed from
tests/test-c-vzsnprintf-gnu.sh.
* tests/test-c-snzprintf-gnu.c: Renamed from
tests/test-c-zsnprintf-gnu.c.
* tests/test-c-snzprintf-gnu.sh: Renamed from
tests/test-c-zsnprintf-gnu.sh.
* tests/test-vaszprintf-gnu.c: Renamed from tests/test-vazsprintf-gnu.c.
* tests/test-vaszprintf-gnu.h: Renamed from tests/test-vazsprintf-gnu.h.
* tests/test-vaszprintf-posix.c: Renamed from
tests/test-vazsprintf-posix.c.
* tests/test-vsnzprintf-gnu.c: Renamed from tests/test-vzsnprintf-gnu.c.
* tests/test-vsnzprintf-posix.c: Renamed from
tests/test-vzsnprintf-posix.c.
* tests/test-vszprintf-gnu.c: Renamed from tests/test-vzsprintf-gnu.c.
* tests/test-vszprintf-posix.c: Renamed from
tests/test-vzsprintf-posix.c.
* tests/test-snzprintf-gnu.c: Renamed from tests/test-zsnprintf-gnu.c.
* tests/test-snzprintf-gnu.h: Renamed from tests/test-zsnprintf-gnu.h.
* tests/test-snzprintf-posix.c: Renamed from
tests/test-zsnprintf-posix.c.
* tests/test-snzprintf-posix.h: Renamed from
tests/test-zsnprintf-posix.h.
* tests/test-szprintf-gnu.c: Renamed from tests/test-zsprintf-gnu.c.
* tests/test-szprintf-gnu.h: Renamed from tests/test-zsprintf-gnu.h.
* tests/test-szprintf-posix.c: Renamed from tests/test-zsprintf-posix.c.
* tests/test-szprintf-posix.h: Renamed from tests/test-zsprintf-posix.h.
* modules/c-vaszprintf: Renamed from modules/c-vazsprintf.
* modules/c-vaszprintf-gnu: Renamed from modules/c-vazsprintf-gnu.
* modules/c-vaszprintf-gnu-tests: Renamed from
modules/c-vazsprintf-gnu-tests.
* modules/c-vsnzprintf: Renamed from modules/c-vzsnprintf.
* modules/c-vsnzprintf-gnu: Renamed from modules/c-vzsnprintf-gnu.
* modules/c-vsnzprintf-gnu-tests: Renamed from
modules/c-vzsnprintf-gnu-tests.
* modules/c-snzprintf: Renamed from modules/c-zsnprintf.
* modules/c-snzprintf-gnu: Renamed from modules/c-zsnprintf-gnu.
* modules/c-snzprintf-gnu-tests: Renamed from
modules/c-zsnprintf-gnu-tests.
* modules/vaszprintf: Renamed from modules/vazsprintf.
* modules/vaszprintf-gnu: Renamed from modules/vazsprintf-gnu.
* modules/vaszprintf-gnu-tests: Renamed from
modules/vazsprintf-gnu-tests.
* modules/vaszprintf-posix: Renamed from modules/vazsprintf-posix.
* modules/vaszprintf-posix-tests: Renamed from
modules/vazsprintf-posix-tests.
* modules/vsnzprintf: Renamed from modules/vzsnprintf.
* modules/vsnzprintf-gnu: Renamed from modules/vzsnprintf-gnu.
* modules/vsnzprintf-gnu-tests: Renamed from
modules/vzsnprintf-gnu-tests.
* modules/vsnzprintf-posix: Renamed from modules/vzsnprintf-posix.
* modules/vsnzprintf-posix-tests: Renamed from
modules/vzsnprintf-posix-tests.
* modules/vszprintf: Renamed from modules/vzsprintf.
* modules/vszprintf-gnu: Renamed from modules/vzsprintf-gnu.
* modules/vszprintf-gnu-tests: Renamed from modules/vzsprintf-gnu-tests.
* modules/vszprintf-posix: Renamed from modules/vzsprintf-posix.
* modules/vszprintf-posix-tests: Renamed from
modules/vzsprintf-posix-tests.
* modules/snzprintf: Renamed from modules/zsnprintf.
* modules/snzprintf-gnu: Renamed from modules/zsnprintf-gnu.
* modules/snzprintf-gnu-tests: Renamed from modules/zsnprintf-gnu-tests.
* modules/snzprintf-posix: Renamed from modules/zsnprintf-posix.
* modules/snzprintf-posix-tests: Renamed from
modules/zsnprintf-posix-tests.
* modules/szprintf: Renamed from modules/zsprintf.
* modules/szprintf-gnu: Renamed from modules/zsprintf-gnu.
* modules/szprintf-gnu-tests: Renamed from modules/zsprintf-gnu-tests.
* modules/szprintf-posix: Renamed from modules/zsprintf-posix.
* modules/szprintf-posix-tests: Renamed from
modules/zsprintf-posix-tests.
All function names updated.
* lib/stdio.in.h, m4/stdio_h.m4, modules/stdio: Update module indicator
names.

101 files changed:
ChangeLog
lib/aszprintf.c [moved from lib/azsprintf.c with 90% similarity]
lib/c-aszprintf.c [moved from lib/c-azsprintf.c with 90% similarity]
lib/c-snprintf.c
lib/c-snprintf.h
lib/c-snzprintf.c [moved from lib/c-zsnprintf.c with 96% similarity]
lib/c-vasprintf.h
lib/c-vaszprintf.c [moved from lib/c-vazsprintf.c with 95% similarity]
lib/c-vsnprintf.c
lib/c-vsnprintf.h
lib/c-vsnzprintf.c [moved from lib/c-vzsnprintf.c with 96% similarity]
lib/c-xvasprintf.c
lib/snprintf.c
lib/snzprintf.c [moved from lib/zsnprintf.c with 96% similarity]
lib/sprintf.c
lib/stdio.in.h
lib/szprintf.c [moved from lib/zsprintf.c with 97% similarity]
lib/vaszprintf.c [moved from lib/vazsprintf.c with 95% similarity]
lib/vsnprintf.c
lib/vsnzprintf.c [moved from lib/vzsnprintf.c with 96% similarity]
lib/vsprintf.c
lib/vszprintf.c [moved from lib/vzsprintf.c with 96% similarity]
lib/xvasprintf.c
m4/stdio_h.m4
modules/c-snprintf
modules/c-snzprintf [moved from modules/c-zsnprintf with 67% similarity]
modules/c-snzprintf-gnu [moved from modules/c-zsnprintf-gnu with 87% similarity]
modules/c-snzprintf-gnu-tests [new file with mode: 0644]
modules/c-vaszprintf [moved from modules/c-vazsprintf with 57% similarity]
modules/c-vaszprintf-gnu [moved from modules/c-vazsprintf-gnu with 81% similarity]
modules/c-vaszprintf-gnu-tests [new file with mode: 0644]
modules/c-vazsprintf-gnu-tests [deleted file]
modules/c-vsnprintf
modules/c-vsnzprintf [moved from modules/c-vzsnprintf with 70% similarity]
modules/c-vsnzprintf-gnu [moved from modules/c-vzsnprintf-gnu with 86% similarity]
modules/c-vsnzprintf-gnu-tests [new file with mode: 0644]
modules/c-vzsnprintf-gnu-tests [deleted file]
modules/c-xvasprintf
modules/c-zsnprintf-gnu-tests [deleted file]
modules/snprintf
modules/snzprintf [moved from modules/zsnprintf with 55% similarity]
modules/snzprintf-gnu [moved from modules/zsnprintf-gnu with 86% similarity]
modules/snzprintf-gnu-tests [new file with mode: 0644]
modules/snzprintf-posix [moved from modules/zsnprintf-posix with 71% similarity]
modules/snzprintf-posix-tests [new file with mode: 0644]
modules/sprintf-posix
modules/stdio
modules/szprintf [moved from modules/zsprintf with 53% similarity]
modules/szprintf-gnu [moved from modules/zsprintf-gnu with 87% similarity]
modules/szprintf-gnu-tests [new file with mode: 0644]
modules/szprintf-posix [moved from modules/zsprintf-posix with 71% similarity]
modules/szprintf-posix-tests [new file with mode: 0644]
modules/vaszprintf [moved from modules/vazsprintf with 52% similarity]
modules/vaszprintf-gnu [moved from modules/vazsprintf-gnu with 81% similarity]
modules/vaszprintf-gnu-tests [new file with mode: 0644]
modules/vaszprintf-posix [moved from modules/vazsprintf-posix with 81% similarity]
modules/vaszprintf-posix-tests [new file with mode: 0644]
modules/vazsprintf-gnu-tests [deleted file]
modules/vazsprintf-posix-tests [deleted file]
modules/vsnprintf
modules/vsnzprintf [moved from modules/vzsnprintf with 58% similarity]
modules/vsnzprintf-gnu [moved from modules/vzsnprintf-gnu with 86% similarity]
modules/vsnzprintf-gnu-tests [new file with mode: 0644]
modules/vsnzprintf-posix [moved from modules/vzsnprintf-posix with 71% similarity]
modules/vsnzprintf-posix-tests [new file with mode: 0644]
modules/vsprintf-posix
modules/vszprintf [moved from modules/vzsprintf with 57% similarity]
modules/vszprintf-gnu [moved from modules/vzsprintf-gnu with 86% similarity]
modules/vszprintf-gnu-tests [new file with mode: 0644]
modules/vszprintf-posix [moved from modules/vzsprintf-posix with 70% similarity]
modules/vszprintf-posix-tests [new file with mode: 0644]
modules/vzsnprintf-gnu-tests [deleted file]
modules/vzsnprintf-posix-tests [deleted file]
modules/vzsprintf-gnu-tests [deleted file]
modules/vzsprintf-posix-tests [deleted file]
modules/xvasprintf
modules/zsnprintf-gnu-tests [deleted file]
modules/zsnprintf-posix-tests [deleted file]
modules/zsprintf-gnu-tests [deleted file]
modules/zsprintf-posix-tests [deleted file]
tests/test-c-snzprintf-gnu.c [moved from tests/test-c-zsnprintf-gnu.c with 89% similarity]
tests/test-c-snzprintf-gnu.sh [moved from tests/test-c-zsnprintf-gnu.sh with 88% similarity]
tests/test-c-vaszprintf-gnu.c [moved from tests/test-c-vazsprintf-gnu.c with 78% similarity]
tests/test-c-vaszprintf-gnu.sh [moved from tests/test-c-vazsprintf-gnu.sh with 87% similarity]
tests/test-c-vsnzprintf-gnu.c [moved from tests/test-c-vzsnprintf-gnu.c with 83% similarity]
tests/test-c-vsnzprintf-gnu.sh [moved from tests/test-c-vzsnprintf-gnu.sh with 87% similarity]
tests/test-snzprintf-gnu.c [moved from tests/test-zsnprintf-gnu.c with 88% similarity]
tests/test-snzprintf-gnu.h [moved from tests/test-zsnprintf-gnu.h with 87% similarity]
tests/test-snzprintf-posix.c [moved from tests/test-zsnprintf-posix.c with 89% similarity]
tests/test-snzprintf-posix.h [moved from tests/test-zsnprintf-posix.h with 86% similarity]
tests/test-szprintf-gnu.c [moved from tests/test-zsprintf-gnu.c with 89% similarity]
tests/test-szprintf-gnu.h [moved from tests/test-zsprintf-gnu.h with 87% similarity]
tests/test-szprintf-posix.c [moved from tests/test-zsprintf-posix.c with 89% similarity]
tests/test-szprintf-posix.h [moved from tests/test-zsprintf-posix.h with 86% similarity]
tests/test-vaszprintf-gnu.c [moved from tests/test-vazsprintf-gnu.c with 79% similarity]
tests/test-vaszprintf-gnu.h [moved from tests/test-vazsprintf-gnu.h with 86% similarity]
tests/test-vaszprintf-posix.c [moved from tests/test-vazsprintf-posix.c with 85% similarity]
tests/test-vsnzprintf-gnu.c [moved from tests/test-vzsnprintf-gnu.c with 82% similarity]
tests/test-vsnzprintf-posix.c [moved from tests/test-vzsnprintf-posix.c with 82% similarity]
tests/test-vszprintf-gnu.c [moved from tests/test-vzsprintf-gnu.c with 83% similarity]
tests/test-vszprintf-posix.c [moved from tests/test-vzsprintf-posix.c with 84% similarity]

index e55831aaef34770812ab9234c89248f19f5fc049..86fae3c40801acbf16d102d7c92a0a15a23d69bb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,96 @@
+2024-06-29  Bruno Haible  <bruno@clisp.org>
+
+       Global rename *zs[n]printf -> *s[n]zprintf.
+       * lib/aszprintf.c: Renamed from lib/azsprintf.c.
+       * lib/c-aszprintf.c: Renamed from lib/c-azsprintf.c.
+       * lib/c-vaszprintf.c: Renamed from lib/c-vazsprintf.c.
+       * lib/c-vsnzprintf.c: Renamed from lib/c-vzsnprintf.c.
+       * lib/c-snzprintf.c: Renamed from lib/c-zsnprintf.c.
+       * lib/vaszprintf.c: Renamed from lib/vazsprintf.c.
+       * lib/vsnzprintf.c: Renamed from lib/vzsnprintf.c.
+       * lib/vszprintf.c: Renamed from lib/vzsprintf.c.
+       * lib/snzprintf.c: Renamed from lib/zsnprintf.c.
+       * lib/szprintf.c: Renamed from lib/zsprintf.c.
+       * tests/test-c-vaszprintf-gnu.c: Renamed from
+       tests/test-c-vazsprintf-gnu.c.
+       * tests/test-c-vaszprintf-gnu.sh: Renamed from
+       tests/test-c-vazsprintf-gnu.sh.
+       * tests/test-c-vsnzprintf-gnu.c: Renamed from
+       tests/test-c-vzsnprintf-gnu.c.
+       * tests/test-c-vsnzprintf-gnu.sh: Renamed from
+       tests/test-c-vzsnprintf-gnu.sh.
+       * tests/test-c-snzprintf-gnu.c: Renamed from
+       tests/test-c-zsnprintf-gnu.c.
+       * tests/test-c-snzprintf-gnu.sh: Renamed from
+       tests/test-c-zsnprintf-gnu.sh.
+       * tests/test-vaszprintf-gnu.c: Renamed from tests/test-vazsprintf-gnu.c.
+       * tests/test-vaszprintf-gnu.h: Renamed from tests/test-vazsprintf-gnu.h.
+       * tests/test-vaszprintf-posix.c: Renamed from
+       tests/test-vazsprintf-posix.c.
+       * tests/test-vsnzprintf-gnu.c: Renamed from tests/test-vzsnprintf-gnu.c.
+       * tests/test-vsnzprintf-posix.c: Renamed from
+       tests/test-vzsnprintf-posix.c.
+       * tests/test-vszprintf-gnu.c: Renamed from tests/test-vzsprintf-gnu.c.
+       * tests/test-vszprintf-posix.c: Renamed from
+       tests/test-vzsprintf-posix.c.
+       * tests/test-snzprintf-gnu.c: Renamed from tests/test-zsnprintf-gnu.c.
+       * tests/test-snzprintf-gnu.h: Renamed from tests/test-zsnprintf-gnu.h.
+       * tests/test-snzprintf-posix.c: Renamed from
+       tests/test-zsnprintf-posix.c.
+       * tests/test-snzprintf-posix.h: Renamed from
+       tests/test-zsnprintf-posix.h.
+       * tests/test-szprintf-gnu.c: Renamed from tests/test-zsprintf-gnu.c.
+       * tests/test-szprintf-gnu.h: Renamed from tests/test-zsprintf-gnu.h.
+       * tests/test-szprintf-posix.c: Renamed from tests/test-zsprintf-posix.c.
+       * tests/test-szprintf-posix.h: Renamed from tests/test-zsprintf-posix.h.
+       * modules/c-vaszprintf: Renamed from modules/c-vazsprintf.
+       * modules/c-vaszprintf-gnu: Renamed from modules/c-vazsprintf-gnu.
+       * modules/c-vaszprintf-gnu-tests: Renamed from
+       modules/c-vazsprintf-gnu-tests.
+       * modules/c-vsnzprintf: Renamed from modules/c-vzsnprintf.
+       * modules/c-vsnzprintf-gnu: Renamed from modules/c-vzsnprintf-gnu.
+       * modules/c-vsnzprintf-gnu-tests: Renamed from
+       modules/c-vzsnprintf-gnu-tests.
+       * modules/c-snzprintf: Renamed from modules/c-zsnprintf.
+       * modules/c-snzprintf-gnu: Renamed from modules/c-zsnprintf-gnu.
+       * modules/c-snzprintf-gnu-tests: Renamed from
+       modules/c-zsnprintf-gnu-tests.
+       * modules/vaszprintf: Renamed from modules/vazsprintf.
+       * modules/vaszprintf-gnu: Renamed from modules/vazsprintf-gnu.
+       * modules/vaszprintf-gnu-tests: Renamed from
+       modules/vazsprintf-gnu-tests.
+       * modules/vaszprintf-posix: Renamed from modules/vazsprintf-posix.
+       * modules/vaszprintf-posix-tests: Renamed from
+       modules/vazsprintf-posix-tests.
+       * modules/vsnzprintf: Renamed from modules/vzsnprintf.
+       * modules/vsnzprintf-gnu: Renamed from modules/vzsnprintf-gnu.
+       * modules/vsnzprintf-gnu-tests: Renamed from
+       modules/vzsnprintf-gnu-tests.
+       * modules/vsnzprintf-posix: Renamed from modules/vzsnprintf-posix.
+       * modules/vsnzprintf-posix-tests: Renamed from
+       modules/vzsnprintf-posix-tests.
+       * modules/vszprintf: Renamed from modules/vzsprintf.
+       * modules/vszprintf-gnu: Renamed from modules/vzsprintf-gnu.
+       * modules/vszprintf-gnu-tests: Renamed from modules/vzsprintf-gnu-tests.
+       * modules/vszprintf-posix: Renamed from modules/vzsprintf-posix.
+       * modules/vszprintf-posix-tests: Renamed from
+       modules/vzsprintf-posix-tests.
+       * modules/snzprintf: Renamed from modules/zsnprintf.
+       * modules/snzprintf-gnu: Renamed from modules/zsnprintf-gnu.
+       * modules/snzprintf-gnu-tests: Renamed from modules/zsnprintf-gnu-tests.
+       * modules/snzprintf-posix: Renamed from modules/zsnprintf-posix.
+       * modules/snzprintf-posix-tests: Renamed from
+       modules/zsnprintf-posix-tests.
+       * modules/szprintf: Renamed from modules/zsprintf.
+       * modules/szprintf-gnu: Renamed from modules/zsprintf-gnu.
+       * modules/szprintf-gnu-tests: Renamed from modules/zsprintf-gnu-tests.
+       * modules/szprintf-posix: Renamed from modules/zsprintf-posix.
+       * modules/szprintf-posix-tests: Renamed from
+       modules/zsprintf-posix-tests.
+       All function names updated.
+       * lib/stdio.in.h, m4/stdio_h.m4, modules/stdio: Update module indicator
+       names.
+
 2024-06-29  Jim Meyering  <meyering@meta.com>
 
        bootstrap-funclib.sh: shrink or split too-long lines
similarity index 90%
rename from lib/azsprintf.c
rename to lib/aszprintf.c
index 9489854cb99f764808473a592d9db419d5f0d0de..206bf743eac6b7a085a98b4f7b6e83e563c38230 100644 (file)
 #include <stdarg.h>
 
 ptrdiff_t
-azsprintf (char **resultp, const char *format, ...)
+aszprintf (char **resultp, const char *format, ...)
 {
   va_list args;
   ptrdiff_t result;
 
   va_start (args, format);
-  result = vazsprintf (resultp, format, args);
+  result = vaszprintf (resultp, format, args);
   va_end (args);
   return result;
 }
similarity index 90%
rename from lib/c-azsprintf.c
rename to lib/c-aszprintf.c
index 78bc973ef581db2bc723c77814023e8d03fc6082..59d10725ffad2c3dde93193b7bcd151ed694b768 100644 (file)
 #include <stdarg.h>
 
 ptrdiff_t
-c_azsprintf (char **resultp, const char *format, ...)
+c_aszprintf (char **resultp, const char *format, ...)
 {
   va_list args;
   ptrdiff_t result;
 
   va_start (args, format);
-  result = c_vazsprintf (resultp, format, args);
+  result = c_vaszprintf (resultp, format, args);
   va_end (args);
   return result;
 }
index 658f3faed40a4250820b727bb768a6fde363e46d..f768213ba23f2b21ee0ef5146a8f89226297bf82 100644 (file)
@@ -33,7 +33,7 @@ c_snprintf (char *str, size_t size, const char *format, ...)
   ptrdiff_t ret;
 
   va_start (args, format);
-  ret = c_vzsnprintf (str, size, format, args);
+  ret = c_vsnzprintf (str, size, format, args);
   va_end (args);
 
 #if PTRDIFF_MAX > INT_MAX
index f52e058e9ec32a79f06332f3a330c66f59a7ae60..8cd637d4dd6679c98cdb1b988544eac6b287c6a4 100644 (file)
@@ -44,7 +44,7 @@ extern "C" {
 
    Formatting takes place in the C locale, that is, the decimal point
    used in floating-point formatting directives is always '.'. */
-extern ptrdiff_t c_zsnprintf (char *restrict str, size_t size,
+extern ptrdiff_t c_snzprintf (char *restrict str, size_t size,
                               const char *format, ...)
        _GL_ATTRIBUTE_FORMAT ((_GL_ATTRIBUTE_SPEC_PRINTF_STANDARD, 3, 4));
 
similarity index 96%
rename from lib/c-zsnprintf.c
rename to lib/c-snzprintf.c
index 85ed3f9191e50849d24610243cb11686b9b4e51d..c674af98144db54a0f6e8573a6b4f9fe90bf43f1 100644 (file)
@@ -29,7 +29,7 @@
 #include "c-vasnprintf.h"
 
 ptrdiff_t
-c_zsnprintf (char *str, size_t size, const char *format, ...)
+c_snzprintf (char *str, size_t size, const char *format, ...)
 {
   char *output;
   size_t len;
index bcd40bd5e012a7ae6bb4e49dcac80a7cbb3c6640..048ecf0f629d360a45de994ae86179346d26b864 100644 (file)
@@ -47,9 +47,9 @@ extern "C" {
 
    Formatting takes place in the C locale, that is, the decimal point
    used in floating-point formatting directives is always '.'. */
-ptrdiff_t c_azsprintf (char **resultp, const char *format, ...)
+ptrdiff_t c_aszprintf (char **resultp, const char *format, ...)
        _GL_ATTRIBUTE_FORMAT ((_GL_ATTRIBUTE_SPEC_PRINTF_STANDARD, 2, 3));
-ptrdiff_t c_vazsprintf (char **resultp, const char *format, va_list args)
+ptrdiff_t c_vaszprintf (char **resultp, const char *format, va_list args)
        _GL_ATTRIBUTE_FORMAT ((_GL_ATTRIBUTE_SPEC_PRINTF_STANDARD, 2, 0));
 
 /* Prints formatted output to a string dynamically allocated with malloc().
similarity index 95%
rename from lib/c-vazsprintf.c
rename to lib/c-vaszprintf.c
index 88ab938489fbfd3d5780b11af2c6f2720abea8cc..a5ef6864ab9472a430eaa19a7a62ddc7bb25c4b2 100644 (file)
@@ -26,7 +26,7 @@
 #include "c-vasnprintf.h"
 
 ptrdiff_t
-c_vazsprintf (char **resultp, const char *format, va_list args)
+c_vaszprintf (char **resultp, const char *format, va_list args)
 {
   size_t length;
   char *result = c_vasnprintf (NULL, &length, format, args);
index 941c2d4609d4f61e271af8df798f6704e36ec31b..aee05c2be2a923d70058e5f4bb4d772dd7b1f7cf 100644 (file)
@@ -29,7 +29,7 @@
 int
 c_vsnprintf (char *str, size_t size, const char *format, va_list args)
 {
-  ptrdiff_t ret = c_vzsnprintf (str, size, format, args);
+  ptrdiff_t ret = c_vsnzprintf (str, size, format, args);
 
 #if PTRDIFF_MAX > INT_MAX
   if (ret > INT_MAX)
index ff9cc2250c4b2ab8b9baa690468fdb1dd840c46c..26151183350821daf040ad031bddd5b887132775 100644 (file)
@@ -47,7 +47,7 @@ extern "C" {
 
    Formatting takes place in the C locale, that is, the decimal point
    used in floating-point formatting directives is always '.'. */
-extern ptrdiff_t c_vzsnprintf (char *restrict str, size_t size,
+extern ptrdiff_t c_vsnzprintf (char *restrict str, size_t size,
                                const char *format, va_list args)
        _GL_ATTRIBUTE_FORMAT ((_GL_ATTRIBUTE_SPEC_PRINTF_STANDARD, 3, 0));
 
similarity index 96%
rename from lib/c-vzsnprintf.c
rename to lib/c-vsnzprintf.c
index 948266dd998fe348c00b7054c97a9561a0ace620..28f7e4fa85ec5599a8cbe6db6a0c945e19dcfdfd 100644 (file)
@@ -32,7 +32,7 @@
 #include "c-vasnprintf.h"
 
 ptrdiff_t
-c_vzsnprintf (char *str, size_t size, const char *format, va_list args)
+c_vsnzprintf (char *str, size_t size, const char *format, va_list args)
 {
   char *output;
   size_t len;
index b058bde4c542d0465a3e35572ddd358b0b09120f..f4c77d4a00571cf6f7634ea1c781cc9a0fe5ef1e 100644 (file)
@@ -32,7 +32,7 @@ c_xvasprintf (const char *format, va_list args)
 {
   char *result;
 
-  if (c_vazsprintf (&result, format, args) < 0)
+  if (c_vaszprintf (&result, format, args) < 0)
     {
       if (errno == ENOMEM)
         xalloc_die ();
index 80f69225ac97922bdcf0866471a73b82d7b77dfc..b82f782a9d39ceea8e54e446e6f894cc02116bdb 100644 (file)
@@ -31,7 +31,7 @@ snprintf (char *str, size_t size, const char *format, ...)
   ptrdiff_t ret;
 
   va_start (args, format);
-  ret = vzsnprintf (str, size, format, args);
+  ret = vsnzprintf (str, size, format, args);
   va_end (args);
 
 #if PTRDIFF_MAX > INT_MAX
similarity index 96%
rename from lib/zsnprintf.c
rename to lib/snzprintf.c
index 894631d16ac129ea3d391d1fe032f45caa13577d..b786914a1c01fde0756918d6a7f5f9487156c9d4 100644 (file)
@@ -29,7 +29,7 @@
 #include "vasnprintf.h"
 
 ptrdiff_t
-zsnprintf (char *str, size_t size, const char *format, ...)
+snzprintf (char *str, size_t size, const char *format, ...)
 {
   char *output;
   size_t len;
index d781b8c7b5114ba5dbe07d3649742bd9f3e1ae7b..fb861b87e6b39231f23502b3322ed2f59f1ce6f5 100644 (file)
@@ -33,7 +33,7 @@ sprintf (char *str, const char *format, ...)
   ptrdiff_t ret;
 
   va_start (args, format);
-  ret = vzsprintf (str, format, args);
+  ret = vszprintf (str, format, args);
   va_end (args);
 
 #if PTRDIFF_MAX > INT_MAX
index cf2d8c999bcada55766a35d28c511af19f6dc128..bcae688b785e51e27653c9a1b9f50165b078b8b5 100644 (file)
@@ -1459,7 +1459,7 @@ _GL_CXXALIASWARN (scanf);
 # endif
 #endif
 
-#if @GNULIB_ZSNPRINTF@
+#if @GNULIB_SNZPRINTF@
 /* Prints formatted output to string STR.  Similar to sprintf, but the
    additional parameter SIZE limits how much is written into STR.
    STR may be NULL, in which case nothing will be written.
@@ -1468,12 +1468,12 @@ _GL_CXXALIASWARN (scanf);
    Failure code EOVERFLOW can only occur when a width > INT_MAX is used.
    Therefore, if the format string is valid and does not use %ls/%lc
    directives nor widths, the only possible failure code is ENOMEM.  */
-_GL_FUNCDECL_SYS (zsnprintf, ptrdiff_t,
+_GL_FUNCDECL_SYS (snzprintf, ptrdiff_t,
                   (char *restrict str, size_t size,
                    const char *restrict format, ...)
                   _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (3, 4)
                   _GL_ARG_NONNULL ((3)));
-_GL_CXXALIAS_SYS (zsnprintf, ptrdiff_t,
+_GL_CXXALIAS_SYS (snzprintf, ptrdiff_t,
                   (char *restrict str, size_t size,
                    const char *restrict format, ...));
 #endif
@@ -1520,19 +1520,19 @@ _GL_WARN_ON_USE (snprintf, "snprintf is unportable - "
 # endif
 #endif
 
-#if @GNULIB_ZSPRINTF@
+#if @GNULIB_SZPRINTF@
 /* Prints formatted output to string STR.
    Returns the string length of the formatted string.  Upon failure,
    returns -1 with errno set.
    Failure code EOVERFLOW can only occur when a width > INT_MAX is used.
    Therefore, if the format string is valid and does not use %ls/%lc
    directives nor widths, the only possible failure code is ENOMEM.  */
-_GL_FUNCDECL_SYS (zsprintf, ptrdiff_t,
+_GL_FUNCDECL_SYS (szprintf, ptrdiff_t,
                   (char *restrict str,
                    const char *restrict format, ...)
                   _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 3)
                   _GL_ARG_NONNULL ((1, 2)));
-_GL_CXXALIAS_SYS (zsprintf, ptrdiff_t,
+_GL_CXXALIAS_SYS (szprintf, ptrdiff_t,
                   (char *restrict str,
                    const char *restrict format, ...));
 #endif
@@ -1629,7 +1629,7 @@ _GL_WARN_ON_USE (tmpfile, "tmpfile is not usable on mingw - "
 # endif
 #endif
 
-#if @GNULIB_VAZSPRINTF@
+#if @GNULIB_VASZPRINTF@
 /* Prints formatted output to a string dynamically allocated with malloc().
    If the memory allocation succeeds, it stores the address of the string in
    *RESULT and returns the number of resulting bytes, excluding the trailing
@@ -1638,17 +1638,17 @@ _GL_WARN_ON_USE (tmpfile, "tmpfile is not usable on mingw - "
    Failure code EOVERFLOW can only occur when a width > INT_MAX is used.
    Therefore, if the format string is valid and does not use %ls/%lc
    directives nor widths, the only possible failure code is ENOMEM.  */
-_GL_FUNCDECL_SYS (azsprintf, ptrdiff_t,
+_GL_FUNCDECL_SYS (aszprintf, ptrdiff_t,
                   (char **result, const char *format, ...)
                   _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 3)
                   _GL_ARG_NONNULL ((1, 2)));
-_GL_CXXALIAS_SYS (azsprintf, ptrdiff_t,
+_GL_CXXALIAS_SYS (aszprintf, ptrdiff_t,
                   (char **result, const char *format, ...));
-_GL_FUNCDECL_SYS (vazsprintf, ptrdiff_t,
+_GL_FUNCDECL_SYS (vaszprintf, ptrdiff_t,
                   (char **result, const char *format, va_list args)
                   _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 0)
                   _GL_ARG_NONNULL ((1, 2)));
-_GL_CXXALIAS_SYS (vazsprintf, ptrdiff_t,
+_GL_CXXALIAS_SYS (vaszprintf, ptrdiff_t,
                   (char **result, const char *format, va_list args));
 #endif
 
@@ -1862,7 +1862,7 @@ _GL_CXXALIASWARN (vscanf);
 # endif
 #endif
 
-#if @GNULIB_VZSNPRINTF@
+#if @GNULIB_VSNZPRINTF@
 /* Prints formatted output to string STR.  Similar to sprintf, but the
    additional parameter SIZE limits how much is written into STR.
    STR may be NULL, in which case nothing will be written.
@@ -1871,12 +1871,12 @@ _GL_CXXALIASWARN (vscanf);
    Failure code EOVERFLOW can only occur when a width > INT_MAX is used.
    Therefore, if the format string is valid and does not use %ls/%lc
    directives nor widths, the only possible failure code is ENOMEM.  */
-_GL_FUNCDECL_SYS (vzsnprintf, ptrdiff_t,
+_GL_FUNCDECL_SYS (vsnzprintf, ptrdiff_t,
                   (char *restrict str, size_t size,
                    const char *restrict format, va_list args)
                   _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (3, 0)
                   _GL_ARG_NONNULL ((3)));
-_GL_CXXALIAS_SYS (vzsnprintf, ptrdiff_t,
+_GL_CXXALIAS_SYS (vsnzprintf, ptrdiff_t,
                   (char *restrict str, size_t size,
                    const char *restrict format, va_list args));
 #endif
@@ -1923,19 +1923,19 @@ _GL_WARN_ON_USE (vsnprintf, "vsnprintf is unportable - "
 # endif
 #endif
 
-#if @GNULIB_VZSPRINTF@
+#if @GNULIB_VSZPRINTF@
 /* Prints formatted output to string STR.
    Returns the string length of the formatted string.  Upon failure,
    returns -1 with errno set.
    Failure code EOVERFLOW can only occur when a width > INT_MAX is used.
    Therefore, if the format string is valid and does not use %ls/%lc
    directives nor widths, the only possible failure code is ENOMEM.  */
-_GL_FUNCDECL_SYS (vzsprintf, ptrdiff_t,
+_GL_FUNCDECL_SYS (vszprintf, ptrdiff_t,
                   (char *restrict str,
                    const char *restrict format, va_list args)
                   _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 0)
                   _GL_ARG_NONNULL ((1, 2)));
-_GL_CXXALIAS_SYS (vzsprintf, ptrdiff_t,
+_GL_CXXALIAS_SYS (vszprintf, ptrdiff_t,
                   (char *restrict str,
                    const char *restrict format, va_list args));
 #endif
similarity index 97%
rename from lib/zsprintf.c
rename to lib/szprintf.c
index f004ed7238fc9566abe39d2feab03b864725a919..c5f07dec25bd7a86219558d7e3f2f2b7e985f6ab 100644 (file)
@@ -29,7 +29,7 @@
 #include "vasnprintf.h"
 
 ptrdiff_t
-zsprintf (char *str, const char *format, ...)
+szprintf (char *str, const char *format, ...)
 {
   char *output;
   size_t len;
similarity index 95%
rename from lib/vazsprintf.c
rename to lib/vaszprintf.c
index 73002a17d5382ecfe0a4c34723f6acb73ed942b1..7589fbe607bf4b7ee748f04dc75f91914867a924 100644 (file)
@@ -26,7 +26,7 @@
 #include "vasnprintf.h"
 
 ptrdiff_t
-vazsprintf (char **resultp, const char *format, va_list args)
+vaszprintf (char **resultp, const char *format, va_list args)
 {
   size_t length;
   char *result = vasnprintf (NULL, &length, format, args);
index 1954dcea26e41f27532a83292dd47a6e6955fff2..cfcee78b86f3fc717e57f680a9a4ca123e4165c6 100644 (file)
@@ -29,7 +29,7 @@
 int
 vsnprintf (char *str, size_t size, const char *format, va_list args)
 {
-  ptrdiff_t ret = vzsnprintf (str, size, format, args);
+  ptrdiff_t ret = vsnzprintf (str, size, format, args);
 
 #if PTRDIFF_MAX > INT_MAX
   if (ret > INT_MAX)
similarity index 96%
rename from lib/vzsnprintf.c
rename to lib/vsnzprintf.c
index 96e240bdb7583dd10124d5cb96d71ba994a4a3e8..f598526c8013d089eed9da042e8f8fb38078fb1a 100644 (file)
@@ -31,7 +31,7 @@
 #include "vasnprintf.h"
 
 ptrdiff_t
-vzsnprintf (char *str, size_t size, const char *format, va_list args)
+vsnzprintf (char *str, size_t size, const char *format, va_list args)
 {
   char *output;
   size_t len;
index 065ed7422228b65b0b584b3293e081d63569500c..ec7c8da4f8c31a5de0d7ffbbb4985c3e2be86dd2 100644 (file)
@@ -29,7 +29,7 @@
 int
 vsprintf (char *str, const char *format, va_list args)
 {
-  ptrdiff_t ret = vzsprintf (str, format, args);
+  ptrdiff_t ret = vszprintf (str, format, args);
 
 #if PTRDIFF_MAX > INT_MAX
   if (ret > INT_MAX)
similarity index 96%
rename from lib/vzsprintf.c
rename to lib/vszprintf.c
index 549543070c62b6be3c34260488a8f2ce1f4ed83a..f980d1ec3e5005a8a3a8927b9211501e4bf6ada8 100644 (file)
@@ -29,7 +29,7 @@
 #include "vasnprintf.h"
 
 ptrdiff_t
-vzsprintf (char *str, const char *format, va_list args)
+vszprintf (char *str, const char *format, va_list args)
 {
   char *output;
   size_t len;
index 97f24eb297294d327af625fe272257e7c09584bc..6aba32c09a39a00c0e2e05d006f6dda486302521 100644 (file)
@@ -96,7 +96,7 @@ xvasprintf (const char *format, va_list args)
       }
   }
 
-  if (vazsprintf (&result, format, args) < 0)
+  if (vaszprintf (&result, format, args) < 0)
     {
       if (errno == ENOMEM)
         xalloc_die ();
index 10e1fbb8aa9073baa116474acfa4bfed9de4af1b..f3edc43ccdf0ef82cfa7b3599282f5aaf7238fc9 100644 (file)
@@ -178,7 +178,7 @@ AC_DEFUN([gl_STDIO_H_REQUIRE_DEFAULTS],
     gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STDIO_H_SIGPIPE])
     gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TMPFILE])
     gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VASPRINTF])
-    gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VAZSPRINTF])
+    gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VASZPRINTF])
     gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VFSCANF])
     gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VSCANF])
     gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VDPRINTF])
@@ -188,10 +188,10 @@ AC_DEFUN([gl_STDIO_H_REQUIRE_DEFAULTS],
     gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VPRINTF_POSIX])
     gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VSNPRINTF])
     gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VSPRINTF_POSIX])
-    gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VZSNPRINTF])
-    gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VZSPRINTF])
-    gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ZSNPRINTF])
-    gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ZSPRINTF])
+    gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VSNZPRINTF])
+    gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VSZPRINTF])
+    gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SNZPRINTF])
+    gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SZPRINTF])
     dnl Support Microsoft deprecated alias function names by default.
     gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_FCLOSEALL], [1])
     gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_FDOPEN], [1])
index 49857beca7172bd8e93ffbac046b140db8875425..19a054dcbeb10d7abeafc4fae0eb0dfe87459be7 100644 (file)
@@ -8,7 +8,7 @@ lib/c-snprintf.c
 Depends-on:
 stdint
 stdio
-c-vzsnprintf
+c-vsnzprintf
 
 configure.ac:
 AC_REQUIRE([AC_C_RESTRICT])
similarity index 67%
rename from modules/c-zsnprintf
rename to modules/c-snzprintf
index 5410db03cd5aedd91bdea32d5a2d845381129523..83c2cd83a79c37daec9204da3bf8b72df8bf91b9 100644 (file)
@@ -1,10 +1,10 @@
 Description:
-c_zsnprintf(): print formatted output to a fixed length string (without
+c_snzprintf(): print formatted output to a fixed length string (without
 INT_MAX limitation) in C locale
 
 Files:
 lib/c-snprintf.h
-lib/c-zsnprintf.c
+lib/c-snzprintf.c
 
 Depends-on:
 stdint
@@ -15,7 +15,7 @@ configure.ac:
 AC_REQUIRE([AC_C_RESTRICT])
 
 Makefile.am:
-lib_SOURCES += c-zsnprintf.c
+lib_SOURCES += c-snzprintf.c
 
 Include:
 "c-snprintf.h"
similarity index 87%
rename from modules/c-zsnprintf-gnu
rename to modules/c-snzprintf-gnu
index 1955098d4a2894817d8a4c3da64f9604dff5544b..ff4d2c599d271d162802dd8bdbf00476c9761da7 100644 (file)
@@ -1,11 +1,11 @@
 Description:
-c_zsnprintf() function
+c_snzprintf() function
 with POSIX compliant and GNU compatible format string interpretation
 
 Files:
 
 Depends-on:
-c-zsnprintf
+c-snzprintf
 mixin/printf-gnu
 
 configure.ac:
diff --git a/modules/c-snzprintf-gnu-tests b/modules/c-snzprintf-gnu-tests
new file mode 100644 (file)
index 0000000..ce574fc
--- /dev/null
@@ -0,0 +1,19 @@
+Files:
+tests/test-c-snzprintf-gnu.c
+tests/test-snzprintf-gnu.h
+tests/test-c-snzprintf-gnu.sh
+tests/macros.h
+m4/locale-fr.m4
+m4/codeset.m4
+
+Depends-on:
+setlocale
+
+configure.ac:
+gt_LOCALE_FR
+
+Makefile.am:
+TESTS += test-c-snzprintf-gnu.sh
+TESTS_ENVIRONMENT += LOCALE_FR='@LOCALE_FR@'
+check_PROGRAMS += test-c-snzprintf-gnu
+test_c_snzprintf_gnu_LDADD = $(LDADD) $(SETLOCALE_LIB)
similarity index 57%
rename from modules/c-vazsprintf
rename to modules/c-vaszprintf
index 5cea3859269b294ed28b198d5ec7e52acf8a9839..da7df0d7be83f1d52a530eda99586edeb35d5a30 100644 (file)
@@ -1,10 +1,10 @@
 Description:
-azsprintf() and vazsprintf() in C locale
+aszprintf() and vaszprintf() in C locale
 
 Files:
 lib/c-vasprintf.h
-lib/c-azsprintf.c
-lib/c-vazsprintf.c
+lib/c-aszprintf.c
+lib/c-vaszprintf.c
 
 Depends-on:
 stdint
@@ -14,7 +14,7 @@ c-vasnprintf
 configure.ac:
 
 Makefile.am:
-lib_SOURCES += c-azsprintf.c c-vazsprintf.c
+lib_SOURCES += c-aszprintf.c c-vaszprintf.c
 
 Include:
 "c-vasprintf.h"
similarity index 81%
rename from modules/c-vazsprintf-gnu
rename to modules/c-vaszprintf-gnu
index 46690f4ddb174dfbd1b70355e2c29fecf44197ff..acee07d3b8dde1b0beeee57e0afc165b61f6620f 100644 (file)
@@ -1,11 +1,11 @@
 Description:
-c_azsprintf() and c_vazsprintf() functions
+c_aszprintf() and c_vaszprintf() functions
 with POSIX compliant and GNU compatible format string interpretation
 
 Files:
 
 Depends-on:
-c-vazsprintf
+c-vaszprintf
 mixin/printf-gnu
 
 configure.ac:
diff --git a/modules/c-vaszprintf-gnu-tests b/modules/c-vaszprintf-gnu-tests
new file mode 100644 (file)
index 0000000..56565cd
--- /dev/null
@@ -0,0 +1,19 @@
+Files:
+tests/test-c-vaszprintf-gnu.c
+tests/test-vaszprintf-gnu.h
+tests/test-c-vaszprintf-gnu.sh
+tests/macros.h
+m4/locale-fr.m4
+m4/codeset.m4
+
+Depends-on:
+setlocale
+
+configure.ac:
+gt_LOCALE_FR
+
+Makefile.am:
+TESTS += test-c-vaszprintf-gnu.sh
+TESTS_ENVIRONMENT += LOCALE_FR='@LOCALE_FR@'
+check_PROGRAMS += test-c-vaszprintf-gnu
+test_c_vaszprintf_gnu_LDADD = $(LDADD) $(SETLOCALE_LIB)
diff --git a/modules/c-vazsprintf-gnu-tests b/modules/c-vazsprintf-gnu-tests
deleted file mode 100644 (file)
index a7c5762..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-Files:
-tests/test-c-vazsprintf-gnu.c
-tests/test-vazsprintf-gnu.h
-tests/test-c-vazsprintf-gnu.sh
-tests/macros.h
-m4/locale-fr.m4
-m4/codeset.m4
-
-Depends-on:
-setlocale
-
-configure.ac:
-gt_LOCALE_FR
-
-Makefile.am:
-TESTS += test-c-vazsprintf-gnu.sh
-TESTS_ENVIRONMENT += LOCALE_FR='@LOCALE_FR@'
-check_PROGRAMS += test-c-vazsprintf-gnu
-test_c_vazsprintf_gnu_LDADD = $(LDADD) $(SETLOCALE_LIB)
index 835968f96a05626c0f65a3a1ea68ed6c0c1d2ac3..9ba2b3657a7b600d8325475060227e230edf0e0e 100644 (file)
@@ -9,7 +9,7 @@ lib/c-vsnprintf.c
 Depends-on:
 stdint
 stdio
-c-vzsnprintf
+c-vsnzprintf
 
 configure.ac:
 AC_REQUIRE([AC_C_RESTRICT])
similarity index 70%
rename from modules/c-vzsnprintf
rename to modules/c-vsnzprintf
index 4049974f4ab39897825e6c4bc6874702d187b803..9d56f9cdbeff8bd0f42158bb1b5f466b320932c5 100644 (file)
@@ -1,10 +1,10 @@
 Description:
-c_vzsnprintf(): print formatted output from an stdarg argument list to a
+c_vsnzprintf(): print formatted output from an stdarg argument list to a
 fixed length string (without INT_MAX limitation) in C locale
 
 Files:
 lib/c-vsnprintf.h
-lib/c-vzsnprintf.c
+lib/c-vsnzprintf.c
 
 Depends-on:
 stdint
@@ -15,7 +15,7 @@ configure.ac:
 AC_REQUIRE([AC_C_RESTRICT])
 
 Makefile.am:
-lib_SOURCES += c-vzsnprintf.c
+lib_SOURCES += c-vsnzprintf.c
 
 Include:
 "c-vsnprintf.h"
similarity index 86%
rename from modules/c-vzsnprintf-gnu
rename to modules/c-vsnzprintf-gnu
index 9a02c1d847b44569eb98cee9111e57b263fd8eed..0bebe833ca4aeaa634e2c35aa90a769c0c21799b 100644 (file)
@@ -1,11 +1,11 @@
 Description:
-c_vzsnprintf() function
+c_vsnzprintf() function
 with POSIX compliant and GNU compatible format string interpretation
 
 Files:
 
 Depends-on:
-c-vzsnprintf
+c-vsnzprintf
 mixin/printf-gnu
 
 configure.ac:
diff --git a/modules/c-vsnzprintf-gnu-tests b/modules/c-vsnzprintf-gnu-tests
new file mode 100644 (file)
index 0000000..c731225
--- /dev/null
@@ -0,0 +1,19 @@
+Files:
+tests/test-c-vsnzprintf-gnu.c
+tests/test-snzprintf-gnu.h
+tests/test-c-vsnzprintf-gnu.sh
+tests/macros.h
+m4/locale-fr.m4
+m4/codeset.m4
+
+Depends-on:
+setlocale
+
+configure.ac:
+gt_LOCALE_FR
+
+Makefile.am:
+TESTS += test-c-vsnzprintf-gnu.sh
+TESTS_ENVIRONMENT += LOCALE_FR='@LOCALE_FR@'
+check_PROGRAMS += test-c-vsnzprintf-gnu
+test_c_vsnzprintf_gnu_LDADD = $(LDADD) $(SETLOCALE_LIB)
diff --git a/modules/c-vzsnprintf-gnu-tests b/modules/c-vzsnprintf-gnu-tests
deleted file mode 100644 (file)
index 044c5f2..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-Files:
-tests/test-c-vzsnprintf-gnu.c
-tests/test-zsnprintf-gnu.h
-tests/test-c-vzsnprintf-gnu.sh
-tests/macros.h
-m4/locale-fr.m4
-m4/codeset.m4
-
-Depends-on:
-setlocale
-
-configure.ac:
-gt_LOCALE_FR
-
-Makefile.am:
-TESTS += test-c-vzsnprintf-gnu.sh
-TESTS_ENVIRONMENT += LOCALE_FR='@LOCALE_FR@'
-check_PROGRAMS += test-c-vzsnprintf-gnu
-test_c_vzsnprintf_gnu_LDADD = $(LDADD) $(SETLOCALE_LIB)
index ccbc93d794b6b5dbbea1a6da264fa5affa871a57..a46e418544f1302e4defa006eeadb2f82345c737 100644 (file)
@@ -10,7 +10,7 @@ m4/strerrorname_np.m4
 Depends-on:
 extensions
 stdio
-c-vazsprintf
+c-vaszprintf
 xalloc-die
 
 configure.ac:
diff --git a/modules/c-zsnprintf-gnu-tests b/modules/c-zsnprintf-gnu-tests
deleted file mode 100644 (file)
index 6ae7df3..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-Files:
-tests/test-c-zsnprintf-gnu.c
-tests/test-zsnprintf-gnu.h
-tests/test-c-zsnprintf-gnu.sh
-tests/macros.h
-m4/locale-fr.m4
-m4/codeset.m4
-
-Depends-on:
-setlocale
-
-configure.ac:
-gt_LOCALE_FR
-
-Makefile.am:
-TESTS += test-c-zsnprintf-gnu.sh
-TESTS_ENVIRONMENT += LOCALE_FR='@LOCALE_FR@'
-check_PROGRAMS += test-c-zsnprintf-gnu
-test_c_zsnprintf_gnu_LDADD = $(LDADD) $(SETLOCALE_LIB)
index cd4eb6b2c4910ae63f983451f3c12814a6df231f..b44fc9a6eaf52254d1eed8314a4f9f02651f051b 100644 (file)
@@ -10,7 +10,7 @@ Depends-on:
 stdio
 errno           [test $ac_cv_func_snprintf = no || test $REPLACE_SNPRINTF = 1]
 stdint          [test $ac_cv_func_snprintf = no || test $REPLACE_SNPRINTF = 1]
-vzsnprintf      [test $ac_cv_func_snprintf = no || test $REPLACE_SNPRINTF = 1]
+vsnzprintf      [test $ac_cv_func_snprintf = no || test $REPLACE_SNPRINTF = 1]
 
 configure.ac:
 gl_FUNC_SNPRINTF
similarity index 55%
rename from modules/zsnprintf
rename to modules/snzprintf
index 40fd329e0e715f165744cb8e4396ffcbc35ec115..9d81fc4ca1d7f50f540bcb04463c6033b57a75ef 100644 (file)
@@ -1,9 +1,9 @@
 Description:
-zsnprintf() function: print formatted output to a fixed length string
+snzprintf() function: print formatted output to a fixed length string
 (without INT_MAX limitation)
 
 Files:
-lib/zsnprintf.c
+lib/snzprintf.c
 
 Depends-on:
 stdio
@@ -12,10 +12,10 @@ errno
 stdint
 
 configure.ac:
-gl_STDIO_MODULE_INDICATOR([zsnprintf])
+gl_STDIO_MODULE_INDICATOR([snzprintf])
 
 Makefile.am:
-lib_SOURCES += zsnprintf.c
+lib_SOURCES += snzprintf.c
 
 Include:
 <stdio.h>
similarity index 86%
rename from modules/zsnprintf-gnu
rename to modules/snzprintf-gnu
index d0bd55792de818a4081ae8128573a6fdf369bb28..d2aa9e5359fa1083c23fc64bb7fc027e05bcdcf5 100644 (file)
@@ -1,11 +1,11 @@
 Description:
-zsnprintf() function
+snzprintf() function
 with POSIX compliant and GNU compatible format string interpretation
 
 Files:
 
 Depends-on:
-zsnprintf-posix
+snzprintf-posix
 mixin/printf-gnu
 
 configure.ac:
diff --git a/modules/snzprintf-gnu-tests b/modules/snzprintf-gnu-tests
new file mode 100644 (file)
index 0000000..662795c
--- /dev/null
@@ -0,0 +1,12 @@
+Files:
+tests/test-snzprintf-gnu.c
+tests/test-snzprintf-gnu.h
+tests/macros.h
+
+Depends-on:
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-snzprintf-gnu
+check_PROGRAMS += test-snzprintf-gnu
similarity index 71%
rename from modules/zsnprintf-posix
rename to modules/snzprintf-posix
index 6e2f2c658948a9b4511c0b7a939a77622f766b9e..c181159ce942a61f61e3b7607f43bb01980a1cb0 100644 (file)
@@ -1,10 +1,10 @@
 Description:
-zsnprintf() function with POSIX compliant format string interpretation
+snzprintf() function with POSIX compliant format string interpretation
 
 Files:
 
 Depends-on:
-zsnprintf
+snzprintf
 mixin/printf-posix
 
 configure.ac:
diff --git a/modules/snzprintf-posix-tests b/modules/snzprintf-posix-tests
new file mode 100644 (file)
index 0000000..bafb886
--- /dev/null
@@ -0,0 +1,14 @@
+Files:
+tests/test-snzprintf-posix.c
+tests/test-snzprintf-posix.h
+tests/infinity.h
+tests/macros.h
+
+Depends-on:
+nan
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-snzprintf-posix
+check_PROGRAMS += test-snzprintf-posix
index 2c47424bec47df9e959c3a30d972f91a5a9716fd..682043847fae6250aa25da9e71ddc1b7f7694e98 100644 (file)
@@ -18,7 +18,7 @@ stdio
 nocrash
 printf-safe
 multiarch
-vzsprintf          [test $REPLACE_SPRINTF = 1]
+vszprintf          [test $REPLACE_SPRINTF = 1]
 mixin/printf-posix [test $REPLACE_SPRINTF = 1]
 stdint             [test $REPLACE_SPRINTF = 1]
 errno              [test $REPLACE_SPRINTF = 1]
index 64fdc5fb60476b68793292d8a059605d02438124..319309828f08f184e47ee50c6b25acb8099ee0bb 100644 (file)
@@ -113,7 +113,7 @@ stdio.h: stdio.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H)
              -e 's/@''GNULIB_STDIO_H_SIGPIPE''@/$(GNULIB_STDIO_H_SIGPIPE)/g' \
              -e 's/@''GNULIB_TMPFILE''@/$(GNULIB_TMPFILE)/g' \
              -e 's/@''GNULIB_VASPRINTF''@/$(GNULIB_VASPRINTF)/g' \
-             -e 's/@''GNULIB_VAZSPRINTF''@/$(GNULIB_VAZSPRINTF)/g' \
+             -e 's/@''GNULIB_VASZPRINTF''@/$(GNULIB_VASZPRINTF)/g' \
              -e 's/@''GNULIB_VDPRINTF''@/$(GNULIB_VDPRINTF)/g' \
              -e 's/@''GNULIB_VFPRINTF''@/$(GNULIB_VFPRINTF)/g' \
              -e 's/@''GNULIB_VFPRINTF_POSIX''@/$(GNULIB_VFPRINTF_POSIX)/g' \
@@ -123,10 +123,10 @@ stdio.h: stdio.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H)
              -e 's/@''GNULIB_VPRINTF_POSIX''@/$(GNULIB_VPRINTF_POSIX)/g' \
              -e 's/@''GNULIB_VSNPRINTF''@/$(GNULIB_VSNPRINTF)/g' \
              -e 's/@''GNULIB_VSPRINTF_POSIX''@/$(GNULIB_VSPRINTF_POSIX)/g' \
-             -e 's/@''GNULIB_VZSNPRINTF''@/$(GNULIB_VZSNPRINTF)/g' \
-             -e 's/@''GNULIB_VZSPRINTF''@/$(GNULIB_VZSPRINTF)/g' \
-             -e 's/@''GNULIB_ZSNPRINTF''@/$(GNULIB_ZSNPRINTF)/g' \
-             -e 's/@''GNULIB_ZSPRINTF''@/$(GNULIB_ZSPRINTF)/g' \
+             -e 's/@''GNULIB_VSNZPRINTF''@/$(GNULIB_VSNZPRINTF)/g' \
+             -e 's/@''GNULIB_VSZPRINTF''@/$(GNULIB_VSZPRINTF)/g' \
+             -e 's/@''GNULIB_SNZPRINTF''@/$(GNULIB_SNZPRINTF)/g' \
+             -e 's/@''GNULIB_SZPRINTF''@/$(GNULIB_SZPRINTF)/g' \
              -e 's/@''GNULIB_MDA_FCLOSEALL''@/$(GNULIB_MDA_FCLOSEALL)/g' \
              -e 's/@''GNULIB_MDA_FDOPEN''@/$(GNULIB_MDA_FDOPEN)/g' \
              -e 's/@''GNULIB_MDA_FILENO''@/$(GNULIB_MDA_FILENO)/g' \
similarity index 53%
rename from modules/zsprintf
rename to modules/szprintf
index 7da8687ea46b48d5174240cc46c50093de44ccb1..1e647c20b783bb5b6d53bd8b1403f6762257e4bc 100644 (file)
@@ -1,9 +1,9 @@
 Description:
-zsprintf() function: print formatted output to a string (without INT_MAX
+szprintf() function: print formatted output to a string (without INT_MAX
 limitation)
 
 Files:
-lib/zsprintf.c
+lib/szprintf.c
 
 Depends-on:
 stdio
@@ -12,10 +12,10 @@ errno
 stdint
 
 configure.ac:
-gl_STDIO_MODULE_INDICATOR([zsprintf])
+gl_STDIO_MODULE_INDICATOR([szprintf])
 
 Makefile.am:
-lib_SOURCES += zsprintf.c
+lib_SOURCES += szprintf.c
 
 Include:
 <stdio.h>
similarity index 87%
rename from modules/zsprintf-gnu
rename to modules/szprintf-gnu
index a530b343037c5b58508fbabdb21712b5c66880f4..4fcb993ec5d695173492af0b20743641640dfad5 100644 (file)
@@ -1,11 +1,11 @@
 Description:
-zsprintf() function
+szprintf() function
 with POSIX compliant and GNU compatible format string interpretation
 
 Files:
 
 Depends-on:
-zsprintf-posix
+szprintf-posix
 mixin/printf-gnu
 
 configure.ac:
diff --git a/modules/szprintf-gnu-tests b/modules/szprintf-gnu-tests
new file mode 100644 (file)
index 0000000..3910afb
--- /dev/null
@@ -0,0 +1,12 @@
+Files:
+tests/test-szprintf-gnu.c
+tests/test-szprintf-gnu.h
+tests/macros.h
+
+Depends-on:
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-szprintf-gnu
+check_PROGRAMS += test-szprintf-gnu
similarity index 71%
rename from modules/zsprintf-posix
rename to modules/szprintf-posix
index c3ab891f88bec82edf3ed60018b7657fc25cc6e9..67757628aaf9c65aaa6ce667223b3859b046b1a1 100644 (file)
@@ -1,10 +1,10 @@
 Description:
-zsprintf() function with POSIX compliant format string interpretation
+szprintf() function with POSIX compliant format string interpretation
 
 Files:
 
 Depends-on:
-zsprintf
+szprintf
 mixin/printf-posix
 
 configure.ac:
diff --git a/modules/szprintf-posix-tests b/modules/szprintf-posix-tests
new file mode 100644 (file)
index 0000000..39a9399
--- /dev/null
@@ -0,0 +1,14 @@
+Files:
+tests/test-szprintf-posix.c
+tests/test-szprintf-posix.h
+tests/infinity.h
+tests/macros.h
+
+Depends-on:
+nan
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-szprintf-posix
+check_PROGRAMS += test-szprintf-posix
similarity index 52%
rename from modules/vazsprintf
rename to modules/vaszprintf
index 787825aa718080eb4d7e6d523078902be5e2b09c..a732581d93040122f717f605d0c0c58b499cb9a1 100644 (file)
@@ -2,8 +2,8 @@ Description:
 vsprintf (without INT_MAX limitation) with automatic memory allocation
 
 Files:
-lib/vazsprintf.c
-lib/azsprintf.c
+lib/vaszprintf.c
+lib/aszprintf.c
 
 Depends-on:
 stdio
@@ -12,13 +12,13 @@ errno
 stdint
 
 configure.ac:
-gl_STDIO_MODULE_INDICATOR([vazsprintf])
+gl_STDIO_MODULE_INDICATOR([vaszprintf])
 m4_ifdef([AM_XGETTEXT_OPTION],
-  [AM_][XGETTEXT_OPTION([--flag=azsprintf:2:c-format])
-   AM_][XGETTEXT_OPTION([--flag=vazsprintf:2:c-format])])
+  [AM_][XGETTEXT_OPTION([--flag=aszprintf:2:c-format])
+   AM_][XGETTEXT_OPTION([--flag=vaszprintf:2:c-format])])
 
 Makefile.am:
-lib_SOURCES += vazsprintf.c azsprintf.c
+lib_SOURCES += vaszprintf.c aszprintf.c
 
 Include:
 <stdio.h>
similarity index 81%
rename from modules/vazsprintf-gnu
rename to modules/vaszprintf-gnu
index ce3c0e1788c6795e1bbe2f7c33ba8ba919448504..c4cbf7caa7206296485abcf4089d558931a5d2cd 100644 (file)
@@ -1,11 +1,11 @@
 Description:
-azsprintf() and vazsprintf() functions
+aszprintf() and vaszprintf() functions
 with POSIX compliant and GNU compatible format string interpretation
 
 Files:
 
 Depends-on:
-vazsprintf-posix
+vaszprintf-posix
 mixin/printf-gnu
 
 configure.ac:
diff --git a/modules/vaszprintf-gnu-tests b/modules/vaszprintf-gnu-tests
new file mode 100644 (file)
index 0000000..3076d19
--- /dev/null
@@ -0,0 +1,12 @@
+Files:
+tests/test-vaszprintf-gnu.c
+tests/test-vaszprintf-gnu.h
+tests/macros.h
+
+Depends-on:
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-vaszprintf-gnu
+check_PROGRAMS += test-vaszprintf-gnu
similarity index 81%
rename from modules/vazsprintf-posix
rename to modules/vaszprintf-posix
index 39a1da3800f0317f44c7818751916522393b5aec..add22fceac90c2bc4077bcf51bfc4416ad35bccf 100644 (file)
@@ -1,11 +1,11 @@
 Description:
-azsprintf() and vazsprintf() functions
+aszprintf() and vaszprintf() functions
 with POSIX compliant format string interpretation
 
 Files:
 
 Depends-on:
-vazsprintf
+vaszprintf
 mixin/printf-posix
 
 configure.ac:
diff --git a/modules/vaszprintf-posix-tests b/modules/vaszprintf-posix-tests
new file mode 100644 (file)
index 0000000..da83ebc
--- /dev/null
@@ -0,0 +1,13 @@
+Files:
+tests/test-vaszprintf-posix.c
+tests/infinity.h
+tests/macros.h
+
+Depends-on:
+nan
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-vaszprintf-posix
+check_PROGRAMS += test-vaszprintf-posix
diff --git a/modules/vazsprintf-gnu-tests b/modules/vazsprintf-gnu-tests
deleted file mode 100644 (file)
index 80de638..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-Files:
-tests/test-vazsprintf-gnu.c
-tests/test-vazsprintf-gnu.h
-tests/macros.h
-
-Depends-on:
-
-configure.ac:
-
-Makefile.am:
-TESTS += test-vazsprintf-gnu
-check_PROGRAMS += test-vazsprintf-gnu
diff --git a/modules/vazsprintf-posix-tests b/modules/vazsprintf-posix-tests
deleted file mode 100644 (file)
index 04c84e7..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-Files:
-tests/test-vazsprintf-posix.c
-tests/infinity.h
-tests/macros.h
-
-Depends-on:
-nan
-
-configure.ac:
-
-Makefile.am:
-TESTS += test-vazsprintf-posix
-check_PROGRAMS += test-vazsprintf-posix
index de2a86e28589407585b38b14a4fdaf2c26d73807..2c77dd4d610ad9a1f044ce05ec1ef05917efb894 100644 (file)
@@ -11,7 +11,7 @@ Depends-on:
 stdio
 errno           [test $ac_cv_func_vsnprintf = no || test $REPLACE_VSNPRINTF = 1]
 stdint          [test $ac_cv_func_vsnprintf = no || test $REPLACE_VSNPRINTF = 1]
-vzsnprintf      [test $ac_cv_func_vsnprintf = no || test $REPLACE_VSNPRINTF = 1]
+vsnzprintf      [test $ac_cv_func_vsnprintf = no || test $REPLACE_VSNPRINTF = 1]
 
 configure.ac:
 gl_FUNC_VSNPRINTF
similarity index 58%
rename from modules/vzsnprintf
rename to modules/vsnzprintf
index 853d88210d7fed75a1e29cea133fe7929d934036..e6b060d41d301aa33f51a6012ef0f0f57005d930 100644 (file)
@@ -1,9 +1,9 @@
 Description:
-vzsnprintf() function: print formatted output from an stdarg argument list
+vsnzprintf() function: print formatted output from an stdarg argument list
 to a fixed length string (without INT_MAX limitation)
 
 Files:
-lib/vzsnprintf.c
+lib/vsnzprintf.c
 
 Depends-on:
 stdio
@@ -12,10 +12,10 @@ errno
 stdint
 
 configure.ac:
-gl_STDIO_MODULE_INDICATOR([vzsnprintf])
+gl_STDIO_MODULE_INDICATOR([vsnzprintf])
 
 Makefile.am:
-lib_SOURCES += vzsnprintf.c
+lib_SOURCES += vsnzprintf.c
 
 Include:
 <stdio.h>
similarity index 86%
rename from modules/vzsnprintf-gnu
rename to modules/vsnzprintf-gnu
index 04c46a3cc3b12b6313822bb5871f1694ec3c4f40..54c8b7f2448db5199cbbbd4bfb93a678bf4ff3cb 100644 (file)
@@ -1,11 +1,11 @@
 Description:
-vzsnprintf() function
+vsnzprintf() function
 with POSIX compliant and GNU compatible format string interpretation
 
 Files:
 
 Depends-on:
-vzsnprintf-posix
+vsnzprintf-posix
 mixin/printf-gnu
 
 configure.ac:
diff --git a/modules/vsnzprintf-gnu-tests b/modules/vsnzprintf-gnu-tests
new file mode 100644 (file)
index 0000000..299ce4f
--- /dev/null
@@ -0,0 +1,12 @@
+Files:
+tests/test-vsnzprintf-gnu.c
+tests/test-snzprintf-gnu.h
+tests/macros.h
+
+Depends-on:
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-vsnzprintf-gnu
+check_PROGRAMS += test-vsnzprintf-gnu
similarity index 71%
rename from modules/vzsnprintf-posix
rename to modules/vsnzprintf-posix
index e1d30cf54fb222813e3f38d5a4a2fd71df26c689..dac079c20fa4ef2a3ac2b81fd0b751e8214ba4a5 100644 (file)
@@ -1,10 +1,10 @@
 Description:
-vzsnprintf() function with POSIX compliant format string interpretation
+vsnzprintf() function with POSIX compliant format string interpretation
 
 Files:
 
 Depends-on:
-vzsnprintf
+vsnzprintf
 mixin/printf-posix
 
 configure.ac:
diff --git a/modules/vsnzprintf-posix-tests b/modules/vsnzprintf-posix-tests
new file mode 100644 (file)
index 0000000..3d4e214
--- /dev/null
@@ -0,0 +1,14 @@
+Files:
+tests/test-vsnzprintf-posix.c
+tests/test-snzprintf-posix.h
+tests/infinity.h
+tests/macros.h
+
+Depends-on:
+nan
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-vsnzprintf-posix
+check_PROGRAMS += test-vsnzprintf-posix
index 91b634921ab6de1c0bd5da4fbe6c204c817d863f..d1df5a39b98da4bd80c62d3ca069fc3aaa3cbed9 100644 (file)
@@ -18,7 +18,7 @@ stdio
 nocrash
 printf-safe
 multiarch
-vzsprintf          [test $REPLACE_VSPRINTF = 1]
+vszprintf          [test $REPLACE_VSPRINTF = 1]
 mixin/printf-posix [test $REPLACE_VSPRINTF = 1]
 stdint             [test $REPLACE_VSPRINTF = 1]
 errno              [test $REPLACE_VSPRINTF = 1]
similarity index 57%
rename from modules/vzsprintf
rename to modules/vszprintf
index 6564c020f16426238be47f0ee59fdc4f116e0fab..1e74637574f6db10d09ad25598241d58e859c9e8 100644 (file)
@@ -1,9 +1,9 @@
 Description:
-vzsprintf() function: print formatted output from an stdarg argument list
+vszprintf() function: print formatted output from an stdarg argument list
 to a string (without INT_MAX limitation)
 
 Files:
-lib/vzsprintf.c
+lib/vszprintf.c
 
 Depends-on:
 stdio
@@ -12,10 +12,10 @@ errno
 stdint
 
 configure.ac:
-gl_STDIO_MODULE_INDICATOR([vzsprintf])
+gl_STDIO_MODULE_INDICATOR([vszprintf])
 
 Makefile.am:
-lib_SOURCES += vzsprintf.c
+lib_SOURCES += vszprintf.c
 
 Include:
 <stdio.h>
similarity index 86%
rename from modules/vzsprintf-gnu
rename to modules/vszprintf-gnu
index 3241ea523554a49fcf77127aff8911ac59c450e8..a93d90ca16d1f605698795065a2b9ae142025300 100644 (file)
@@ -1,11 +1,11 @@
 Description:
-vzsprintf() function
+vszprintf() function
 with POSIX compliant and GNU compatible format string interpretation
 
 Files:
 
 Depends-on:
-vzsprintf-posix
+vszprintf-posix
 mixin/printf-gnu
 
 configure.ac:
diff --git a/modules/vszprintf-gnu-tests b/modules/vszprintf-gnu-tests
new file mode 100644 (file)
index 0000000..5a843aa
--- /dev/null
@@ -0,0 +1,12 @@
+Files:
+tests/test-vszprintf-gnu.c
+tests/test-szprintf-gnu.h
+tests/macros.h
+
+Depends-on:
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-vszprintf-gnu
+check_PROGRAMS += test-vszprintf-gnu
similarity index 70%
rename from modules/vzsprintf-posix
rename to modules/vszprintf-posix
index fb3428a8e161058bf659115890bc26826836ec9a..573356060dc216685e564bf2bdf3514611f8e1e7 100644 (file)
@@ -1,10 +1,10 @@
 Description:
-vzsprintf() function with POSIX compliant format string interpretation
+vszprintf() function with POSIX compliant format string interpretation
 
 Files:
 
 Depends-on:
-vzsprintf
+vszprintf
 mixin/printf-posix
 
 configure.ac:
diff --git a/modules/vszprintf-posix-tests b/modules/vszprintf-posix-tests
new file mode 100644 (file)
index 0000000..9f430dc
--- /dev/null
@@ -0,0 +1,14 @@
+Files:
+tests/test-vszprintf-posix.c
+tests/test-szprintf-posix.h
+tests/infinity.h
+tests/macros.h
+
+Depends-on:
+nan
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-vszprintf-posix
+check_PROGRAMS += test-vszprintf-posix
diff --git a/modules/vzsnprintf-gnu-tests b/modules/vzsnprintf-gnu-tests
deleted file mode 100644 (file)
index caf3f4e..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-Files:
-tests/test-vzsnprintf-gnu.c
-tests/test-zsnprintf-gnu.h
-tests/macros.h
-
-Depends-on:
-
-configure.ac:
-
-Makefile.am:
-TESTS += test-vzsnprintf-gnu
-check_PROGRAMS += test-vzsnprintf-gnu
diff --git a/modules/vzsnprintf-posix-tests b/modules/vzsnprintf-posix-tests
deleted file mode 100644 (file)
index 58df0a2..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-Files:
-tests/test-vzsnprintf-posix.c
-tests/test-zsnprintf-posix.h
-tests/infinity.h
-tests/macros.h
-
-Depends-on:
-nan
-
-configure.ac:
-
-Makefile.am:
-TESTS += test-vzsnprintf-posix
-check_PROGRAMS += test-vzsnprintf-posix
diff --git a/modules/vzsprintf-gnu-tests b/modules/vzsprintf-gnu-tests
deleted file mode 100644 (file)
index 38bf038..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-Files:
-tests/test-vzsprintf-gnu.c
-tests/test-zsprintf-gnu.h
-tests/macros.h
-
-Depends-on:
-
-configure.ac:
-
-Makefile.am:
-TESTS += test-vzsprintf-gnu
-check_PROGRAMS += test-vzsprintf-gnu
diff --git a/modules/vzsprintf-posix-tests b/modules/vzsprintf-posix-tests
deleted file mode 100644 (file)
index ea4682d..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-Files:
-tests/test-vzsprintf-posix.c
-tests/test-zsprintf-posix.h
-tests/infinity.h
-tests/macros.h
-
-Depends-on:
-nan
-
-configure.ac:
-
-Makefile.am:
-TESTS += test-vzsprintf-posix
-check_PROGRAMS += test-vzsprintf-posix
index bb537ce3eeb457ba21734de8916a1689eb4ae525..b94bd6694025af3a0ad14bd04c8385b3bdeb9d76 100644 (file)
@@ -12,7 +12,7 @@ m4/strerrorname_np.m4
 Depends-on:
 extensions
 stdio
-vazsprintf
+vaszprintf
 xalloc
 xalloc-die
 extern-inline
diff --git a/modules/zsnprintf-gnu-tests b/modules/zsnprintf-gnu-tests
deleted file mode 100644 (file)
index 6fd7c1c..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-Files:
-tests/test-zsnprintf-gnu.c
-tests/test-zsnprintf-gnu.h
-tests/macros.h
-
-Depends-on:
-
-configure.ac:
-
-Makefile.am:
-TESTS += test-zsnprintf-gnu
-check_PROGRAMS += test-zsnprintf-gnu
diff --git a/modules/zsnprintf-posix-tests b/modules/zsnprintf-posix-tests
deleted file mode 100644 (file)
index 75f7594..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-Files:
-tests/test-zsnprintf-posix.c
-tests/test-zsnprintf-posix.h
-tests/infinity.h
-tests/macros.h
-
-Depends-on:
-nan
-
-configure.ac:
-
-Makefile.am:
-TESTS += test-zsnprintf-posix
-check_PROGRAMS += test-zsnprintf-posix
diff --git a/modules/zsprintf-gnu-tests b/modules/zsprintf-gnu-tests
deleted file mode 100644 (file)
index 7db1e58..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-Files:
-tests/test-zsprintf-gnu.c
-tests/test-zsprintf-gnu.h
-tests/macros.h
-
-Depends-on:
-
-configure.ac:
-
-Makefile.am:
-TESTS += test-zsprintf-gnu
-check_PROGRAMS += test-zsprintf-gnu
diff --git a/modules/zsprintf-posix-tests b/modules/zsprintf-posix-tests
deleted file mode 100644 (file)
index 8ea6819..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-Files:
-tests/test-zsprintf-posix.c
-tests/test-zsprintf-posix.h
-tests/infinity.h
-tests/macros.h
-
-Depends-on:
-nan
-
-configure.ac:
-
-Makefile.am:
-TESTS += test-zsprintf-posix
-check_PROGRAMS += test-zsprintf-posix
similarity index 89%
rename from tests/test-c-zsnprintf-gnu.c
rename to tests/test-c-snzprintf-gnu.c
index 016c78247a22d9f19d8b280e2d4aaa29b03f710a..0609a6fd0933589cb263afca168edce91c510e4a 100644 (file)
@@ -1,4 +1,4 @@
-/* Test of POSIX and GNU compatible c_zsnprintf() function.
+/* Test of POSIX and GNU compatible c_snzprintf() function.
    Copyright (C) 2011-2024 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
@@ -26,7 +26,7 @@
 
 #include "macros.h"
 
-#include "test-zsnprintf-gnu.h"
+#include "test-snzprintf-gnu.h"
 
 int
 main (int argc, char *argv[])
@@ -35,7 +35,7 @@ main (int argc, char *argv[])
   if (setlocale (LC_ALL, "") == NULL)
     return 1;
 
-  test_function (c_zsnprintf);
+  test_function (c_snzprintf);
 
   return test_exit_status;
 }
similarity index 88%
rename from tests/test-c-zsnprintf-gnu.sh
rename to tests/test-c-snzprintf-gnu.sh
index 3edb34ebee2b4166090f73d457d2c9ab92348a5a..66d967a9ec796416b210b471b8a614baee4a30c5 100755 (executable)
@@ -12,4 +12,4 @@ if test $LOCALE_FR = none; then
 fi
 
 LC_ALL=$LOCALE_FR \
-${CHECKER} ./test-c-zsnprintf-gnu${EXEEXT} 1
+${CHECKER} ./test-c-snzprintf-gnu${EXEEXT} 1
similarity index 78%
rename from tests/test-c-vazsprintf-gnu.c
rename to tests/test-c-vaszprintf-gnu.c
index 0db9948d064ab90a64597053d904b1b168ea13cb..aa8140dae574ed65779a15355abd02f4c3879c94 100644 (file)
@@ -1,4 +1,4 @@
-/* Test of POSIX and GNU compatible c_vazsprintf() and c_azsprintf() functions.
+/* Test of POSIX and GNU compatible c_vaszprintf() and c_aszprintf() functions.
    Copyright (C) 2011-2024 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
 
 #include "macros.h"
 
-#include "test-vazsprintf-gnu.h"
+#include "test-vaszprintf-gnu.h"
 
 static ptrdiff_t
-my_c_azsprintf (char **result, const char *format, ...)
+my_c_aszprintf (char **result, const char *format, ...)
 {
   va_list args;
   ptrdiff_t ret;
 
   va_start (args, format);
-  ret = c_vazsprintf (result, format, args);
+  ret = c_vaszprintf (result, format, args);
   va_end (args);
   return ret;
 }
 
 static void
-test_c_vazsprintf ()
+test_c_vaszprintf ()
 {
-  test_function (my_c_azsprintf);
+  test_function (my_c_aszprintf);
 }
 
 static void
-test_c_azsprintf ()
+test_c_aszprintf ()
 {
-  test_function (c_azsprintf);
+  test_function (c_aszprintf);
 }
 
 int
@@ -59,8 +59,8 @@ main (int argc, char *argv[])
   if (setlocale (LC_ALL, "") == NULL)
     return 1;
 
-  test_c_vazsprintf ();
-  test_c_azsprintf ();
+  test_c_vaszprintf ();
+  test_c_aszprintf ();
 
   return test_exit_status;
 }
similarity index 87%
rename from tests/test-c-vazsprintf-gnu.sh
rename to tests/test-c-vaszprintf-gnu.sh
index 1410b4e51ed28e50e375bc8ecf2c2e5d630bf19d..79b2560c0ca081dbb728e1a229905192249f61ee 100755 (executable)
@@ -12,4 +12,4 @@ if test $LOCALE_FR = none; then
 fi
 
 LC_ALL=$LOCALE_FR \
-${CHECKER} ./test-c-vazsprintf-gnu${EXEEXT} 1
+${CHECKER} ./test-c-vaszprintf-gnu${EXEEXT} 1
similarity index 83%
rename from tests/test-c-vzsnprintf-gnu.c
rename to tests/test-c-vsnzprintf-gnu.c
index 4facc1f9c3aa18e5554c4e38903c615b5c9c3cf0..85272e3e263d03484bb64e0acddcf93c89f5aa76 100644 (file)
@@ -1,4 +1,4 @@
-/* Test of POSIX and GNU compatible c_vzsnprintf() function.
+/* Test of POSIX and GNU compatible c_vsnzprintf() function.
    Copyright (C) 2011-2024 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
 
 #include "macros.h"
 
-#include "test-zsnprintf-gnu.h"
+#include "test-snzprintf-gnu.h"
 
 static ptrdiff_t
-my_c_zsnprintf (char *str, size_t size, const char *format, ...)
+my_c_snzprintf (char *str, size_t size, const char *format, ...)
 {
   va_list args;
   ptrdiff_t ret;
 
   va_start (args, format);
-  ret = c_vzsnprintf (str, size, format, args);
+  ret = c_vsnzprintf (str, size, format, args);
   va_end (args);
   return ret;
 }
@@ -47,7 +47,7 @@ main (int argc, char *argv[])
   if (setlocale (LC_ALL, "") == NULL)
     return 1;
 
-  test_function (my_c_zsnprintf);
+  test_function (my_c_snzprintf);
 
   return test_exit_status;
 }
similarity index 87%
rename from tests/test-c-vzsnprintf-gnu.sh
rename to tests/test-c-vsnzprintf-gnu.sh
index 9d416a13ef235d694243c24a512edbfcd90ac9d8..a49ea672e63caa9f91a7f0f089bfa9e7e469674d 100755 (executable)
@@ -12,4 +12,4 @@ if test $LOCALE_FR = none; then
 fi
 
 LC_ALL=$LOCALE_FR \
-${CHECKER} ./test-c-vzsnprintf-gnu${EXEEXT} 1
+${CHECKER} ./test-c-vsnzprintf-gnu${EXEEXT} 1
similarity index 88%
rename from tests/test-zsnprintf-gnu.c
rename to tests/test-snzprintf-gnu.c
index efd4f5b53fe4ed4bc709d0b25b1be667fde71076..f502eebf84f5098b328a3b8ae3961c0acead8a52 100644 (file)
@@ -1,4 +1,4 @@
-/* Test of POSIX and GNU compatible zsnprintf() function.
+/* Test of POSIX and GNU compatible snzprintf() function.
    Copyright (C) 2007-2024 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
 
 #include "macros.h"
 
-#include "test-zsnprintf-gnu.h"
+#include "test-snzprintf-gnu.h"
 
 int
 main (int argc, char *argv[])
 {
-  test_function (zsnprintf);
+  test_function (snzprintf);
   return test_exit_status;
 }
similarity index 87%
rename from tests/test-zsnprintf-gnu.h
rename to tests/test-snzprintf-gnu.h
index 0e28c588ab768b159f89d3c096c95b624068b0b0..eb8e50307905b0550746817fe26e1d2147b9c99d 100644 (file)
@@ -1,4 +1,4 @@
-/* Test of POSIX and GNU compatible vzsnprintf() and zsnprintf() functions.
+/* Test of POSIX and GNU compatible vsnzprintf() and snzprintf() functions.
    Copyright (C) 2007-2024 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
@@ -21,7 +21,7 @@
    see test-snprintf-posix.h.  */
 
 static void
-test_function (ptrdiff_t (*my_zsnprintf) (char *, size_t, const char *, ...))
+test_function (ptrdiff_t (*my_snzprintf) (char *, size_t, const char *, ...))
 {
   char result[5000];
 
@@ -30,7 +30,7 @@ test_function (ptrdiff_t (*my_zsnprintf) (char *, size_t, const char *, ...))
 
   { /* This test would fail on all platforms other than glibc ≥ 2.35.  */
     ptrdiff_t retval =
-      my_zsnprintf (result, sizeof (result), "%#B %d", 12345, 33, 44, 55);
+      my_snzprintf (result, sizeof (result), "%#B %d", 12345, 33, 44, 55);
     ASSERT (strcmp (result, "0B11000000111001 33") == 0);
     ASSERT (retval == strlen (result));
   }
similarity index 89%
rename from tests/test-zsnprintf-posix.c
rename to tests/test-snzprintf-posix.c
index 0acefb59dc1d02bd4223bb12687b820a39301fc0..673f880553bfc722dd147413941b2b6ec0c87965 100644 (file)
@@ -1,4 +1,4 @@
-/* Test of POSIX compatible zsnprintf() function.
+/* Test of POSIX compatible snzprintf() function.
    Copyright (C) 2007-2024 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
 
 #include "macros.h"
 
-#include "test-zsnprintf-posix.h"
+#include "test-snzprintf-posix.h"
 
 int
 main (int argc, char *argv[])
 {
-  test_function (zsnprintf);
+  test_function (snzprintf);
   return test_exit_status;
 }
similarity index 86%
rename from tests/test-zsnprintf-posix.h
rename to tests/test-snzprintf-posix.h
index 64639d4f171c4240a5c6ee331c5c9a6fb8f44818..46cef4f27ebc68710a9f3b3d9c839fa1551de2a5 100644 (file)
@@ -1,4 +1,4 @@
-/* Test of POSIX compatible vzsnprintf() and zsnprintf() functions.
+/* Test of POSIX compatible vsnzprintf() and snzprintf() functions.
    Copyright (C) 2007-2024 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
@@ -45,7 +45,7 @@ strisnan (const char *string, size_t start_index, size_t end_index, int uppercas
 }
 
 static void
-test_function (ptrdiff_t (*my_zsnprintf) (char *, size_t, const char *, ...))
+test_function (ptrdiff_t (*my_snzprintf) (char *, size_t, const char *, ...))
 {
   char result[5000];
 
@@ -54,7 +54,7 @@ test_function (ptrdiff_t (*my_zsnprintf) (char *, size_t, const char *, ...))
 
   { /* This test would fail on Solaris 11.4.  */
     ptrdiff_t retval =
-      my_zsnprintf (result, sizeof (result), "%a %d", 3.1416015625, 33, 44, 55);
+      my_snzprintf (result, sizeof (result), "%a %d", 3.1416015625, 33, 44, 55);
     ASSERT (strcmp (result, "0x1.922p+1 33") == 0
             || strcmp (result, "0x3.244p+0 33") == 0
             || strcmp (result, "0x6.488p-1 33") == 0
@@ -64,7 +64,7 @@ test_function (ptrdiff_t (*my_zsnprintf) (char *, size_t, const char *, ...))
 
   { /* This test would fail on Solaris 11.4.  */
     ptrdiff_t retval =
-      my_zsnprintf (result, sizeof (result), "%A %d", -3.1416015625, 33, 44, 55);
+      my_snzprintf (result, sizeof (result), "%A %d", -3.1416015625, 33, 44, 55);
     ASSERT (strcmp (result, "-0X1.922P+1 33") == 0
             || strcmp (result, "-0X3.244P+0 33") == 0
             || strcmp (result, "-0X6.488P-1 33") == 0
@@ -74,7 +74,7 @@ test_function (ptrdiff_t (*my_zsnprintf) (char *, size_t, const char *, ...))
 
   { /* This test would fail on FreeBSD 6.1, NetBSD 10.0. */
     ptrdiff_t retval =
-      my_zsnprintf (result, sizeof (result), "%.2a %d", 1.51, 33, 44, 55);
+      my_snzprintf (result, sizeof (result), "%.2a %d", 1.51, 33, 44, 55);
     ASSERT (strcmp (result, "0x1.83p+0 33") == 0
             || strcmp (result, "0x3.05p-1 33") == 0
             || strcmp (result, "0x6.0ap-2 33") == 0
@@ -85,7 +85,7 @@ test_function (ptrdiff_t (*my_zsnprintf) (char *, size_t, const char *, ...))
   { /* This test would fail on macOS 14, FreeBSD 14.0, OpenBSD 7.5, AIX 7.3,
        Solaris 11.4.  */
     ptrdiff_t retval =
-      my_zsnprintf (result, sizeof (result), "%.0a %d", 1.51, 33, 44, 55);
+      my_snzprintf (result, sizeof (result), "%.0a %d", 1.51, 33, 44, 55);
     ASSERT (strcmp (result, "0x2p+0 33") == 0
             || strcmp (result, "0x3p-1 33") == 0
             || strcmp (result, "0x6p-2 33") == 0
@@ -97,7 +97,7 @@ test_function (ptrdiff_t (*my_zsnprintf) (char *, size_t, const char *, ...))
 
   { /* This test would fail on AIX 7.3, Solaris 11.4.  */
     ptrdiff_t retval =
-      my_zsnprintf (result, sizeof (result), "%f %d", Infinityd (), 33, 44, 55);
+      my_snzprintf (result, sizeof (result), "%f %d", Infinityd (), 33, 44, 55);
     ASSERT (strcmp (result, "inf 33") == 0
             || strcmp (result, "infinity 33") == 0);
     ASSERT (retval == strlen (result));
@@ -105,7 +105,7 @@ test_function (ptrdiff_t (*my_zsnprintf) (char *, size_t, const char *, ...))
 
   { /* This test would fail on AIX 7.3, Solaris 11.4.  */
     ptrdiff_t retval =
-      my_zsnprintf (result, sizeof (result), "%f %d", NaNd (), 33, 44, 55);
+      my_snzprintf (result, sizeof (result), "%f %d", NaNd (), 33, 44, 55);
     ASSERT (strlen (result) >= 3 + 3
             && strisnan (result, 0, strlen (result) - 3, 0)
             && strcmp (result + strlen (result) - 3, " 33") == 0);
@@ -114,7 +114,7 @@ test_function (ptrdiff_t (*my_zsnprintf) (char *, size_t, const char *, ...))
 
   { /* This test would fail on AIX 7.3, Solaris 11.4.  */
     ptrdiff_t retval =
-      my_zsnprintf (result, sizeof (result), "%010f %d", Infinityd (), 33, 44, 55);
+      my_snzprintf (result, sizeof (result), "%010f %d", Infinityd (), 33, 44, 55);
     ASSERT (strcmp (result, "       inf 33") == 0
             || strcmp (result, "  infinity 33") == 0);
     ASSERT (retval == strlen (result));
@@ -124,7 +124,7 @@ test_function (ptrdiff_t (*my_zsnprintf) (char *, size_t, const char *, ...))
 
   { /* This test would fail on AIX 7.3, Solaris 11.4.  */
     ptrdiff_t retval =
-      my_zsnprintf (result, sizeof (result), "%e %d", Infinityd (), 33, 44, 55);
+      my_snzprintf (result, sizeof (result), "%e %d", Infinityd (), 33, 44, 55);
     ASSERT (strcmp (result, "inf 33") == 0
             || strcmp (result, "infinity 33") == 0);
     ASSERT (retval == strlen (result));
@@ -132,7 +132,7 @@ test_function (ptrdiff_t (*my_zsnprintf) (char *, size_t, const char *, ...))
 
   { /* This test would fail on AIX 7.3, Solaris 11.4.  */
     ptrdiff_t retval =
-      my_zsnprintf (result, sizeof (result), "%e %d", NaNd (), 33, 44, 55);
+      my_snzprintf (result, sizeof (result), "%e %d", NaNd (), 33, 44, 55);
     ASSERT (strlen (result) >= 3 + 3
             && strisnan (result, 0, strlen (result) - 3, 0)
             && strcmp (result + strlen (result) - 3, " 33") == 0);
@@ -143,7 +143,7 @@ test_function (ptrdiff_t (*my_zsnprintf) (char *, size_t, const char *, ...))
 
   { /* This test would fail on AIX 7.3, Solaris 11.4.  */
     ptrdiff_t retval =
-      my_zsnprintf (result, sizeof (result), "%g %d", Infinityd (), 33, 44, 55);
+      my_snzprintf (result, sizeof (result), "%g %d", Infinityd (), 33, 44, 55);
     ASSERT (strcmp (result, "inf 33") == 0
             || strcmp (result, "infinity 33") == 0);
     ASSERT (retval == strlen (result));
@@ -151,7 +151,7 @@ test_function (ptrdiff_t (*my_zsnprintf) (char *, size_t, const char *, ...))
 
   { /* This test would fail on AIX 7.3, Solaris 11.4.  */
     ptrdiff_t retval =
-      my_zsnprintf (result, sizeof (result), "%g %d", NaNd (), 33, 44, 55);
+      my_snzprintf (result, sizeof (result), "%g %d", NaNd (), 33, 44, 55);
     ASSERT (strlen (result) >= 3 + 3
             && strisnan (result, 0, strlen (result) - 3, 0)
             && strcmp (result + strlen (result) - 3, " 33") == 0);
@@ -162,7 +162,7 @@ test_function (ptrdiff_t (*my_zsnprintf) (char *, size_t, const char *, ...))
 
   { /* This test would fail on AIX 7.1.  */
     ptrdiff_t retval =
-      my_zsnprintf (result, sizeof (result), "%.4000d %d", 1234567, 99);
+      my_snzprintf (result, sizeof (result), "%.4000d %d", 1234567, 99);
     size_t i;
     for (i = 0; i < 4000 - 7; i++)
       ASSERT (result[i] == '0');
@@ -176,7 +176,7 @@ test_function (ptrdiff_t (*my_zsnprintf) (char *, size_t, const char *, ...))
   { /* This test would fail on glibc 2.34, musl libc, macOS 14,
        FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.5, AIX 7.3, Solaris 11.4.  */
     ptrdiff_t retval =
-      my_zsnprintf (result, sizeof (result), "%b %d", 12345, 33, 44, 55);
+      my_snzprintf (result, sizeof (result), "%b %d", 12345, 33, 44, 55);
     ASSERT (strcmp (result, "11000000111001 33") == 0);
     ASSERT (retval == strlen (result));
   }
similarity index 89%
rename from tests/test-zsprintf-gnu.c
rename to tests/test-szprintf-gnu.c
index 8f95471d13a0c53584c7957574b27be389071530..bdc6d1a2c02e6ced92271ff05f674e44b656f627 100644 (file)
@@ -1,4 +1,4 @@
-/* Test of POSIX and GNU compatible zsprintf() function.
+/* Test of POSIX and GNU compatible szprintf() function.
    Copyright (C) 2007-2024 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
 
 #include "macros.h"
 
-#include "test-zsprintf-gnu.h"
+#include "test-szprintf-gnu.h"
 
 int
 main (int argc, char *argv[])
 {
-  test_function (zsprintf);
+  test_function (szprintf);
   return test_exit_status;
 }
similarity index 87%
rename from tests/test-zsprintf-gnu.h
rename to tests/test-szprintf-gnu.h
index d33a18f6f42acd626fd9c4f247b5a5f1788d3b7b..8f059e2e44a4a09d07e1cbbdff5f82d9ea1c7b85 100644 (file)
@@ -1,4 +1,4 @@
-/* Test of POSIX and GNU compatible vzsprintf() and zsprintf() functions.
+/* Test of POSIX and GNU compatible vszprintf() and szprintf() functions.
    Copyright (C) 2007-2024 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
@@ -21,7 +21,7 @@
    see test-sprintf-posix.h.  */
 
 static void
-test_function (ptrdiff_t (*my_zsprintf) (char *, const char *, ...))
+test_function (ptrdiff_t (*my_szprintf) (char *, const char *, ...))
 {
   char result[5000];
 
@@ -30,7 +30,7 @@ test_function (ptrdiff_t (*my_zsprintf) (char *, const char *, ...))
 
   { /* This test would fail on all platforms other than glibc ≥ 2.35.  */
     ptrdiff_t retval =
-      my_zsprintf (result, "%#B %d", 12345, 33, 44, 55);
+      my_szprintf (result, "%#B %d", 12345, 33, 44, 55);
     ASSERT (strcmp (result, "0B11000000111001 33") == 0);
     ASSERT (retval == strlen (result));
   }
similarity index 89%
rename from tests/test-zsprintf-posix.c
rename to tests/test-szprintf-posix.c
index b5af845b15620a721a6d114f2ad5fc75a324e670..fef51c77754fd95d08978e1dc70df27ef2756c4c 100644 (file)
@@ -1,4 +1,4 @@
-/* Test of POSIX compatible zsprintf() function.
+/* Test of POSIX compatible szprintf() function.
    Copyright (C) 2007-2024 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
 
 #include "macros.h"
 
-#include "test-zsprintf-posix.h"
+#include "test-szprintf-posix.h"
 
 int
 main (int argc, char *argv[])
 {
-  test_function (zsprintf);
+  test_function (szprintf);
   return test_exit_status;
 }
similarity index 86%
rename from tests/test-zsprintf-posix.h
rename to tests/test-szprintf-posix.h
index c12754970db2f717b67743417a9bf0023aefba1c..6ab9cfc3e349b3c385febb53677ac0ddfdd2107f 100644 (file)
@@ -1,4 +1,4 @@
-/* Test of POSIX compatible vzsprintf() and zsprintf() functions.
+/* Test of POSIX compatible vszprintf() and szprintf() functions.
    Copyright (C) 2007-2024 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
@@ -45,7 +45,7 @@ strisnan (const char *string, size_t start_index, size_t end_index, int uppercas
 }
 
 static void
-test_function (ptrdiff_t (*my_zsprintf) (char *, const char *, ...))
+test_function (ptrdiff_t (*my_szprintf) (char *, const char *, ...))
 {
   char result[5000];
 
@@ -54,7 +54,7 @@ test_function (ptrdiff_t (*my_zsprintf) (char *, const char *, ...))
 
   { /* This test would fail on Solaris 11.4.  */
     ptrdiff_t retval =
-      my_zsprintf (result, "%a %d", 3.1416015625, 33, 44, 55);
+      my_szprintf (result, "%a %d", 3.1416015625, 33, 44, 55);
     ASSERT (strcmp (result, "0x1.922p+1 33") == 0
             || strcmp (result, "0x3.244p+0 33") == 0
             || strcmp (result, "0x6.488p-1 33") == 0
@@ -64,7 +64,7 @@ test_function (ptrdiff_t (*my_zsprintf) (char *, const char *, ...))
 
   { /* This test would fail on Solaris 11.4.  */
     ptrdiff_t retval =
-      my_zsprintf (result, "%A %d", -3.1416015625, 33, 44, 55);
+      my_szprintf (result, "%A %d", -3.1416015625, 33, 44, 55);
     ASSERT (strcmp (result, "-0X1.922P+1 33") == 0
             || strcmp (result, "-0X3.244P+0 33") == 0
             || strcmp (result, "-0X6.488P-1 33") == 0
@@ -74,7 +74,7 @@ test_function (ptrdiff_t (*my_zsprintf) (char *, const char *, ...))
 
   { /* This test would fail on FreeBSD 6.1, NetBSD 10.0. */
     ptrdiff_t retval =
-      my_zsprintf (result, "%.2a %d", 1.51, 33, 44, 55);
+      my_szprintf (result, "%.2a %d", 1.51, 33, 44, 55);
     ASSERT (strcmp (result, "0x1.83p+0 33") == 0
             || strcmp (result, "0x3.05p-1 33") == 0
             || strcmp (result, "0x6.0ap-2 33") == 0
@@ -85,7 +85,7 @@ test_function (ptrdiff_t (*my_zsprintf) (char *, const char *, ...))
   { /* This test would fail on macOS 14, FreeBSD 14.0, OpenBSD 7.5, AIX 7.3,
        Solaris 11.4.  */
     ptrdiff_t retval =
-      my_zsprintf (result, "%.0a %d", 1.51, 33, 44, 55);
+      my_szprintf (result, "%.0a %d", 1.51, 33, 44, 55);
     ASSERT (strcmp (result, "0x2p+0 33") == 0
             || strcmp (result, "0x3p-1 33") == 0
             || strcmp (result, "0x6p-2 33") == 0
@@ -97,7 +97,7 @@ test_function (ptrdiff_t (*my_zsprintf) (char *, const char *, ...))
 
   { /* This test would fail on AIX 7.3, Solaris 11.4.  */
     ptrdiff_t retval =
-      my_zsprintf (result, "%f %d", Infinityd (), 33, 44, 55);
+      my_szprintf (result, "%f %d", Infinityd (), 33, 44, 55);
     ASSERT (strcmp (result, "inf 33") == 0
             || strcmp (result, "infinity 33") == 0);
     ASSERT (retval == strlen (result));
@@ -105,7 +105,7 @@ test_function (ptrdiff_t (*my_zsprintf) (char *, const char *, ...))
 
   { /* This test would fail on AIX 7.3, Solaris 11.4.  */
     ptrdiff_t retval =
-      my_zsprintf (result, "%f %d", NaNd (), 33, 44, 55);
+      my_szprintf (result, "%f %d", NaNd (), 33, 44, 55);
     ASSERT (strlen (result) >= 3 + 3
             && strisnan (result, 0, strlen (result) - 3, 0)
             && strcmp (result + strlen (result) - 3, " 33") == 0);
@@ -114,7 +114,7 @@ test_function (ptrdiff_t (*my_zsprintf) (char *, const char *, ...))
 
   { /* This test would fail on AIX 7.3, Solaris 11.4.  */
     ptrdiff_t retval =
-      my_zsprintf (result, "%010f %d", Infinityd (), 33, 44, 55);
+      my_szprintf (result, "%010f %d", Infinityd (), 33, 44, 55);
     ASSERT (strcmp (result, "       inf 33") == 0
             || strcmp (result, "  infinity 33") == 0);
     ASSERT (retval == strlen (result));
@@ -124,7 +124,7 @@ test_function (ptrdiff_t (*my_zsprintf) (char *, const char *, ...))
 
   { /* This test would fail on AIX 7.3, Solaris 11.4.  */
     ptrdiff_t retval =
-      my_zsprintf (result, "%e %d", Infinityd (), 33, 44, 55);
+      my_szprintf (result, "%e %d", Infinityd (), 33, 44, 55);
     ASSERT (strcmp (result, "inf 33") == 0
             || strcmp (result, "infinity 33") == 0);
     ASSERT (retval == strlen (result));
@@ -132,7 +132,7 @@ test_function (ptrdiff_t (*my_zsprintf) (char *, const char *, ...))
 
   { /* This test would fail on AIX 7.3, Solaris 11.4.  */
     ptrdiff_t retval =
-      my_zsprintf (result, "%e %d", NaNd (), 33, 44, 55);
+      my_szprintf (result, "%e %d", NaNd (), 33, 44, 55);
     ASSERT (strlen (result) >= 3 + 3
             && strisnan (result, 0, strlen (result) - 3, 0)
             && strcmp (result + strlen (result) - 3, " 33") == 0);
@@ -143,7 +143,7 @@ test_function (ptrdiff_t (*my_zsprintf) (char *, const char *, ...))
 
   { /* This test would fail on AIX 7.3, Solaris 11.4.  */
     ptrdiff_t retval =
-      my_zsprintf (result, "%g %d", Infinityd (), 33, 44, 55);
+      my_szprintf (result, "%g %d", Infinityd (), 33, 44, 55);
     ASSERT (strcmp (result, "inf 33") == 0
             || strcmp (result, "infinity 33") == 0);
     ASSERT (retval == strlen (result));
@@ -151,7 +151,7 @@ test_function (ptrdiff_t (*my_zsprintf) (char *, const char *, ...))
 
   { /* This test would fail on AIX 7.3, Solaris 11.4.  */
     ptrdiff_t retval =
-      my_zsprintf (result, "%g %d", NaNd (), 33, 44, 55);
+      my_szprintf (result, "%g %d", NaNd (), 33, 44, 55);
     ASSERT (strlen (result) >= 3 + 3
             && strisnan (result, 0, strlen (result) - 3, 0)
             && strcmp (result + strlen (result) - 3, " 33") == 0);
@@ -162,7 +162,7 @@ test_function (ptrdiff_t (*my_zsprintf) (char *, const char *, ...))
 
   { /* This test would fail on AIX 7.1.  */
     ptrdiff_t retval =
-      my_zsprintf (result, "%.4000d %d", 1234567, 99);
+      my_szprintf (result, "%.4000d %d", 1234567, 99);
     size_t i;
     for (i = 0; i < 4000 - 7; i++)
       ASSERT (result[i] == '0');
@@ -176,7 +176,7 @@ test_function (ptrdiff_t (*my_zsprintf) (char *, const char *, ...))
   { /* This test would fail on glibc 2.34, musl libc, macOS 14,
        FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.5, AIX 7.3, Solaris 11.4.  */
     ptrdiff_t retval =
-      my_zsprintf (result, "%b %d", 12345, 33, 44, 55);
+      my_szprintf (result, "%b %d", 12345, 33, 44, 55);
     ASSERT (strcmp (result, "11000000111001 33") == 0);
     ASSERT (retval == strlen (result));
   }
similarity index 79%
rename from tests/test-vazsprintf-gnu.c
rename to tests/test-vaszprintf-gnu.c
index f0c015d1fbc7840c14e401f4694f38d4a2b8c8c2..357554e8332d23bd4273a509f559cd28ab4bc657 100644 (file)
@@ -1,4 +1,4 @@
-/* Test of POSIX and GNU compatible vazsprintf() and azsprintf() functions.
+/* Test of POSIX and GNU compatible vaszprintf() and aszprintf() functions.
    Copyright (C) 2007-2024 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
 
 #include "macros.h"
 
-#include "test-vazsprintf-gnu.h"
+#include "test-vaszprintf-gnu.h"
 
 static ptrdiff_t
-my_azsprintf (char **result, const char *format, ...)
+my_aszprintf (char **result, const char *format, ...)
 {
   va_list args;
   ptrdiff_t ret;
 
   va_start (args, format);
-  ret = vazsprintf (result, format, args);
+  ret = vaszprintf (result, format, args);
   va_end (args);
   return ret;
 }
 
 static void
-test_vazsprintf ()
+test_vaszprintf ()
 {
-  test_function (my_azsprintf);
+  test_function (my_aszprintf);
 }
 
 static void
-test_azsprintf ()
+test_aszprintf ()
 {
-  test_function (azsprintf);
+  test_function (aszprintf);
 }
 
 int
 main (int argc, char *argv[])
 {
-  test_vazsprintf ();
-  test_azsprintf ();
+  test_vaszprintf ();
+  test_aszprintf ();
   return test_exit_status;
 }
similarity index 86%
rename from tests/test-vazsprintf-gnu.h
rename to tests/test-vaszprintf-gnu.h
index 0aba9faa6acee698cc753f94b467867324d36f67..498c8ef7302514e30dee216acf2391786a335650 100644 (file)
@@ -1,4 +1,4 @@
-/* Test of POSIX and GNU compatible vazsprintf() and azsprintf() functions.
+/* Test of POSIX and GNU compatible vaszprintf() and aszprintf() functions.
    Copyright (C) 2007-2024 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
@@ -17,7 +17,7 @@
 /* Written by Bruno Haible <bruno@clisp.org>, 2024.  */
 
 static void
-test_function (ptrdiff_t (*my_azsprintf) (char **, const char *, ...))
+test_function (ptrdiff_t (*my_aszprintf) (char **, const char *, ...))
 {
   /* Test the support of the 'B' conversion specifier for binary output of
      integers.  */
@@ -25,7 +25,7 @@ test_function (ptrdiff_t (*my_azsprintf) (char **, const char *, ...))
   { /* This test would fail on all platforms other than glibc ≥ 2.35.  */
     char *result;
     ptrdiff_t retval =
-      my_azsprintf (&result, "%#B %d", 12345, 33, 44, 55);
+      my_aszprintf (&result, "%#B %d", 12345, 33, 44, 55);
     ASSERT (result != NULL);
     ASSERT (strcmp (result, "0B11000000111001 33") == 0);
     ASSERT (retval == strlen (result));
similarity index 85%
rename from tests/test-vazsprintf-posix.c
rename to tests/test-vaszprintf-posix.c
index 550596652c1e8b0faf6b17b53d36051aa50c0a3a..0e6af1c371f471b8b0304ff369194869112c46de 100644 (file)
@@ -1,4 +1,4 @@
-/* Test of POSIX compatible vazsprintf() and azsprintf() functions.
+/* Test of POSIX compatible vaszprintf() and aszprintf() functions.
    Copyright (C) 2007-2024 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
@@ -55,7 +55,7 @@ strisnan (const char *string, size_t start_index, size_t end_index, int uppercas
 }
 
 static void
-test_function (ptrdiff_t (*my_azsprintf) (char **, const char *, ...))
+test_function (ptrdiff_t (*my_aszprintf) (char **, const char *, ...))
 {
   char result[5000];
 
@@ -65,7 +65,7 @@ test_function (ptrdiff_t (*my_azsprintf) (char **, const char *, ...))
   { /* This test would fail on Solaris 11.4.  */
     char *result;
     ptrdiff_t retval =
-      my_azsprintf (&result, "%a %d", 3.1416015625, 33, 44, 55);
+      my_aszprintf (&result, "%a %d", 3.1416015625, 33, 44, 55);
     ASSERT (result != NULL);
     ASSERT (strcmp (result, "0x1.922p+1 33") == 0
             || strcmp (result, "0x3.244p+0 33") == 0
@@ -78,7 +78,7 @@ test_function (ptrdiff_t (*my_azsprintf) (char **, const char *, ...))
   { /* This test would fail on Solaris 11.4.  */
     char *result;
     ptrdiff_t retval =
-      my_azsprintf (&result, "%A %d", -3.1416015625, 33, 44, 55);
+      my_aszprintf (&result, "%A %d", -3.1416015625, 33, 44, 55);
     ASSERT (result != NULL);
     ASSERT (strcmp (result, "-0X1.922P+1 33") == 0
             || strcmp (result, "-0X3.244P+0 33") == 0
@@ -91,7 +91,7 @@ test_function (ptrdiff_t (*my_azsprintf) (char **, const char *, ...))
   { /* This test would fail on FreeBSD 6.1, NetBSD 10.0. */
     char *result;
     ptrdiff_t retval =
-      my_azsprintf (&result, "%.2a %d", 1.51, 33, 44, 55);
+      my_aszprintf (&result, "%.2a %d", 1.51, 33, 44, 55);
     ASSERT (result != NULL);
     ASSERT (strcmp (result, "0x1.83p+0 33") == 0
             || strcmp (result, "0x3.05p-1 33") == 0
@@ -105,7 +105,7 @@ test_function (ptrdiff_t (*my_azsprintf) (char **, const char *, ...))
        Solaris 11.4.  */
     char *result;
     ptrdiff_t retval =
-      my_azsprintf (&result, "%.0a %d", 1.51, 33, 44, 55);
+      my_aszprintf (&result, "%.0a %d", 1.51, 33, 44, 55);
     ASSERT (result != NULL);
     ASSERT (strcmp (result, "0x2p+0 33") == 0
             || strcmp (result, "0x3p-1 33") == 0
@@ -120,7 +120,7 @@ test_function (ptrdiff_t (*my_azsprintf) (char **, const char *, ...))
   { /* This test would fail on AIX 7.3, Solaris 11.4.  */
     char *result;
     ptrdiff_t retval =
-      my_azsprintf (&result, "%f %d", Infinityd (), 33, 44, 55);
+      my_aszprintf (&result, "%f %d", Infinityd (), 33, 44, 55);
     ASSERT (result != NULL);
     ASSERT (strcmp (result, "inf 33") == 0
             || strcmp (result, "infinity 33") == 0);
@@ -131,7 +131,7 @@ test_function (ptrdiff_t (*my_azsprintf) (char **, const char *, ...))
   { /* This test would fail on AIX 7.3, Solaris 11.4.  */
     char *result;
     ptrdiff_t retval =
-      my_azsprintf (&result, "%f %d", NaNd (), 33, 44, 55);
+      my_aszprintf (&result, "%f %d", NaNd (), 33, 44, 55);
     ASSERT (result != NULL);
     ASSERT (strlen (result) >= 3 + 3
             && strisnan (result, 0, strlen (result) - 3, 0)
@@ -143,7 +143,7 @@ test_function (ptrdiff_t (*my_azsprintf) (char **, const char *, ...))
   { /* This test would fail on AIX 7.3, Solaris 11.4.  */
     char *result;
     ptrdiff_t retval =
-      my_azsprintf (&result, "%010f %d", Infinityd (), 33, 44, 55);
+      my_aszprintf (&result, "%010f %d", Infinityd (), 33, 44, 55);
     ASSERT (result != NULL);
     ASSERT (strcmp (result, "       inf 33") == 0
             || strcmp (result, "  infinity 33") == 0);
@@ -156,7 +156,7 @@ test_function (ptrdiff_t (*my_azsprintf) (char **, const char *, ...))
   { /* This test would fail on AIX 7.3, Solaris 11.4.  */
     char *result;
     ptrdiff_t retval =
-      my_azsprintf (&result, "%e %d", Infinityd (), 33, 44, 55);
+      my_aszprintf (&result, "%e %d", Infinityd (), 33, 44, 55);
     ASSERT (result != NULL);
     ASSERT (strcmp (result, "inf 33") == 0
             || strcmp (result, "infinity 33") == 0);
@@ -167,7 +167,7 @@ test_function (ptrdiff_t (*my_azsprintf) (char **, const char *, ...))
   { /* This test would fail on AIX 7.3, Solaris 11.4.  */
     char *result;
     ptrdiff_t retval =
-      my_azsprintf (&result, "%e %d", NaNd (), 33, 44, 55);
+      my_aszprintf (&result, "%e %d", NaNd (), 33, 44, 55);
     ASSERT (result != NULL);
     ASSERT (strlen (result) >= 3 + 3
             && strisnan (result, 0, strlen (result) - 3, 0)
@@ -181,7 +181,7 @@ test_function (ptrdiff_t (*my_azsprintf) (char **, const char *, ...))
   { /* This test would fail on AIX 7.3, Solaris 11.4.  */
     char *result;
     ptrdiff_t retval =
-      my_azsprintf (&result, "%g %d", Infinityd (), 33, 44, 55);
+      my_aszprintf (&result, "%g %d", Infinityd (), 33, 44, 55);
     ASSERT (result != NULL);
     ASSERT (strcmp (result, "inf 33") == 0
             || strcmp (result, "infinity 33") == 0);
@@ -192,7 +192,7 @@ test_function (ptrdiff_t (*my_azsprintf) (char **, const char *, ...))
   { /* This test would fail on AIX 7.3, Solaris 11.4.  */
     char *result;
     ptrdiff_t retval =
-      my_azsprintf (&result, "%g %d", NaNd (), 33, 44, 55);
+      my_aszprintf (&result, "%g %d", NaNd (), 33, 44, 55);
     ASSERT (result != NULL);
     ASSERT (strlen (result) >= 3 + 3
             && strisnan (result, 0, strlen (result) - 3, 0)
@@ -206,7 +206,7 @@ test_function (ptrdiff_t (*my_azsprintf) (char **, const char *, ...))
   { /* This test would fail on AIX 7.1.  */
     char *result;
     ptrdiff_t retval =
-      my_azsprintf (&result, "%.4000d %d", 1234567, 99);
+      my_aszprintf (&result, "%.4000d %d", 1234567, 99);
     ASSERT (result != NULL);
     size_t i;
     for (i = 0; i < 4000 - 7; i++)
@@ -223,7 +223,7 @@ test_function (ptrdiff_t (*my_azsprintf) (char **, const char *, ...))
        FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.5, AIX 7.3, Solaris 11.4.  */
     char *result;
     ptrdiff_t retval =
-      my_azsprintf (&result, "%b %d", 12345, 33, 44, 55);
+      my_aszprintf (&result, "%b %d", 12345, 33, 44, 55);
     ASSERT (result != NULL);
     ASSERT (strcmp (result, "11000000111001 33") == 0);
     ASSERT (retval == strlen (result));
@@ -232,33 +232,33 @@ test_function (ptrdiff_t (*my_azsprintf) (char **, const char *, ...))
 }
 
 static ptrdiff_t
-my_azsprintf (char **result, const char *format, ...)
+my_aszprintf (char **result, const char *format, ...)
 {
   va_list args;
   ptrdiff_t ret;
 
   va_start (args, format);
-  ret = vazsprintf (result, format, args);
+  ret = vaszprintf (result, format, args);
   va_end (args);
   return ret;
 }
 
 static void
-test_vazsprintf ()
+test_vaszprintf ()
 {
-  test_function (my_azsprintf);
+  test_function (my_aszprintf);
 }
 
 static void
-test_azsprintf ()
+test_aszprintf ()
 {
-  test_function (azsprintf);
+  test_function (aszprintf);
 }
 
 int
 main (int argc, char *argv[])
 {
-  test_vazsprintf ();
-  test_azsprintf ();
+  test_vaszprintf ();
+  test_aszprintf ();
   return test_exit_status;
 }
similarity index 82%
rename from tests/test-vzsnprintf-gnu.c
rename to tests/test-vsnzprintf-gnu.c
index 65e893c0508aa45012c7bd2679baaae3e639b2cc..d47ff964b0b65d3d02705aaa2d2c8fd44f2e9b0a 100644 (file)
@@ -1,4 +1,4 @@
-/* Test of POSIX and GNU compatible vzsnprintf() function.
+/* Test of POSIX and GNU compatible vsnzprintf() function.
    Copyright (C) 2007-2024 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
 
 #include "macros.h"
 
-#include "test-zsnprintf-gnu.h"
+#include "test-snzprintf-gnu.h"
 
 static ptrdiff_t
-my_zsnprintf (char *str, size_t size, const char *format, ...)
+my_snzprintf (char *str, size_t size, const char *format, ...)
 {
   va_list args;
   ptrdiff_t ret;
 
   va_start (args, format);
-  ret = vzsnprintf (str, size, format, args);
+  ret = vsnzprintf (str, size, format, args);
   va_end (args);
   return ret;
 }
@@ -43,6 +43,6 @@ my_zsnprintf (char *str, size_t size, const char *format, ...)
 int
 main (int argc, char *argv[])
 {
-  test_function (my_zsnprintf);
+  test_function (my_snzprintf);
   return test_exit_status;
 }
similarity index 82%
rename from tests/test-vzsnprintf-posix.c
rename to tests/test-vsnzprintf-posix.c
index e44b94cafc08fa13fd2ba778381134b50e139eb0..f245796eb10b5000835cc60f00ec8028c17e9577 100644 (file)
@@ -1,4 +1,4 @@
-/* Test of POSIX compatible vzsnprintf() function.
+/* Test of POSIX compatible vsnzprintf() function.
    Copyright (C) 2007-2024 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
 
 #include "macros.h"
 
-#include "test-zsnprintf-posix.h"
+#include "test-snzprintf-posix.h"
 
 static ptrdiff_t
-my_zsnprintf (char *str, size_t size, const char *format, ...)
+my_snzprintf (char *str, size_t size, const char *format, ...)
 {
   va_list args;
   ptrdiff_t ret;
 
   va_start (args, format);
-  ret = vzsnprintf (str, size, format, args);
+  ret = vsnzprintf (str, size, format, args);
   va_end (args);
   return ret;
 }
@@ -43,6 +43,6 @@ my_zsnprintf (char *str, size_t size, const char *format, ...)
 int
 main (int argc, char *argv[])
 {
-  test_function (my_zsnprintf);
+  test_function (my_snzprintf);
   return test_exit_status;
 }
similarity index 83%
rename from tests/test-vzsprintf-gnu.c
rename to tests/test-vszprintf-gnu.c
index 8920fa1ca55b125f3db81c59dc1e56aa65568b33..e77855b9854e5d304875d4128dfbd32846ca35f1 100644 (file)
@@ -1,4 +1,4 @@
-/* Test of POSIX and GNU compatible vzsprintf() function.
+/* Test of POSIX and GNU compatible vszprintf() function.
    Copyright (C) 2007-2024 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
 
 #include "macros.h"
 
-#include "test-zsprintf-gnu.h"
+#include "test-szprintf-gnu.h"
 
 static ptrdiff_t
-my_zsprintf (char *str, const char *format, ...)
+my_szprintf (char *str, const char *format, ...)
 {
   va_list args;
   ptrdiff_t ret;
 
   va_start (args, format);
-  ret = vzsprintf (str, format, args);
+  ret = vszprintf (str, format, args);
   va_end (args);
   return ret;
 }
@@ -43,6 +43,6 @@ my_zsprintf (char *str, const char *format, ...)
 int
 main (int argc, char *argv[])
 {
-  test_function (my_zsprintf);
+  test_function (my_szprintf);
   return test_exit_status;
 }
similarity index 84%
rename from tests/test-vzsprintf-posix.c
rename to tests/test-vszprintf-posix.c
index a3dd2607315df6231397264a49223eae3678593e..10f021311d9d76514733cffc34f2f6f6325f1753 100644 (file)
@@ -1,4 +1,4 @@
-/* Test of POSIX compatible vzsprintf() function.
+/* Test of POSIX compatible vszprintf() function.
    Copyright (C) 2007-2024 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
 
 #include "macros.h"
 
-#include "test-zsprintf-posix.h"
+#include "test-szprintf-posix.h"
 
 static ptrdiff_t
-my_zsprintf (char *str, const char *format, ...)
+my_szprintf (char *str, const char *format, ...)
 {
   va_list args;
   ptrdiff_t ret;
 
   va_start (args, format);
-  ret = vzsprintf (str, format, args);
+  ret = vszprintf (str, format, args);
   va_end (args);
   return ret;
 }
@@ -43,6 +43,6 @@ my_zsprintf (char *str, const char *format, ...)
 int
 main (int argc, char *argv[])
 {
-  test_function (my_zsprintf);
+  test_function (my_szprintf);
   return test_exit_status;
 }