1@node putc
2@section @code{putc}
3@findex putc
4
5POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/putc.html}
6
7Gnulib module: stdio, nonblocking, sigpipe
8
9Portability problems fixed by Gnulib module @code{stdio}, together with module @code{nonblocking}:
10@itemize
11@item
12When writing to a non-blocking pipe whose buffer is full, this function fails
13with @code{errno} being set to @code{ENOSPC} instead of @code{EAGAIN} on some
14platforms:
15mingw, MSVC 9.
16@end itemize
17
18Portability problems fixed by Gnulib module @code{stdio}, together with module @code{sigpipe}:
19@itemize
20@item
21When writing to a pipe with no readers, this function fails, instead of
22obeying the current @code{SIGPIPE} handler, on some platforms:
23mingw, MSVC 9.
24@end itemize
25
26Portability problems not fixed by Gnulib:
27@itemize
28@item
29On Windows platforms (excluding Cygwin), this function does not set @code{errno}
30upon failure.
31@item
32On some platforms, this function does not set @code{errno} or the
33stream error indicator on attempts to write to a read-only stream:
34Cygwin 1.7.9.
35@end itemize
36