11 if (!
NIL_P(timeout)) {
void rb_define_singleton_method(VALUE obj, const char *name, VALUE(*func)(ANYARGS), int argc)
Defines a singleton method for obj.
static VALUE wait_for_single_fd(VALUE ign, VALUE fd, VALUE events, VALUE timeout)
static VALUE INT2NUM(int v)
RUBY_EXTERN VALUE rb_cObject
void rb_define_const(VALUE, const char *, VALUE)
int rb_wait_for_single_fd(int fd, int events, struct timeval *tv)
void rb_sys_fail(const char *mesg)
void Init_wait_for_single_fd(void)
struct timeval rb_time_timeval(VALUE)