maint: enable sc_prohibit_cloexec_without_use
[gnulib/ericb.git] / doc / posix-functions / getc.texi
blob514b0f76a446cb2d77823923ecf93866e29f74b7
1 @node getc
2 @section @code{getc}
3 @findex getc
5 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/getc.html}
7 Gnulib module: stdio, nonblocking
9 Portability problems fixed by Gnulib module @code{stdio}, together with module @code{nonblocking}:
10 @itemize
11 @item
12 When reading from a non-blocking pipe whose buffer is empty, this function
13 fails with @code{errno} being set to @code{EINVAL} instead of @code{EAGAIN} on
14 some platforms:
15 mingw, MSVC 9.
16 @end itemize
18 Portability problems not fixed by Gnulib:
19 @itemize
20 @item
21 On Windows platforms (excluding Cygwin), this function does not set @code{errno}
22 upon failure.
23 @end itemize