Ruby
2.7.1p83(2020-03-31revisiona0c7c23c9cec0d0ffcba012279cd652d28ad5bf3)
|
Go to the documentation of this file.
16 #include <sys/types.h>
17 #if defined(HAVE_UNISTD_H) && (defined(__sun))
20 #if defined(HAVE_SYS_IOCTL_H)
21 #include <sys/ioctl.h>
23 #if defined(FIONREAD_HEADER)
24 #include FIONREAD_HEADER
27 #ifdef HAVE_RB_W32_IOCTLSOCKET
28 #define ioctl ioctlsocket
29 #define ioctl_arg u_long
30 #define ioctl_arg2num(i) ULONG2NUM(i)
33 #define ioctl_arg2num(i) INT2NUM(i)
36 #ifdef HAVE_RB_W32_IS_SOCKET
37 #define FIONREAD_POSSIBLE_P(fd) rb_w32_is_socket(fd)
39 #define FIONREAD_POSSIBLE_P(fd) ((void)(fd),Qtrue)
136 tv = get_timeout(
argc,
argv, &timerec);
161 tv = get_timeout(
argc,
argv, &timerec);
169 wait_mode_sym(
VALUE mode)
225 event |= wait_mode_sym(
argv[
i]);
236 if (wait_for_single_fd(fptr, event, tv))
void rb_io_check_closed(rb_io_t *)
void rb_define_method(VALUE klass, const char *name, VALUE(*func)(ANYARGS), int argc)
void rb_raise(VALUE exc, const char *fmt,...)
#define FIONREAD_POSSIBLE_P(fd)
void rb_sys_fail(const char *mesg)
struct timeval rb_time_interval(VALUE num)
void rb_io_check_readable(rb_io_t *)
void rb_io_check_writable(rb_io_t *)
int rb_wait_for_single_fd(int fd, int events, struct timeval *tv)
#define GetOpenFile(obj, fp)
int rb_io_read_pending(rb_io_t *)