mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Merge 312000d464
into d025bc230c
This commit is contained in:
commit
1f9411c5de
2 changed files with 5 additions and 5 deletions
|
@ -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
4
io.c
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue