read
POSIX specification:
http://www.opengroup.org/onlinepubs/9699919799/functions/read.html
Gnulib module: stdio, nonblocking
Portability problems fixed by Gnulib module stdio, together with module nonblocking:
errno being set to EINVAL instead of EAGAIN on
some platforms:
mingw, MSVC 9.
Portability problems not fixed by Gnulib:
EINTR, even in programs that don't
install any signal handlers, on some platforms:
Mac OS X 10.5.
For handling EINTR, Gnulib provides a module ‘safe-read’ with a
function safe_read.