5 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/write.html}
7 Gnulib module: write, nonblocking, sigpipe
9 Portability problems fixed by Gnulib module @code{stdio}, together with module @code{nonblocking}:
12 This function crashes when invoked with invalid arguments on some platforms:
15 When writing to a non-blocking pipe whose buffer is full, this function fails
16 with @code{errno} being set to @code{ENOSPC} instead of @code{EAGAIN} on some
20 When writing to a non-blocking pipe on which no reader is currently waiting
21 an amount of bytes that exceeds the pipe buffer's size, then---even if the
22 pipe's buffer is empty---this function fails, instead of performing a partial
23 write into the pipe buffer, on some platforms:
27 Portability problems fixed by Gnulib module @code{stdio}, together with module @code{sigpipe}:
30 When writing to a pipe with no readers, this function fails with error
31 @code{EINVAL}, instead of obeying the current @code{SIGPIPE} handler, on
36 Portability problems not fixed by Gnulib:
39 This function may fail with error @code{EINTR}, even in programs that don't
40 install any signal handlers, on some platforms:
44 For handling @code{EINTR}, Gnulib provides a module @samp{safe-write} with a
45 function @code{safe_write}.