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