write ¶POSIX specification:
https://pubs.opengroup.org/onlinepubs/9799919799/functions/write.html
Gnulib module: write, nonblocking, sigpipe
Portability problems fixed by Gnulib module write:
<io.h>)
on some platforms:
mingw, MSVC 14.
Portability problems fixed by Gnulib module stdio-h, together with module nonblocking:
errno being set to ENOSPC instead of EAGAIN on some
platforms:
mingw, MSVC 14.
Portability problems fixed by Gnulib module stdio-h, together with module sigpipe:
EINVAL, instead of obeying the current SIGPIPE handler, on
some platforms:
mingw, MSVC 14.
Portability problems not fixed by Gnulib:
EINTR, even in programs that don’t
install any signal handlers, on some platforms:
macOS 14.
For handling EINTR, Gnulib provides a module ‘safe-write’ with a
function safe_write.