summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-07 12:04:31 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-07 12:04:31 +0000
commitdc20aac2ce20360ddb605a127e3ab583fa6c1540 (patch)
tree0e6e0ed6d2837e3372b2efbe91c9ac36131c2be2
parent2af799dba862fd939b7ec2c1f82e1f7ebc5130df (diff)
add not about IO#pos and IO#readpartial.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@22110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--io.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/io.c b/io.c
index ae683ce980..b789e9f78d 100644
--- a/io.c
+++ b/io.c
@@ -1351,6 +1351,9 @@ io_getpartial(int argc, VALUE *argv, VALUE io, int nonblock)
* 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.
*
+ * Since readpartial bypass internal stdio buffering mechanism,
+ * IO#pos may return wrong value after readpartial.
+ * This problem is fixed by Ruby 1.9 which doesn't use stdio.
*/
static VALUE