18#if defined(HAVE_STDIO_EXT_H)
25# define reqevents events
26# define rtnevents revents
35# define RB_WAITFD_IN POLLIN
36# define RB_WAITFD_PRI POLLPRI
37# define RB_WAITFD_OUT POLLOUT
39# define RB_WAITFD_IN 0x001
40# define RB_WAITFD_PRI 0x002
41# define RB_WAITFD_OUT 0x004
103#define HAVE_RB_IO_T 1
105#define FMODE_READABLE 0x00000001
106#define FMODE_WRITABLE 0x00000002
107#define FMODE_READWRITE (FMODE_READABLE|FMODE_WRITABLE)
108#define FMODE_BINMODE 0x00000004
109#define FMODE_SYNC 0x00000008
110#define FMODE_TTY 0x00000010
111#define FMODE_DUPLEX 0x00000020
112#define FMODE_APPEND 0x00000040
113#define FMODE_CREATE 0x00000080
115#define FMODE_EXCL 0x00000400
116#define FMODE_TRUNC 0x00000800
117#define FMODE_TEXTMODE 0x00001000
119#define FMODE_SETENC_BY_BOM 0x00100000
124#define RB_IO_POINTER(obj,fp) rb_io_check_closed((fp) = RFILE(rb_io_taint_check(obj))->fptr)
125#define GetOpenFile RB_IO_POINTER
127#define RB_IO_OPEN(obj, fp) do {\
128 (fp) = rb_io_make_open_file(obj);\
130#define MakeOpenFile RB_IO_OPEN
164#define rb_io_mode_flags(modestr) [<"rb_io_mode_flags() is obsolete; use rb_io_modestr_fmode()">]
165#define rb_io_modenum_flags(oflags) [<"rb_io_modenum_flags() is obsolete; use rb_io_oflags_fmode()">]
#define PACKED_STRUCT_UNALIGNED(x)
Tewaking visibility of C variables/functions.
#define RBIMPL_SYMBOL_EXPORT_END()
Counterpart of RBIMPL_SYMBOL_EXPORT_BEGIN.
#define RBIMPL_SYMBOL_EXPORT_BEGIN()
Shortcut macro equivalent to RUBY_SYMBOL_EXPORT_BEGIN extern "C" {.
Thin wrapper to ruby/config.h.
int rb_io_modestr_fmode(const char *modestr)
VALUE rb_io_get_io(VALUE io)
int rb_io_modestr_oflags(const char *modestr)
void rb_io_check_byte_readable(rb_io_t *fptr)
rb_io_t * rb_io_make_open_file(VALUE obj)
int rb_io_extract_encoding_option(VALUE opt, rb_encoding **enc_p, rb_encoding **enc2_p, int *fmode_p)
int rb_io_oflags_fmode(int oflags)
int rb_wait_for_single_fd(int fd, int events, struct timeval *tv)
struct rb_io_enc_t rb_io_enc_t
VALUE rb_io_taint_check(VALUE)
void rb_io_check_closed(rb_io_t *)
void rb_io_check_writable(rb_io_t *)
FILE * rb_io_stdio_file(rb_io_t *fptr)
FILE * rb_fdopen(int, const char *)
void rb_io_check_readable(rb_io_t *)
int rb_io_read_pending(rb_io_t *)
VALUE rb_io_check_io(VALUE io)
ssize_t rb_io_bufwrite(VALUE io, const void *buf, size_t size)
void rb_io_read_check(rb_io_t *)
void rb_io_check_char_readable(rb_io_t *fptr)
struct rb_io_buffer_t rb_io_buffer_t
VALUE rb_io_get_write_io(VALUE io)
void rb_io_set_nonblock(rb_io_t *fptr)
int rb_io_wait_writable(int fd)
VALUE rb_io_set_write_io(VALUE io, VALUE w)
VALUE rb_stat_new(const struct stat *)
void rb_io_synchronized(rb_io_t *)
void rb_io_check_initialized(rb_io_t *)
int rb_io_wait_readable(int fd)
VALUE rb_io_wait(VALUE io, VALUE events, VALUE timeout)
#define rb_io_fptr_finalize(...)
typedef int(ZCALLBACK *close_file_func) OF((voidpf opaque
#define rb_io_extract_modeenc
struct rb_io_t::rb_io_enc_t encs
VALUE writeconv_asciicompat
int writeconv_initialized
int writeconv_pre_ecflags
VALUE writeconv_pre_ecopts
VALUE tied_io_for_writing
void(* finalize)(struct rb_io_t *, int)