34 for (i = 0; i < max; i++) {
45 fd_set rfds, wfds, efds;
50 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 old_thread_select(VALUE klass, VALUE r, VALUE w, VALUE e, VALUE timeout)
VALUE rb_ary_push(VALUE ary, VALUE item)
static void fdset2array(VALUE dst, fd_set *fds, int max)
static VALUE INT2NUM(int v)
VALUE rb_ary_clear(VALUE ary)
#define RARRAY_LEN(ARRAY)
int rb_thread_select(int max, fd_set *read, fd_set *write, fd_set *except, struct timeval *timeout)
static fd_set * array2fdset(fd_set *fds, VALUE ary, int *max)
void rb_sys_fail(const char *mesg)
void Init_old_thread_select(void)
struct timeval rb_time_timeval(VALUE)