From: Bruno Haible Date: Thu, 31 Mar 2011 16:07:13 +0000 (+0200) Subject: nonblocking: Tweak comment. X-Git-Tag: v0.1~3009 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=b992f808afff3fe119605430e52986c8a72a858b;p=gnulib.git nonblocking: Tweak comment. --- diff --git a/lib/nonblocking.h b/lib/nonblocking.h index f5835dedd..48a2da885 100644 --- a/lib/nonblocking.h +++ b/lib/nonblocking.h @@ -26,8 +26,9 @@ - A write() call returns -1 with errno set to EAGAIN when it cannot transport the requested amount of data (but at most one pipe buffer) without blocking. - Non-blocking I/O is most useful for character devices. Whether it - also works on regular files and block devices is platform dependent. + Non-blocking I/O is most useful for character devices, pipes, and sockets. + Whether it also works on regular files and block devices is platform + dependent. There are three modern alternatives to non-blocking I/O: - use select() or poll() followed by read() or write() if the descriptor