summaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-09-19 18:42:32 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-09-19 18:42:32 +0000
commit9c049381fd55ff6e4ebec3728cd49c6163b8a12d (patch)
treead060314a7414b7b0de5864626e40e50db79b35d /io.c
parentd0b5988d998b84fa3cefc117214f7b7e5d7d950d (diff)
downloadruby-9c049381fd55ff6e4ebec3728cd49c6163b8a12d.tar.gz
ruby-9c049381fd55ff6e4ebec3728cd49c6163b8a12d.tar.xz
ruby-9c049381fd55ff6e4ebec3728cd49c6163b8a12d.zip
* ext/zlib/zlib.c (gzfile_read_raw): call readpartial at first.
(Zlib::GzipReader#readpartial): new method. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/io.c b/io.c
index 2c71a6d92..ccd019f4f 100644
--- a/io.c
+++ b/io.c
@@ -1044,15 +1044,15 @@ read_all(fptr, siz, str)
/*
* call-seq:
- * ios.readpartial(integer[, outbuf]) => string, outbuf
+ * ios.readpartial(maxlen[, outbuf]) => string, outbuf
*
- * Reads at most <i>integer</i> bytes from the I/O stream but
+ * Reads at most <i>maxlen</i> bytes from the I/O stream but
* it blocks only if <em>ios</em> has no data immediately available.
* If the optional <i>outbuf</i> argument is present,
* it must reference a String, which will receive the data.
* It raises <code>EOFError</code> on end of file.
*
- * readpartial is designed for streams such as pipe, socket, etc.
+ * readpartial is designed for streams such as pipe, socket, tty, etc.
* It blocks only when no data immediately available.
* This means that it blocks only when following all conditions hold.
* * the stdio buffer in the IO object is empty.