23a0e96fb00c0f6e3619bd548dfe59b764ef1044
[gnulib.git] / doc / posix-functions / stdout.texi
1 @node stdout
2 @section @code{stdout}
3 @findex stdout
4
5 POSIX specification: @url{http://www.opengroup.org/onlinepubs/9699919799/functions/stdout.html}
6
7 Gnulib module: ---
8
9 Portability problems fixed by Gnulib:
10 @itemize
11 @end itemize
12
13 Portability problems not fixed by Gnulib:
14 @itemize
15 @item
16 stdout is created in 32-bit mode instead of 64-bit mode: Cygwin 1.5.x.
17 One workaround is to use freopen(NULL, ``w'', stdout) on Cygwin 1.5.21
18 or newer.  Another is to use the gnulib ftello module and do
19 ftello(stdout).
20 @item
21 POSIX states that a setuid application can guarantee that fd 1 is
22 open, but some systems guarantee this even for non-setuid programs.
23 If an application is executed with fd 1 closed, use of @code{stdout}
24 can affect an unrelated file that happened to be assigned to fd 1.
25 The gnulib *-safer modules may be used to guarantee that fd 1 stays
26 reserved for @code{stdout}.
27 @end itemize