diff options
author | Samuel Williams <[email protected]> | 2021-05-09 00:13:47 +1200 |
---|---|---|
committer | Samuel Williams <[email protected]> | 2021-06-22 22:17:53 +1200 |
commit | 3deb5d7113e1fd6e4b468e09464d524d390d811e (patch) | |
tree | 0c54b41e0d773435622b8a0e87f1a9612aeaf701 /include/ruby | |
parent | ff609eee98dc5c20f68b7befac147537e640aad1 (diff) |
Direct io for accept, send, sendmsg, recvfrom, and related methods.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4477
Diffstat (limited to 'include/ruby')
-rw-r--r-- | include/ruby/io.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ruby/io.h b/include/ruby/io.h index a3de95f281..bf916a5f8e 100644 --- a/include/ruby/io.h +++ b/include/ruby/io.h @@ -159,6 +159,9 @@ 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); +VALUE rb_io_maybe_wait(int error, VALUE io, VALUE events, VALUE timeout); +int rb_io_maybe_wait_readable(int error, VALUE io, VALUE timeout); +int rb_io_maybe_wait_writable(int error, VALUE io, VALUE timeout); /* compatibility for ruby 1.8 and older */ #define rb_io_mode_flags(modestr) [<"rb_io_mode_flags() is obsolete; use rb_io_modestr_fmode()">] |