5 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/write.html}
7 Gnulib module: write, nonblocking, sigpipe
9 Portability problems fixed by Gnulib module @code{write}:
12 This function is declared in a different header file (namely, @code{<io.h>})
16 This function crashes when invoked with invalid arguments on some platforms:
20 Portability problems fixed by Gnulib module @code{stdio}, together with module @code{nonblocking}:
23 When writing to a non-blocking pipe whose buffer is full, this function fails
24 with @code{errno} being set to @code{ENOSPC} instead of @code{EAGAIN} on some
28 When writing to a non-blocking pipe on which no reader is currently waiting
29 an amount of bytes that exceeds the pipe buffer's size, then---even if the
30 pipe's buffer is empty---this function fails, instead of performing a partial
31 write into the pipe buffer, on some platforms:
35 Portability problems fixed by Gnulib module @code{stdio}, together with module @code{sigpipe}:
38 When writing to a pipe with no readers, this function fails with error
39 @code{EINVAL}, instead of obeying the current @code{SIGPIPE} handler, on
44 Portability problems not fixed by Gnulib:
47 This function may fail with error @code{EINTR}, even in programs that don't
48 install any signal handlers, on some platforms:
52 For handling @code{EINTR}, Gnulib provides a module @samp{safe-write} with a
53 function @code{safe_write}.