24 int f =
fcntl(fd, F_GETFL);
29 #define io_nonblock_mode(fd) ((void)(fd), 0) 49 #define rb_io_nonblock_p rb_f_notimplement 54 io_nonblock_set(
int fd,
int f,
int nb)
91 io_nonblock_restore(
VALUE arg)
93 int *restore = (
int *)arg;
123 restore[0] = fptr->
fd;
125 if (!io_nonblock_set(fptr->
fd, f, nb))
130 #define rb_io_nonblock_set rb_f_notimplement 131 #define rb_io_nonblock_block rb_f_notimplement void rb_io_set_nonblock(rb_io_t *fptr)
#define io_nonblock_mode(fd)
VALUE rb_ensure(VALUE(*b_proc)(ANYARGS), VALUE data1, VALUE(*e_proc)(ANYARGS), VALUE data2)
An equivalent to ensure clause.
#define GetOpenFile(obj, fp)
void rb_sys_fail(const char *mesg)
int rb_scan_args(int argc, const VALUE *argv, const char *fmt,...)
#define rb_io_nonblock_block
void rb_define_method(VALUE klass, const char *name, VALUE(*func)(ANYARGS), int argc)
#define rb_io_nonblock_set