summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-08 10:06:16 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-08 10:06:16 +0000
commit470a309c4ad8e6f803c06e75711c0085ac0cd8db (patch)
tree92da0008810b37afc3375206f92077b57635bac8 /io.c
parentcd9f5a1eeeeb423523940d652a4a8957be984b4a (diff)
rdoc update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/io.c b/io.c
index 5bb1bda801..361a488bc1 100644
--- a/io.c
+++ b/io.c
@@ -1760,10 +1760,10 @@ io_getpartial(int argc, VALUE *argv, VALUE io, int nonblock)
* Note that readpartial behaves similar to sysread.
* The differences are:
* * If the buffer is not empty, read from the buffer instead of "sysread for buffered IO (IOError)".
- * * It doesn't cause Errno::EAGAIN and Errno::EINTR. When readpartial meets EAGAIN and EINTR by read system call, readpartial retry the system call.
+ * * It doesn't cause Errno::EWOULDBLOCK and Errno::EINTR. When readpartial meets EWOULDBLOCK and EINTR by read system call, readpartial retry the system call.
*
* The later means that readpartial is nonblocking-flag insensitive.
- * It blocks on the situation IO#sysread causes Errno::EAGAIN as if the fd is blocking mode.
+ * It blocks on the situation IO#sysread causes Errno::EWOULDBLOCK as if the fd is blocking mode.
*
*/
@@ -1792,7 +1792,7 @@ io_readpartial(int argc, VALUE *argv, VALUE io)
* it must reference a String, which will receive the data.
*
* read_nonblock just calls read(2).
- * It causes all errors read(2) causes: EAGAIN, EINTR, etc.
+ * It causes all errors read(2) causes: Errno::EWOULDBLOCK, Errno::EINTR, etc.
* The caller should care such errors.
*
* read_nonblock causes EOFError on EOF.
@@ -1826,7 +1826,7 @@ io_read_nonblock(int argc, VALUE *argv, VALUE io)
* It returns the number of bytes written.
*
* write_nonblock just calls write(2).
- * It causes all errors write(2) causes: EAGAIN, EINTR, etc.
+ * It causes all errors write(2) causes: Errno::EWOULDBLOCK, Errno::EINTR, etc.
* The result may also be smaller than string.length (partial write).
* The caller should care such errors and partial write.
*