summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-20 13:40:15 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-20 13:40:15 +0000
commit57e50f7f885fe6ef51c84a0f341baaea00590218 (patch)
tree9f3bb76bfc3d7f315285d987f7a7c1c8676d40fc /io.c
parenta3bd9a86e8ae56c021e6dd334fa640b53935725c (diff)
* io.c: rdoc. see [ruby-dev:40506].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/io.c b/io.c
index c9ac80c816..f72e51f23e 100644
--- a/io.c
+++ b/io.c
@@ -2026,6 +2026,10 @@ io_read_nonblock(int argc, VALUE *argv, VALUE io)
* Note that this doesn't guarantee to write all data in string.
* The length written is reported as result and it should be checked later.
*
+ * On some platforms such as Windows, write_nonblock is not supported
+ * according to the kind of the IO object.
+ * In such cases, write_nonblock raises <code>Errno::EBADF</code>.
+ *
*/
static VALUE
@@ -6314,6 +6318,8 @@ rb_io_stdio_file(rb_io_t *fptr)
* <code>intern</code> is the internal encoding.
* <code>fmode</code> must be combination of the directives. See
* the description of class +IO+ for a description of the directives.
+ * Changing reading/writing mode from the original io object is not
+ * supported on some platforms, e.g. Windows.
*
* ==== Options
* <code>opt</code> can have the following keys