summaryrefslogtreecommitdiff
path: root/include/ruby/io.h
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2020-09-14 12:17:11 +1200
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2020-09-14 16:44:09 +1200
commit7fca27419846f76f978f3bbef2d2db3e1bf688e7 (patch)
tree51bed41b7a54b1bdd40a236c88e4815be4bd3634 /include/ruby/io.h
parent8eea66a0ca8965ae8319b4c404f61c4d46866f64 (diff)
Rework console to use `rb_io_wait`.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3434
Diffstat (limited to 'include/ruby/io.h')
-rw-r--r--include/ruby/io.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ruby/io.h b/include/ruby/io.h
index 19b2036a86..a3de95f281 100644
--- a/include/ruby/io.h
+++ b/include/ruby/io.h
@@ -154,8 +154,8 @@ int rb_io_extract_encoding_option(VALUE opt, rb_encoding **enc_p, rb_encoding **
void rb_io_extract_modeenc(VALUE *vmode_p, VALUE *vperm_p, VALUE opthash, int *oflags_p, int *fmode_p, rb_io_enc_t *convconfig_p);
ssize_t rb_io_bufwrite(VALUE io, const void *buf, size_t size);
-int rb_io_wait_readable(int);
-int rb_io_wait_writable(int);
+int rb_io_wait_readable(int fd);
+int rb_io_wait_writable(int fd);
int rb_wait_for_single_fd(int fd, int events, struct timeval *tv);
VALUE rb_io_wait(VALUE io, VALUE events, VALUE timeout);