diff options
author | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2021-06-19 13:47:16 +1200 |
---|---|---|
committer | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2021-06-22 22:48:57 +1200 |
commit | 45e65f302b663b2c6ab69df06d3b6f219c1797b2 (patch) | |
tree | adf0ed3b3b9c92626f2c21a320ecdf66998b4c27 /include/ruby/io.h | |
parent | 3deb5d7113e1fd6e4b468e09464d524d390d811e (diff) | |
download | ruby-45e65f302b663b2c6ab69df06d3b6f219c1797b2.tar.gz |
Deprecate and rework old (fd) centric functions.
Diffstat (limited to 'include/ruby/io.h')
-rw-r--r-- | include/ruby/io.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/ruby/io.h b/include/ruby/io.h index bf916a5f8e..9a6b65cb2c 100644 --- a/include/ruby/io.h +++ b/include/ruby/io.h @@ -154,8 +154,13 @@ 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); +RBIMPL_ATTR_DEPRECATED(("use rb_io_maybe_wait_readable")) int rb_io_wait_readable(int fd); + +RBIMPL_ATTR_DEPRECATED(("use rb_io_maybe_wait_writable")) int rb_io_wait_writable(int fd); + +RBIMPL_ATTR_DEPRECATED(("use rb_io_wait")) int rb_wait_for_single_fd(int fd, int events, struct timeval *tv); VALUE rb_io_wait(VALUE io, VALUE events, VALUE timeout); |