|
Ruby
2.7.2p137(2020-10-01revision5445e0435260b449decf2ac16f9d09bae3cafe72)
|
Go to the documentation of this file.
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
#define rb_io_nonblock_set
void rb_define_method(VALUE klass, const char *name, VALUE(*func)(ANYARGS), int argc)
void rb_sys_fail(const char *mesg)
#define rb_io_nonblock_block
int rb_scan_args(int argc, const VALUE *argv, const char *fmt,...)
#define io_nonblock_mode(fd)
void rb_io_set_nonblock(rb_io_t *fptr)
#define GetOpenFile(obj, fp)
VALUE rb_ensure(VALUE(*b_proc)(VALUE), VALUE data1, VALUE(*e_proc)(VALUE), VALUE data2)
An equivalent to ensure clause.