annotate doc/posix-functions/vfprintf.texi @ 39913:73d60b1f9c96

doc: Update for Solaris 11.4. * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4, mention Solaris 11.4. * m4/printf.m4: Update comments about Solaris. * m4/log.m4: Likewise. * m4/log10.m4: Likewise. * m4/logb.m4: Likewise. * m4/logbf.m4: Likewise. * m4/logbl.m4: Likewise. * m4/rename.m4: Likewise. * m4/wcrtomb.m4: Likewise. * m4/hostent.m4: Likewise. * m4/servent.m4: Likewise.
author Bruno Haible <bruno@clisp.org>
date Sun, 14 Oct 2018 09:33:46 +0200
parents 11af6bbd6df5
children db717b5315cf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9638
070329237839 Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 @node vfprintf
070329237839 Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
2 @section @code{vfprintf}
070329237839 Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3 @findex vfprintf
070329237839 Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4
13549
bb0ceefd22dc avoid some overlong lines from posix urls, etc.
Karl Berry <karl@freefriends.org>
parents: 11234
diff changeset
5 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/vfprintf.html}
9638
070329237839 Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6
14578
4e83bc0de9e4 Support non-blocking pipe I/O in write() on native Windows.
Bruno Haible <bruno@clisp.org>
parents: 14005
diff changeset
7 Gnulib module: vfprintf-posix or stdio, nonblocking, sigpipe
9638
070329237839 Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8
10487
953f72c1ffcc Support SIGPIPE in stdio functions for writing.
Bruno Haible <bruno@clisp.org>
parents: 9674
diff changeset
9 Portability problems fixed by Gnulib module @code{vfprintf-posix}:
9638
070329237839 Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 @itemize
070329237839 Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 @item
070329237839 Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 This function does not support size specifiers as in C99 (@code{hh}, @code{ll},
070329237839 Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13 @code{j}, @code{t}, @code{z}) on some platforms:
18977
b8576602c861 doc: Update for MSVC 14.
Bruno Haible <bruno@clisp.org>
parents: 18803
diff changeset
14 AIX 5.1, HP-UX 11.23, IRIX 6.5, OSF/1 5.1, Solaris 9, Cygwin 1.5.24, mingw, MSVC 14, BeOS.
9638
070329237839 Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 @item
070329237839 Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16 printf of @samp{long double} numbers is unsupported on some platforms:
18977
b8576602c861 doc: Update for MSVC 14.
Bruno Haible <bruno@clisp.org>
parents: 18803
diff changeset
17 mingw, MSVC 14, BeOS.
9638
070329237839 Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18 @item
070329237839 Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 printf @code{"%f"}, @code{"%e"}, @code{"%g"} of Infinity and NaN yields an
070329237839 Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20 incorrect result on some platforms:
39913
73d60b1f9c96 doc: Update for Solaris 11.4.
Bruno Haible <bruno@clisp.org>
parents: 19242
diff changeset
21 AIX 5.2, OSF/1 5.1, Solaris 11.4, mingw, MSVC 14.
9638
070329237839 Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22 @item
070329237839 Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23 This function does not support the @samp{a} and @samp{A} directives on some
070329237839 Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 platforms:
16935
498a2211d839 Write "Mac OS X" instead of "MacOS X".
Bruno Haible <bruno@clisp.org>
parents: 16799
diff changeset
25 glibc-2.3.6, Mac OS X 10.5, NetBSD 5.0, OpenBSD 4.0, AIX 5.2, HP-UX 11,
39913
73d60b1f9c96 doc: Update for Solaris 11.4.
Bruno Haible <bruno@clisp.org>
parents: 19242
diff changeset
26 IRIX 6.5, OSF/1 5.1, Solaris 11.4, Cygwin 1.5.x, mingw, MSVC 14, BeOS.
9638
070329237839 Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27 @item
070329237839 Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28 This function does not support the @samp{F} directive on some platforms:
11048
b885f8c983db doc: mention more functions added in cygwin 1.7.0
Eric Blake <ebb9@byu.net>
parents: 10876
diff changeset
29 NetBSD 3.0, AIX 5.1, HP-UX 11.23, IRIX 6.5, OSF/1 5.1, Solaris 9,
18977
b8576602c861 doc: Update for MSVC 14.
Bruno Haible <bruno@clisp.org>
parents: 18803
diff changeset
30 Cygwin 1.5.x, mingw, MSVC 14, BeOS.
15591
2171e9d2231b *printf: Add support for MSVC compiler.
Bruno Haible <bruno@clisp.org>
parents: 15296
diff changeset
31 @item
2171e9d2231b *printf: Add support for MSVC compiler.
Bruno Haible <bruno@clisp.org>
parents: 15296
diff changeset
32 This function does not support the @samp{n} directive on some platforms:
18977
b8576602c861 doc: Update for MSVC 14.
Bruno Haible <bruno@clisp.org>
parents: 18803
diff changeset
33 MSVC 14.
9638
070329237839 Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
34 @item
11219
aaeb2f86d096 Fix *printf behaviour regarding the %ls directive.
Bruno Haible <bruno@clisp.org>
parents: 11048
diff changeset
35 This function does not support the @samp{ls} directive on some platforms:
11234
cf3001cea096 Separate two tests. Mention the platforms in canonical order.
Bruno Haible <bruno@clisp.org>
parents: 11225
diff changeset
36 OpenBSD 4.0, IRIX 6.5, Solaris 2.6, Cygwin 1.5.x, Haiku.
11219
aaeb2f86d096 Fix *printf behaviour regarding the %ls directive.
Bruno Haible <bruno@clisp.org>
parents: 11048
diff changeset
37 @item
11223
41012a39667b Work around a *printf bug with %ls on Solaris.
Bruno Haible <bruno@clisp.org>
parents: 11219
diff changeset
38 This function does not support precisions in the @samp{ls} directive correctly
41012a39667b Work around a *printf bug with %ls on Solaris.
Bruno Haible <bruno@clisp.org>
parents: 11219
diff changeset
39 on some platforms:
39913
73d60b1f9c96 doc: Update for Solaris 11.4.
Bruno Haible <bruno@clisp.org>
parents: 19242
diff changeset
40 Solaris 11.4.
11223
41012a39667b Work around a *printf bug with %ls on Solaris.
Bruno Haible <bruno@clisp.org>
parents: 11219
diff changeset
41 @item
9638
070329237839 Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
42 This function does not support format directives that access arguments in an
070329237839 Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
43 arbitrary order, such as @code{"%2$s"}, on some platforms:
18977
b8576602c861 doc: Update for MSVC 14.
Bruno Haible <bruno@clisp.org>
parents: 18803
diff changeset
44 NetBSD 3.0, mingw, MSVC 14, BeOS.
9638
070329237839 Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
45 @item
070329237839 Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
46 This function doesn't support the @code{'} flag on some platforms:
18977
b8576602c861 doc: Update for MSVC 14.
Bruno Haible <bruno@clisp.org>
parents: 18803
diff changeset
47 NetBSD 3.0, Cygwin 1.5.24, mingw, MSVC 14.
9638
070329237839 Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
48 @item
18803
f581ad1383c6 *printf: Work around rounding bug on Mac OS X.
Bruno Haible <bruno@clisp.org>
parents: 17927
diff changeset
49 This function does not round the argument of the @samp{a} directive correctly
f581ad1383c6 *printf: Work around rounding bug on Mac OS X.
Bruno Haible <bruno@clisp.org>
parents: 17927
diff changeset
50 on some platforms:
f581ad1383c6 *printf: Work around rounding bug on Mac OS X.
Bruno Haible <bruno@clisp.org>
parents: 17927
diff changeset
51 Mac OS X 10.12, FreeBSD 6.1.
f581ad1383c6 *printf: Work around rounding bug on Mac OS X.
Bruno Haible <bruno@clisp.org>
parents: 17927
diff changeset
52 @item
9674
b69f1141e94f Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
Bruno Haible <bruno@clisp.org>
parents: 9638
diff changeset
53 This function behaves incorrectly when a @samp{-} flag and a negative width
b69f1141e94f Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
Bruno Haible <bruno@clisp.org>
parents: 9638
diff changeset
54 are specified together, on some platforms:
b69f1141e94f Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
Bruno Haible <bruno@clisp.org>
parents: 9638
diff changeset
55 HP-UX 10.20.
b69f1141e94f Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
Bruno Haible <bruno@clisp.org>
parents: 9638
diff changeset
56 @item
9638
070329237839 Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
57 printf @code{"%010f"} of NaN and Infinity yields an incorrect result (padded
39913
73d60b1f9c96 doc: Update for Solaris 11.4.
Bruno Haible <bruno@clisp.org>
parents: 19242
diff changeset
58 with zeroes, or wrong capitalization) on some platforms:
73d60b1f9c96 doc: Update for Solaris 11.4.
Bruno Haible <bruno@clisp.org>
parents: 19242
diff changeset
59 Mac OS X 10.5, FreeBSD 6.0, NetBSD 5.0, AIX 5.2, IRIX 6.5, OSF/1 5.1, Solaris 11.4, Cygwin 1.5.x, mingw, MSVC 14.
9638
070329237839 Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
60 @item
070329237839 Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
61 This function does not support precisions larger than 512 or 1024 in integer,
070329237839 Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
62 floating-point and pointer output on some platforms:
18977
b8576602c861 doc: Update for MSVC 14.
Bruno Haible <bruno@clisp.org>
parents: 18803
diff changeset
63 AIX 7.1, Solaris 10/x86, mingw, MSVC 14, BeOS.
9638
070329237839 Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
64 @item
14005
f585ecc144aa *printf: Detect large precisions bug on Solaris 10/SPARC.
Bruno Haible <bruno@clisp.org>
parents: 14001
diff changeset
65 This function mishandles large floating point precisions
f585ecc144aa *printf: Detect large precisions bug on Solaris 10/SPARC.
Bruno Haible <bruno@clisp.org>
parents: 14001
diff changeset
66 (for example, formatting 1.0 with @samp{"%.511f"})
f585ecc144aa *printf: Detect large precisions bug on Solaris 10/SPARC.
Bruno Haible <bruno@clisp.org>
parents: 14001
diff changeset
67 on some platforms:
f585ecc144aa *printf: Detect large precisions bug on Solaris 10/SPARC.
Bruno Haible <bruno@clisp.org>
parents: 14001
diff changeset
68 Solaris 10.
f585ecc144aa *printf: Detect large precisions bug on Solaris 10/SPARC.
Bruno Haible <bruno@clisp.org>
parents: 14001
diff changeset
69 @item
9638
070329237839 Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
70 This function can crash in out-of-memory conditions on some platforms:
16935
498a2211d839 Write "Mac OS X" instead of "MacOS X".
Bruno Haible <bruno@clisp.org>
parents: 16799
diff changeset
71 Mac OS X 10.3, FreeBSD 6.0, NetBSD 5.0.
9638
070329237839 Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
72 @end itemize
070329237839 Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
73
14578
4e83bc0de9e4 Support non-blocking pipe I/O in write() on native Windows.
Bruno Haible <bruno@clisp.org>
parents: 14005
diff changeset
74 Portability problems fixed by Gnulib module @code{stdio} or @code{vfprintf-posix}, together with module @code{nonblocking}:
4e83bc0de9e4 Support non-blocking pipe I/O in write() on native Windows.
Bruno Haible <bruno@clisp.org>
parents: 14005
diff changeset
75 @itemize
4e83bc0de9e4 Support non-blocking pipe I/O in write() on native Windows.
Bruno Haible <bruno@clisp.org>
parents: 14005
diff changeset
76 @item
4e83bc0de9e4 Support non-blocking pipe I/O in write() on native Windows.
Bruno Haible <bruno@clisp.org>
parents: 14005
diff changeset
77 When writing to a non-blocking pipe whose buffer is full, this function fails
4e83bc0de9e4 Support non-blocking pipe I/O in write() on native Windows.
Bruno Haible <bruno@clisp.org>
parents: 14005
diff changeset
78 with @code{errno} being set to @code{ENOSPC} instead of @code{EAGAIN} on some
4e83bc0de9e4 Support non-blocking pipe I/O in write() on native Windows.
Bruno Haible <bruno@clisp.org>
parents: 14005
diff changeset
79 platforms:
18977
b8576602c861 doc: Update for MSVC 14.
Bruno Haible <bruno@clisp.org>
parents: 18803
diff changeset
80 mingw, MSVC 14.
14578
4e83bc0de9e4 Support non-blocking pipe I/O in write() on native Windows.
Bruno Haible <bruno@clisp.org>
parents: 14005
diff changeset
81 @end itemize
4e83bc0de9e4 Support non-blocking pipe I/O in write() on native Windows.
Bruno Haible <bruno@clisp.org>
parents: 14005
diff changeset
82
10487
953f72c1ffcc Support SIGPIPE in stdio functions for writing.
Bruno Haible <bruno@clisp.org>
parents: 9674
diff changeset
83 Portability problems fixed by Gnulib module @code{stdio} or @code{vfprintf-posix}, together with module @code{sigpipe}:
953f72c1ffcc Support SIGPIPE in stdio functions for writing.
Bruno Haible <bruno@clisp.org>
parents: 9674
diff changeset
84 @itemize
953f72c1ffcc Support SIGPIPE in stdio functions for writing.
Bruno Haible <bruno@clisp.org>
parents: 9674
diff changeset
85 @item
953f72c1ffcc Support SIGPIPE in stdio functions for writing.
Bruno Haible <bruno@clisp.org>
parents: 9674
diff changeset
86 When writing to a pipe with no readers, this function fails, instead of
953f72c1ffcc Support SIGPIPE in stdio functions for writing.
Bruno Haible <bruno@clisp.org>
parents: 9674
diff changeset
87 obeying the current @code{SIGPIPE} handler, on some platforms:
18977
b8576602c861 doc: Update for MSVC 14.
Bruno Haible <bruno@clisp.org>
parents: 18803
diff changeset
88 mingw, MSVC 14.
10487
953f72c1ffcc Support SIGPIPE in stdio functions for writing.
Bruno Haible <bruno@clisp.org>
parents: 9674
diff changeset
89 @end itemize
953f72c1ffcc Support SIGPIPE in stdio functions for writing.
Bruno Haible <bruno@clisp.org>
parents: 9674
diff changeset
90
9638
070329237839 Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
91 Portability problems not fixed by Gnulib:
070329237839 Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
92 @itemize
14823
3fe3b9fc9c12 docs: document recently fixed glibc printf bug
Eric Blake <eblake@redhat.com>
parents: 14578
diff changeset
93 @item
17927
b941bb9e9efb printf, isinf, etc.: noncanonical != NaN
Paul Eggert <eggert@cs.ucla.edu>
parents: 16935
diff changeset
94 Formatting noncanonical @samp{long double} numbers produces
b941bb9e9efb printf, isinf, etc.: noncanonical != NaN
Paul Eggert <eggert@cs.ucla.edu>
parents: 16935
diff changeset
95 nonmeaningful results on some platforms:
b941bb9e9efb printf, isinf, etc.: noncanonical != NaN
Paul Eggert <eggert@cs.ucla.edu>
parents: 16935
diff changeset
96 glibc and others, on x86, x86_64, IA-64 CPUs.
b941bb9e9efb printf, isinf, etc.: noncanonical != NaN
Paul Eggert <eggert@cs.ucla.edu>
parents: 16935
diff changeset
97 @item
16232
ee328959515f doc: Mention NetBSD bugs.
Bruno Haible <bruno@clisp.org>
parents: 15591
diff changeset
98 When formatting an integer with grouping flag, this function inserts thousands
ee328959515f doc: Mention NetBSD bugs.
Bruno Haible <bruno@clisp.org>
parents: 15591
diff changeset
99 separators even in the "C" locale on some platforms:
ee328959515f doc: Mention NetBSD bugs.
Bruno Haible <bruno@clisp.org>
parents: 15591
diff changeset
100 NetBSD 5.1.
ee328959515f doc: Mention NetBSD bugs.
Bruno Haible <bruno@clisp.org>
parents: 15591
diff changeset
101 @item
14823
3fe3b9fc9c12 docs: document recently fixed glibc printf bug
Eric Blake <eblake@redhat.com>
parents: 14578
diff changeset
102 Attempting to write to a read-only stream fails with @code{EOF} but
3fe3b9fc9c12 docs: document recently fixed glibc printf bug
Eric Blake <eblake@redhat.com>
parents: 14578
diff changeset
103 does not set the error flag for @code{ferror} on some platforms:
14888
805e07cd88c7 test-perror: relax test to ignore cygwin bug
Eric Blake <eblake@redhat.com>
parents: 14823
diff changeset
104 glibc 2.13, cygwin 1.7.9.
9638
070329237839 Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
105 @end itemize