poll tests: Avoid test failure on BSD and Solaris systems.
[gnulib.git] / doc / posix-functions / vdprintf.texi
blobf085e8693ecad3420a0a112b6c8e35fed01661d5
1 @node vdprintf
2 @section @code{vdprintf}
3 @findex vdprintf
5 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/vdprintf.html}
7 Gnulib module: vdprintf or vdprintf-posix
9 Portability problems fixed by either Gnulib module @code{vdprintf} or @code{vdprintf-posix}:
10 @itemize
11 @item
12 This function is missing on some platforms:
13 Mac OS X 10.5, FreeBSD 6.0, NetBSD 5.0, OpenBSD 3.8, Minix 3.1.8, AIX 5.1, HP-UX 11, IRIX 6.5, Solaris 11.3, Cygwin 1.5.x, mingw, MSVC 14.
14 @end itemize
16 Portability problems fixed by Gnulib module @code{vdprintf-posix}:
17 @itemize
18 @item
19 printf @code{"%f"}, @code{"%e"}, @code{"%g"} of Infinity and NaN yields an
20 incorrect result on some platforms:
21 Solaris 11.4.
22 @item
23 This function does not support the @samp{a} and @samp{A} directives on some
24 platforms:
25 glibc-2.3.6, Solaris 11.4.
26 @item
27 This function does not support the @samp{n} directive on some platforms:
28 glibc when used with @code{_FORTIFY_SOURCE >= 2} (set by default on Ubuntu),
29 Mac OS X 10.13.
30 @item
31 This function does not support precisions in the @samp{ls} directive correctly
32 on some platforms:
33 Solaris 11.4.
34 @item
35 printf @code{"%010f"} of NaN and Infinity yields an incorrect result (padded
36 with zeroes, or wrong capitalization) on some platforms:
37 Solaris 11.4.
38 @item
39 This function does not support precisions larger than 512 or 1024 in integer,
40 floating-point and pointer output on some platforms:
41 AIX 7.1.
42 @end itemize
44 Portability problems not fixed by Gnulib:
45 @itemize
46 @item
47 The @code{%m} directive is not portable, use @code{%s} mapped to an
48 argument of @code{strerror(errno)} (or a version of @code{strerror_r})
49 instead.
50 @item
51 Formatting noncanonical @samp{long double} numbers produces
52 nonmeaningful results on some platforms:
53 glibc and others, on x86, x86_64, IA-64 CPUs.
54 @item
55 When formatting an integer with grouping flag, this function inserts thousands
56 separators even in the "C" locale on some platforms:
57 NetBSD 5.1.
58 @item
59 On some platforms, this function does not set @code{errno} or the
60 stream error indicator on attempts to write to a read-only stream:
61 Cygwin 1.7.9.
62 @end itemize