annotate m4/snprintf-posix.m4 @ 15308:a3ba680ad389

strerror_r: fix OpenBSD behavior on 0 OpenBSD treats strerror_r(0,,) as a success, but with a message "Undefined error: 0"; while this is distinct from strerror_r(-1,,) returning "Unknown error: -1", it does not imply success. Meanwhile, if buf is short enough for ERANGE, then we can't use strstr to look for "Unknown" or "Undefined" in the resulting message, like we had been doing for strerror(). Fix this by shifting the burden - now the strerror-override code guarantees that 0 will have an override when needed. * lib/strerror-override.c (strerror_override): Also override 0 when needed. * lib/strerror-override.h (strerror_override): Likewise. * lib/strerror.c (strerror): Simplify, now that 0 override is done earlier. * lib/strerror_r.c (strerror_r): Likewise. * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0 behavior... (gl_FUNC_STRERROR_0): ...into new macro. * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0 is overridden. (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken. * modules/strerror-override (Files): Add strerror.m4. (configure.ac): Also provide override for 0 when needed. * doc/posix-functions/strerror.texi (strerror): Document this. * doc/posix-functions/perror.texi (perror): Likewise. Signed-off-by: Eric Blake <eblake@redhat.com>
author Eric Blake <eblake@redhat.com>
date Tue, 21 Jun 2011 08:50:51 -0600
parents 97fc9a21a8fb
children 8250f2777afc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11219
aaeb2f86d096 Fix *printf behaviour regarding the %ls directive.
Bruno Haible <bruno@clisp.org>
parents: 9940
diff changeset
1 # snprintf-posix.m4 serial 14
14079
97fc9a21a8fb maint: update almost all copyright ranges to include 2011
Jim Meyering <meyering@redhat.com>
parents: 12559
diff changeset
2 dnl Copyright (C) 2007-2011 Free Software Foundation, Inc.
8366
9b66860c2482 New module 'snprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3 dnl This file is free software; the Free Software Foundation
9b66860c2482 New module 'snprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 dnl gives unlimited permission to copy and/or distribute it,
9b66860c2482 New module 'snprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 dnl with or without modifications, as long as this notice is preserved.
9b66860c2482 New module 'snprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6
9b66860c2482 New module 'snprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 AC_DEFUN([gl_FUNC_SNPRINTF_POSIX],
9b66860c2482 New module 'snprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8 [
9b66860c2482 New module 'snprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 AC_REQUIRE([gl_PRINTF_SIZES_C99])
8860
771a56a41b5b Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
Bruno Haible <bruno@clisp.org>
parents: 8840
diff changeset
10 AC_REQUIRE([gl_PRINTF_LONG_DOUBLE])
8840
792e05ae7ac8 Fix *printf result for NaN, Inf, -0.0 on mingw.
Bruno Haible <bruno@clisp.org>
parents: 8832
diff changeset
11 AC_REQUIRE([gl_PRINTF_INFINITE])
8860
771a56a41b5b Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
Bruno Haible <bruno@clisp.org>
parents: 8840
diff changeset
12 AC_REQUIRE([gl_PRINTF_INFINITE_LONG_DOUBLE])
8366
9b66860c2482 New module 'snprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13 AC_REQUIRE([gl_PRINTF_DIRECTIVE_A])
8664
40c507f55b0f Implement the %F directive if the system doesn't implement it correctly.
Bruno Haible <bruno@clisp.org>
parents: 8554
diff changeset
14 AC_REQUIRE([gl_PRINTF_DIRECTIVE_F])
8366
9b66860c2482 New module 'snprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 AC_REQUIRE([gl_PRINTF_DIRECTIVE_N])
11219
aaeb2f86d096 Fix *printf behaviour regarding the %ls directive.
Bruno Haible <bruno@clisp.org>
parents: 9940
diff changeset
16 AC_REQUIRE([gl_PRINTF_DIRECTIVE_LS])
8366
9b66860c2482 New module 'snprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17 AC_REQUIRE([gl_PRINTF_POSITIONS])
8803
6c1d98929550 Work around lack of support of grouping flag.
Bruno Haible <bruno@clisp.org>
parents: 8763
diff changeset
18 AC_REQUIRE([gl_PRINTF_FLAG_GROUPING])
9674
b69f1141e94f Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
Bruno Haible <bruno@clisp.org>
parents: 9446
diff changeset
19 AC_REQUIRE([gl_PRINTF_FLAG_LEFTADJUST])
8804
6ce313658b4d Work around an incorrect implementation of the 0 flag on most platforms.
Bruno Haible <bruno@clisp.org>
parents: 8803
diff changeset
20 AC_REQUIRE([gl_PRINTF_FLAG_ZERO])
9446
0519fc8ce06a Fix *printf behaviour for large precisions on mingw and BeOS.
Bruno Haible <bruno@clisp.org>
parents: 9442
diff changeset
21 AC_REQUIRE([gl_PRINTF_PRECISION])
9442
ad275322f8f1 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
Bruno Haible <bruno@clisp.org>
parents: 8860
diff changeset
22 AC_REQUIRE([gl_PRINTF_ENOMEM])
8366
9b66860c2482 New module 'snprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23 gl_cv_func_snprintf_posix=no
9b66860c2482 New module 'snprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 AC_CHECK_FUNCS([snprintf])
9b66860c2482 New module 'snprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 if test $ac_cv_func_snprintf = yes; then
9b66860c2482 New module 'snprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26 gl_SNPRINTF_TRUNCATION_C99
9b66860c2482 New module 'snprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27 gl_SNPRINTF_RETVAL_C99
9b66860c2482 New module 'snprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28 gl_SNPRINTF_DIRECTIVE_N
9940
0471a8660b70 Work around snprintf bug on Linux libc5.
Bruno Haible <bruno@clisp.org>
parents: 9831
diff changeset
29 gl_SNPRINTF_SIZE1
8763
39bb5430fc0e Guard against vsnprintf implementations that mishandle a size=0 argument.
Bruno Haible <bruno@clisp.org>
parents: 8664
diff changeset
30 gl_VSNPRINTF_ZEROSIZE_C99
8389
e7c9cf0455da Use 'case' statements instead of 'expr' invocations.
Bruno Haible <bruno@clisp.org>
parents: 8366
diff changeset
31 case "$gl_cv_func_printf_sizes_c99" in
e7c9cf0455da Use 'case' statements instead of 'expr' invocations.
Bruno Haible <bruno@clisp.org>
parents: 8366
diff changeset
32 *yes)
8860
771a56a41b5b Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
Bruno Haible <bruno@clisp.org>
parents: 8840
diff changeset
33 case "$gl_cv_func_printf_long_double" in
8389
e7c9cf0455da Use 'case' statements instead of 'expr' invocations.
Bruno Haible <bruno@clisp.org>
parents: 8366
diff changeset
34 *yes)
8860
771a56a41b5b Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
Bruno Haible <bruno@clisp.org>
parents: 8840
diff changeset
35 case "$gl_cv_func_printf_infinite" in
8389
e7c9cf0455da Use 'case' statements instead of 'expr' invocations.
Bruno Haible <bruno@clisp.org>
parents: 8366
diff changeset
36 *yes)
8860
771a56a41b5b Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
Bruno Haible <bruno@clisp.org>
parents: 8840
diff changeset
37 case "$gl_cv_func_printf_infinite_long_double" in
8389
e7c9cf0455da Use 'case' statements instead of 'expr' invocations.
Bruno Haible <bruno@clisp.org>
parents: 8366
diff changeset
38 *yes)
8860
771a56a41b5b Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
Bruno Haible <bruno@clisp.org>
parents: 8840
diff changeset
39 case "$gl_cv_func_printf_directive_a" in
8389
e7c9cf0455da Use 'case' statements instead of 'expr' invocations.
Bruno Haible <bruno@clisp.org>
parents: 8366
diff changeset
40 *yes)
8860
771a56a41b5b Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
Bruno Haible <bruno@clisp.org>
parents: 8840
diff changeset
41 case "$gl_cv_func_printf_directive_f" in
8389
e7c9cf0455da Use 'case' statements instead of 'expr' invocations.
Bruno Haible <bruno@clisp.org>
parents: 8366
diff changeset
42 *yes)
8860
771a56a41b5b Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
Bruno Haible <bruno@clisp.org>
parents: 8840
diff changeset
43 case "$gl_cv_func_printf_directive_n" in
8389
e7c9cf0455da Use 'case' statements instead of 'expr' invocations.
Bruno Haible <bruno@clisp.org>
parents: 8366
diff changeset
44 *yes)
11219
aaeb2f86d096 Fix *printf behaviour regarding the %ls directive.
Bruno Haible <bruno@clisp.org>
parents: 9940
diff changeset
45 case "$gl_cv_func_printf_directive_ls" in
8664
40c507f55b0f Implement the %F directive if the system doesn't implement it correctly.
Bruno Haible <bruno@clisp.org>
parents: 8554
diff changeset
46 *yes)
11219
aaeb2f86d096 Fix *printf behaviour regarding the %ls directive.
Bruno Haible <bruno@clisp.org>
parents: 9940
diff changeset
47 case "$gl_cv_func_printf_positions" in
8763
39bb5430fc0e Guard against vsnprintf implementations that mishandle a size=0 argument.
Bruno Haible <bruno@clisp.org>
parents: 8664
diff changeset
48 *yes)
11219
aaeb2f86d096 Fix *printf behaviour regarding the %ls directive.
Bruno Haible <bruno@clisp.org>
parents: 9940
diff changeset
49 case "$gl_cv_func_printf_flag_grouping" in
8803
6c1d98929550 Work around lack of support of grouping flag.
Bruno Haible <bruno@clisp.org>
parents: 8763
diff changeset
50 *yes)
11219
aaeb2f86d096 Fix *printf behaviour regarding the %ls directive.
Bruno Haible <bruno@clisp.org>
parents: 9940
diff changeset
51 case "$gl_cv_func_printf_flag_leftadjust" in
8804
6ce313658b4d Work around an incorrect implementation of the 0 flag on most platforms.
Bruno Haible <bruno@clisp.org>
parents: 8803
diff changeset
52 *yes)
11219
aaeb2f86d096 Fix *printf behaviour regarding the %ls directive.
Bruno Haible <bruno@clisp.org>
parents: 9940
diff changeset
53 case "$gl_cv_func_printf_flag_zero" in
8832
1466c973f476 Add support for 'long double' number output.
Bruno Haible <bruno@clisp.org>
parents: 8804
diff changeset
54 *yes)
11219
aaeb2f86d096 Fix *printf behaviour regarding the %ls directive.
Bruno Haible <bruno@clisp.org>
parents: 9940
diff changeset
55 case "$gl_cv_func_printf_precision" in
8840
792e05ae7ac8 Fix *printf result for NaN, Inf, -0.0 on mingw.
Bruno Haible <bruno@clisp.org>
parents: 8832
diff changeset
56 *yes)
11219
aaeb2f86d096 Fix *printf behaviour regarding the %ls directive.
Bruno Haible <bruno@clisp.org>
parents: 9940
diff changeset
57 case "$gl_cv_func_printf_enomem" in
8860
771a56a41b5b Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
Bruno Haible <bruno@clisp.org>
parents: 8840
diff changeset
58 *yes)
11219
aaeb2f86d096 Fix *printf behaviour regarding the %ls directive.
Bruno Haible <bruno@clisp.org>
parents: 9940
diff changeset
59 case "$gl_cv_func_snprintf_truncation_c99" in
9442
ad275322f8f1 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
Bruno Haible <bruno@clisp.org>
parents: 8860
diff changeset
60 *yes)
11219
aaeb2f86d096 Fix *printf behaviour regarding the %ls directive.
Bruno Haible <bruno@clisp.org>
parents: 9940
diff changeset
61 case "$gl_cv_func_snprintf_retval_c99" in
9446
0519fc8ce06a Fix *printf behaviour for large precisions on mingw and BeOS.
Bruno Haible <bruno@clisp.org>
parents: 9442
diff changeset
62 *yes)
11219
aaeb2f86d096 Fix *printf behaviour regarding the %ls directive.
Bruno Haible <bruno@clisp.org>
parents: 9940
diff changeset
63 case "$gl_cv_func_snprintf_directive_n" in
9674
b69f1141e94f Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
Bruno Haible <bruno@clisp.org>
parents: 9446
diff changeset
64 *yes)
11219
aaeb2f86d096 Fix *printf behaviour regarding the %ls directive.
Bruno Haible <bruno@clisp.org>
parents: 9940
diff changeset
65 case "$gl_cv_func_snprintf_size1" in
9940
0471a8660b70 Work around snprintf bug on Linux libc5.
Bruno Haible <bruno@clisp.org>
parents: 9831
diff changeset
66 *yes)
11219
aaeb2f86d096 Fix *printf behaviour regarding the %ls directive.
Bruno Haible <bruno@clisp.org>
parents: 9940
diff changeset
67 case "$gl_cv_func_vsnprintf_zerosize_c99" in
aaeb2f86d096 Fix *printf behaviour regarding the %ls directive.
Bruno Haible <bruno@clisp.org>
parents: 9940
diff changeset
68 *yes)
aaeb2f86d096 Fix *printf behaviour regarding the %ls directive.
Bruno Haible <bruno@clisp.org>
parents: 9940
diff changeset
69 # snprintf exists and is
aaeb2f86d096 Fix *printf behaviour regarding the %ls directive.
Bruno Haible <bruno@clisp.org>
parents: 9940
diff changeset
70 # already POSIX compliant.
aaeb2f86d096 Fix *printf behaviour regarding the %ls directive.
Bruno Haible <bruno@clisp.org>
parents: 9940
diff changeset
71 gl_cv_func_snprintf_posix=yes
aaeb2f86d096 Fix *printf behaviour regarding the %ls directive.
Bruno Haible <bruno@clisp.org>
parents: 9940
diff changeset
72 ;;
aaeb2f86d096 Fix *printf behaviour regarding the %ls directive.
Bruno Haible <bruno@clisp.org>
parents: 9940
diff changeset
73 esac
9940
0471a8660b70 Work around snprintf bug on Linux libc5.
Bruno Haible <bruno@clisp.org>
parents: 9831
diff changeset
74 ;;
0471a8660b70 Work around snprintf bug on Linux libc5.
Bruno Haible <bruno@clisp.org>
parents: 9831
diff changeset
75 esac
9674
b69f1141e94f Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
Bruno Haible <bruno@clisp.org>
parents: 9446
diff changeset
76 ;;
b69f1141e94f Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
Bruno Haible <bruno@clisp.org>
parents: 9446
diff changeset
77 esac
9446
0519fc8ce06a Fix *printf behaviour for large precisions on mingw and BeOS.
Bruno Haible <bruno@clisp.org>
parents: 9442
diff changeset
78 ;;
0519fc8ce06a Fix *printf behaviour for large precisions on mingw and BeOS.
Bruno Haible <bruno@clisp.org>
parents: 9442
diff changeset
79 esac
9442
ad275322f8f1 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
Bruno Haible <bruno@clisp.org>
parents: 8860
diff changeset
80 ;;
ad275322f8f1 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
Bruno Haible <bruno@clisp.org>
parents: 8860
diff changeset
81 esac
8860
771a56a41b5b Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
Bruno Haible <bruno@clisp.org>
parents: 8840
diff changeset
82 ;;
771a56a41b5b Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
Bruno Haible <bruno@clisp.org>
parents: 8840
diff changeset
83 esac
8840
792e05ae7ac8 Fix *printf result for NaN, Inf, -0.0 on mingw.
Bruno Haible <bruno@clisp.org>
parents: 8832
diff changeset
84 ;;
792e05ae7ac8 Fix *printf result for NaN, Inf, -0.0 on mingw.
Bruno Haible <bruno@clisp.org>
parents: 8832
diff changeset
85 esac
8832
1466c973f476 Add support for 'long double' number output.
Bruno Haible <bruno@clisp.org>
parents: 8804
diff changeset
86 ;;
1466c973f476 Add support for 'long double' number output.
Bruno Haible <bruno@clisp.org>
parents: 8804
diff changeset
87 esac
8804
6ce313658b4d Work around an incorrect implementation of the 0 flag on most platforms.
Bruno Haible <bruno@clisp.org>
parents: 8803
diff changeset
88 ;;
6ce313658b4d Work around an incorrect implementation of the 0 flag on most platforms.
Bruno Haible <bruno@clisp.org>
parents: 8803
diff changeset
89 esac
8803
6c1d98929550 Work around lack of support of grouping flag.
Bruno Haible <bruno@clisp.org>
parents: 8763
diff changeset
90 ;;
6c1d98929550 Work around lack of support of grouping flag.
Bruno Haible <bruno@clisp.org>
parents: 8763
diff changeset
91 esac
8763
39bb5430fc0e Guard against vsnprintf implementations that mishandle a size=0 argument.
Bruno Haible <bruno@clisp.org>
parents: 8664
diff changeset
92 ;;
39bb5430fc0e Guard against vsnprintf implementations that mishandle a size=0 argument.
Bruno Haible <bruno@clisp.org>
parents: 8664
diff changeset
93 esac
8664
40c507f55b0f Implement the %F directive if the system doesn't implement it correctly.
Bruno Haible <bruno@clisp.org>
parents: 8554
diff changeset
94 ;;
40c507f55b0f Implement the %F directive if the system doesn't implement it correctly.
Bruno Haible <bruno@clisp.org>
parents: 8554
diff changeset
95 esac
8389
e7c9cf0455da Use 'case' statements instead of 'expr' invocations.
Bruno Haible <bruno@clisp.org>
parents: 8366
diff changeset
96 ;;
e7c9cf0455da Use 'case' statements instead of 'expr' invocations.
Bruno Haible <bruno@clisp.org>
parents: 8366
diff changeset
97 esac
e7c9cf0455da Use 'case' statements instead of 'expr' invocations.
Bruno Haible <bruno@clisp.org>
parents: 8366
diff changeset
98 ;;
e7c9cf0455da Use 'case' statements instead of 'expr' invocations.
Bruno Haible <bruno@clisp.org>
parents: 8366
diff changeset
99 esac
e7c9cf0455da Use 'case' statements instead of 'expr' invocations.
Bruno Haible <bruno@clisp.org>
parents: 8366
diff changeset
100 ;;
e7c9cf0455da Use 'case' statements instead of 'expr' invocations.
Bruno Haible <bruno@clisp.org>
parents: 8366
diff changeset
101 esac
e7c9cf0455da Use 'case' statements instead of 'expr' invocations.
Bruno Haible <bruno@clisp.org>
parents: 8366
diff changeset
102 ;;
e7c9cf0455da Use 'case' statements instead of 'expr' invocations.
Bruno Haible <bruno@clisp.org>
parents: 8366
diff changeset
103 esac
e7c9cf0455da Use 'case' statements instead of 'expr' invocations.
Bruno Haible <bruno@clisp.org>
parents: 8366
diff changeset
104 ;;
e7c9cf0455da Use 'case' statements instead of 'expr' invocations.
Bruno Haible <bruno@clisp.org>
parents: 8366
diff changeset
105 esac
e7c9cf0455da Use 'case' statements instead of 'expr' invocations.
Bruno Haible <bruno@clisp.org>
parents: 8366
diff changeset
106 ;;
e7c9cf0455da Use 'case' statements instead of 'expr' invocations.
Bruno Haible <bruno@clisp.org>
parents: 8366
diff changeset
107 esac
e7c9cf0455da Use 'case' statements instead of 'expr' invocations.
Bruno Haible <bruno@clisp.org>
parents: 8366
diff changeset
108 ;;
e7c9cf0455da Use 'case' statements instead of 'expr' invocations.
Bruno Haible <bruno@clisp.org>
parents: 8366
diff changeset
109 esac
8366
9b66860c2482 New module 'snprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
110 fi
9b66860c2482 New module 'snprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
111 if test $gl_cv_func_snprintf_posix = no; then
8832
1466c973f476 Add support for 'long double' number output.
Bruno Haible <bruno@clisp.org>
parents: 8804
diff changeset
112 gl_PREREQ_VASNPRINTF_LONG_DOUBLE
8860
771a56a41b5b Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
Bruno Haible <bruno@clisp.org>
parents: 8840
diff changeset
113 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE
771a56a41b5b Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
Bruno Haible <bruno@clisp.org>
parents: 8840
diff changeset
114 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE
8554
35eb5062216c Prefer nl_langinfo over localeconv.
Bruno Haible <bruno@clisp.org>
parents: 8389
diff changeset
115 gl_PREREQ_VASNPRINTF_DIRECTIVE_A
8664
40c507f55b0f Implement the %F directive if the system doesn't implement it correctly.
Bruno Haible <bruno@clisp.org>
parents: 8554
diff changeset
116 gl_PREREQ_VASNPRINTF_DIRECTIVE_F
11219
aaeb2f86d096 Fix *printf behaviour regarding the %ls directive.
Bruno Haible <bruno@clisp.org>
parents: 9940
diff changeset
117 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS
8803
6c1d98929550 Work around lack of support of grouping flag.
Bruno Haible <bruno@clisp.org>
parents: 8763
diff changeset
118 gl_PREREQ_VASNPRINTF_FLAG_GROUPING
9674
b69f1141e94f Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
Bruno Haible <bruno@clisp.org>
parents: 9446
diff changeset
119 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST
8804
6ce313658b4d Work around an incorrect implementation of the 0 flag on most platforms.
Bruno Haible <bruno@clisp.org>
parents: 8803
diff changeset
120 gl_PREREQ_VASNPRINTF_FLAG_ZERO
9446
0519fc8ce06a Fix *printf behaviour for large precisions on mingw and BeOS.
Bruno Haible <bruno@clisp.org>
parents: 9442
diff changeset
121 gl_PREREQ_VASNPRINTF_PRECISION
9442
ad275322f8f1 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
Bruno Haible <bruno@clisp.org>
parents: 8860
diff changeset
122 gl_PREREQ_VASNPRINTF_ENOMEM
8366
9b66860c2482 New module 'snprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
123 gl_REPLACE_VASNPRINTF
9b66860c2482 New module 'snprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
124 gl_REPLACE_SNPRINTF
9b66860c2482 New module 'snprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
125 fi
9b66860c2482 New module 'snprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
126 ])