diff options
| author | Tomoyuki Sahara <[email protected]> | 2016-09-30 17:10:55 +0900 |
|---|---|---|
| committer | Tomoyuki Sahara <[email protected]> | 2016-09-30 17:10:55 +0900 |
| commit | f6a82772e6f857856edb37fcb43a892b6022780f (patch) | |
| tree | 9f23096da2f02c8b3c0538a35ca4951da2de7412 /include | |
| parent | 2229a2aa0fcd76bd5498417aca934d6ec7a211ef (diff) | |
| download | mruby-f6a82772e6f857856edb37fcb43a892b6022780f.tar.gz mruby-f6a82772e6f857856edb37fcb43a892b6022780f.zip | |
eof? should raise an IOError if it is not opened for reading.
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby/ext/io.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/mruby/ext/io.h b/include/mruby/ext/io.h index 3107f1053..8f412fc02 100644 --- a/include/mruby/ext/io.h +++ b/include/mruby/ext/io.h @@ -13,7 +13,8 @@ struct mrb_io { int fd; /* file descriptor, or -1 */ int fd2; /* file descriptor to write if it's different from fd, or -1 */ int pid; /* child's pid (for pipes) */ - unsigned int writable:1, + unsigned int readable:1, + writable:1, sync:1; }; |
