gettimeofday: port recent C++ fix to Emacs
[gnulib.git] / doc / posix-functions / stderr.texi
1 @node stderr
2 @section @code{stderr}
3 @findex stderr
4
5 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/stderr.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 stderr is created in 32-bit mode instead of 64-bit mode: Cygwin 1.5.x.
17 One workaround is to use freopen(NULL, ``r+'', stderr) on Cygwin 1.5.21
18 or newer.  Another is to use the gnulib ftello module and do
19 ftello(stderr).
20 @item
21 POSIX states that a setuid application can guarantee that fd 2 is
22 open, but some systems guarantee this even for non-setuid programs.
23 If an application is executed with fd 2 closed, use of @code{stderr}
24 can affect an unrelated file that happened to be assigned to fd 2.
25 The gnulib *-safer modules may be used to guarantee that fd 2 stays
26 reserved for @code{stderr}.
27 @end itemize