This commit is contained in:
Samuel Williams 2025-08-15 05:07:19 +02:00 committed by GitHub
commit 1f9411c5de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View file

@ -909,7 +909,7 @@ void rb_io_extract_modeenc(VALUE *vmode_p, VALUE *vperm_p, VALUE opthash, int *o
*/
ssize_t rb_io_bufwrite(VALUE io, const void *buf, size_t size);
//RBIMPL_ATTR_DEPRECATED(("use rb_io_maybe_wait_readable"))
RBIMPL_ATTR_DEPRECATED(("use rb_io_maybe_wait_readable"))
/**
* Blocks until the passed file descriptor gets readable.
*
@ -921,7 +921,7 @@ ssize_t rb_io_bufwrite(VALUE io, const void *buf, size_t size);
*/
int rb_io_wait_readable(int fd);
//RBIMPL_ATTR_DEPRECATED(("use rb_io_maybe_wait_writable"))
RBIMPL_ATTR_DEPRECATED(("use rb_io_maybe_wait_writable"))
/**
* Blocks until the passed file descriptor gets writable.
*
@ -932,7 +932,7 @@ int rb_io_wait_readable(int fd);
*/
int rb_io_wait_writable(int fd);
//RBIMPL_ATTR_DEPRECATED(("use rb_io_wait"))
RBIMPL_ATTR_DEPRECATED(("use rb_io_wait"))
/**
* Blocks until the passed file descriptor is ready for the passed events.
*

4
io.c
View file

@ -1597,13 +1597,13 @@ rb_wait_for_single_fd(int fd, int events, struct timeval *timeout)
int
rb_thread_wait_fd(int fd)
{
return rb_wait_for_single_fd(fd, RUBY_IO_READABLE, NULL);
return io_wait_for_single_fd(fd, RUBY_IO_READABLE, NULL);
}
int
rb_thread_fd_writable(int fd)
{
return rb_wait_for_single_fd(fd, RUBY_IO_WRITABLE, NULL);
return io_wait_for_single_fd(fd, RUBY_IO_WRITABLE, NULL);
}
VALUE