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