Ruby
2.7.2p137(2020-10-01revision5445e0435260b449decf2ac16f9d09bae3cafe72)
|
Go to the source code of this file.
Data Structures | |
struct | rb_io_t |
struct | rb_io_t::rb_io_enc_t |
Macros | |
#define | RB_WAITFD_IN 0x001 |
#define | RB_WAITFD_PRI 0x002 |
#define | RB_WAITFD_OUT 0x004 |
#define | HAVE_RB_IO_T 1 |
#define | FMODE_READABLE 0x00000001 |
#define | FMODE_WRITABLE 0x00000002 |
#define | FMODE_READWRITE (FMODE_READABLE|FMODE_WRITABLE) |
#define | FMODE_BINMODE 0x00000004 |
#define | FMODE_SYNC 0x00000008 |
#define | FMODE_TTY 0x00000010 |
#define | FMODE_DUPLEX 0x00000020 |
#define | FMODE_APPEND 0x00000040 |
#define | FMODE_CREATE 0x00000080 |
#define | FMODE_EXCL 0x00000400 |
#define | FMODE_TRUNC 0x00000800 |
#define | FMODE_TEXTMODE 0x00001000 |
#define | FMODE_SETENC_BY_BOM 0x00100000 |
#define | GetOpenFile(obj, fp) rb_io_check_closed((fp) = RFILE(rb_io_taint_check(obj))->fptr) |
#define | MakeOpenFile(obj, fp) |
#define | rb_io_mode_flags(modestr) [<"rb_io_mode_flags() is obsolete; use rb_io_modestr_fmode()">] |
#define | rb_io_modenum_flags(oflags) [<"rb_io_modenum_flags() is obsolete; use rb_io_oflags_fmode()">] |
Typedefs | |
typedef struct rb_io_buffer_t | rb_io_buffer_t |
typedef struct rb_io_t | rb_io_t |
typedef struct rb_io_enc_t | rb_io_enc_t |
#define FMODE_READWRITE (FMODE_READABLE|FMODE_WRITABLE) |
#define GetOpenFile | ( | obj, | |
fp | |||
) | rb_io_check_closed((fp) = RFILE(rb_io_taint_check(obj))->fptr) |
#define MakeOpenFile | ( | obj, | |
fp | |||
) |
#define rb_io_mode_flags | ( | modestr | ) | [<"rb_io_mode_flags() is obsolete; use rb_io_modestr_fmode()">] |
#define rb_io_modenum_flags | ( | oflags | ) | [<"rb_io_modenum_flags() is obsolete; use rb_io_oflags_fmode()">] |
typedef struct rb_io_buffer_t rb_io_buffer_t |
typedef struct rb_io_enc_t rb_io_enc_t |
CONSTFUNC | ( | int | rb_io_oflags_fmodeint oflags | ) |
NORETURN | ( | void | rb_eof_errorvoid | ) |
RUBY_SYMBOL_EXPORT_BEGIN PACKED_STRUCT_UNALIGNED | ( | struct rb_io_buffer_t { char *ptr;int off;int len;int capa;} | ) |
Definition at line 1549 of file io.c.
References binwrite_arg::fptr, GetOpenFile, and rb_io_check_writable().
Definition at line 890 of file io.c.
References rb_eIOError, rb_io_check_char_readable(), rb_raise(), and READ_CHAR_PENDING.
Referenced by rb_io_check_readable(), rb_io_getbyte(), and rb_io_ungetbyte().
Definition at line 871 of file io.c.
References FMODE_READABLE, rb_io_t::mode, rb_eIOError, rb_io_check_closed(), rb_raise(), and rb_io_t::wbuf.
Referenced by rb_io_check_byte_readable(), rb_io_eof(), and rb_io_ungetc().
Definition at line 718 of file io.c.
References rb_io_check_initialized().
Referenced by rb_io_check_char_readable(), and rb_io_check_writable().
Definition at line 710 of file io.c.
References rb_eIOError, and rb_raise().
Referenced by rb_io_check_closed(), and rb_io_synchronized().
Definition at line 739 of file io.c.
References idTo_io, rb_check_convert_type_with_id(), and T_FILE.
Definition at line 899 of file io.c.
References rb_io_check_byte_readable().
Definition at line 923 of file io.c.
References FMODE_WRITABLE, rb_io_t::mode, rb_eIOError, rb_io_check_closed(), rb_raise(), and rb_io_t::rbuf.
Referenced by rb_io_bufwrite().
int rb_io_extract_encoding_option | ( | VALUE | opt, |
rb_encoding ** | enc_p, | ||
rb_encoding ** | enc2_p, | ||
int * | fmode_p | ||
) |
Definition at line 4747 of file io.c.
References finish_writeconv_arg::fptr, and rb_io_fptr_finalize_internal().
Definition at line 8080 of file io.c.
References Check_Type, obj, rb_io_close(), rb_io_fptr_finalize, RFILE, and T_FILE.
Definition at line 5465 of file io.c.
References error, fmode, FMODE_APPEND, FMODE_BINMODE, FMODE_CREATE, FMODE_EXCL, FMODE_READABLE, FMODE_READWRITE, FMODE_TEXTMODE, FMODE_TRUNC, FMODE_WRITABLE, NULL, rb_eArgError, rb_raise(), and strchr().
Definition at line 944 of file io.c.
References rb_io_t::fd, rb_thread_wait_fd(), and READ_DATA_PENDING.
Definition at line 935 of file io.c.
References READ_CHAR_PENDING, and READ_DATA_PENDING.
Definition at line 2782 of file io.c.
Referenced by rsock_s_accept_nonblock().
Definition at line 8032 of file io.c.
References rb_io_t::stdio_file.
Definition at line 6356 of file io.c.
References FMODE_SYNC, rb_io_t::mode, and rb_io_check_initialized().
Referenced by rb_io_unbuffered(), and rsock_init_sock().
Definition at line 703 of file io.c.
References rb_check_frozen.
Definition at line 1228 of file io.c.
Referenced by rsock_bsock_send().
Definition at line 4276 of file thread.c.
References select_args::as, select_args::fd, ptr, RB_WAITFD_IN, and select_args::read.