Ruby
2.4.2p198(2017-09-14revision59899)
|
Go to the source code of this file.
Macros | |
#define | ioctl_arg int |
#define | ioctl_arg2num(i) INT2NUM(i) |
#define | FIONREAD_POSSIBLE_P(fd) ((void)(fd),Qtrue) |
Functions | |
static VALUE io_ready_p | _ ((VALUE io)) |
static VALUE io_wait_readable | _ ((int argc, VALUE *argv, VALUE io)) |
void Init_wait | _ ((void)) |
static struct timeval * | get_timeout (int argc, VALUE *argv, struct timeval *timerec) |
static int | wait_for_single_fd (rb_io_t *fptr, int events, struct timeval *tv) |
static VALUE | io_nread (VALUE io) |
static VALUE | io_ready_p (VALUE io) |
static VALUE | io_wait_readable (int argc, VALUE *argv, VALUE io) |
static VALUE | io_wait_writable (int argc, VALUE *argv, VALUE io) |
static int | wait_mode_sym (VALUE mode) |
static VALUE | io_wait_readwrite (int argc, VALUE *argv, VALUE io) |
void | Init_wait (void) |
#define FIONREAD_POSSIBLE_P | ( | fd | ) | ((void)(fd),Qtrue) |
Definition at line 39 of file wait.c.
Referenced by io_nread().
#define ioctl_arg int |
Definition at line 32 of file wait.c.
Referenced by io_nread().
#define ioctl_arg2num | ( | i | ) | INT2NUM(i) |
Definition at line 33 of file wait.c.
Referenced by io_nread().
|
static |
void Init_wait _ | ( | (void) | ) |
Definition at line 48 of file wait.c.
References NIL_P, NULL, Qnil, rb_check_arity, and rb_time_interval().
Referenced by io_wait_readable(), and io_wait_writable().
void Init_wait | ( | void | ) |
Definition at line 247 of file wait.c.
References io_nread(), io_ready_p(), io_wait_readable(), io_wait_readwrite(), io_wait_writable(), rb_cIO, and rb_define_method().
Definition at line 80 of file wait.c.
References rb_io_t::fd, FIONREAD_POSSIBLE_P, GetOpenFile, INT2FIX, ioctl(), ioctl_arg, ioctl_arg2num, len, rb_io_check_readable(), and rb_io_read_pending().
Referenced by Init_wait().
Definition at line 105 of file wait.c.
References GetOpenFile, Qfalse, Qtrue, rb_io_check_readable(), rb_io_read_pending(), RB_WAITFD_IN, and wait_for_single_fd().
Referenced by Init_wait().
Definition at line 129 of file wait.c.
References get_timeout(), GetOpenFile, Qnil, Qtrue, rb_io_check_readable(), rb_io_read_pending(), RB_WAITFD_IN, and wait_for_single_fd().
Referenced by Init_wait().
Definition at line 215 of file wait.c.
References argc, GetOpenFile, NULL, Qnil, Qtrue, rb_io_check_closed(), rb_io_read_pending(), rb_time_interval(), RB_WAITFD_IN, SYMBOL_P, wait_for_single_fd(), and wait_mode_sym().
Referenced by Init_wait().
Definition at line 154 of file wait.c.
References get_timeout(), GetOpenFile, Qnil, rb_io_check_writable(), RB_WAITFD_OUT, and wait_for_single_fd().
Referenced by Init_wait().
Definition at line 62 of file wait.c.
References rb_io_t::fd, rb_io_check_closed(), rb_sys_fail(), and rb_wait_for_single_fd().
Referenced by io_ready_p(), io_wait_readable(), io_wait_readwrite(), and io_wait_writable().
|
static |
Definition at line 170 of file wait.c.
References ID2SYM, PRIsVALUE, rb_eArgError, rb_intern, rb_raise(), RB_WAITFD_IN, and RB_WAITFD_OUT.
Referenced by io_wait_readwrite().