2 @subsection @code{stdin}
5 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/functions/stdin.html}
9 Portability problems fixed by Gnulib:
13 Portability problems not fixed by Gnulib:
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
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}.