summaryrefslogtreecommitdiff
path: root/lib/nonblocking.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-03-31 18:07:13 +0200
committerBruno Haible <bruno@clisp.org>2011-03-31 18:07:13 +0200
commitb992f808afff3fe119605430e52986c8a72a858b (patch)
tree0513c08125680c243dd6182e4c206a728e7b7450 /lib/nonblocking.h
parent111a4bf8dd3d9646133305c19964d8080e0b7085 (diff)
downloadgnulib-b992f808afff3fe119605430e52986c8a72a858b.tar.gz
nonblocking: Tweak comment.
Diffstat (limited to 'lib/nonblocking.h')
-rw-r--r--lib/nonblocking.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/nonblocking.h b/lib/nonblocking.h
index f5835deddb..48a2da885a 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