Ruby
2.5.0dev(2017-10-22revision60238)
|
#include "internal.h"
#include "ruby/io.h"
#include "ruby/thread.h"
#include "dln.h"
#include "encindex.h"
#include "id.h"
#include <ctype.h>
#include <errno.h>
#include "ruby_atomic.h"
#include <sys/types.h>
#include <sys/stat.h>
#include "ruby/util.h"
Go to the source code of this file.
Data Structures | |
struct | argf |
struct | io_internal_read_struct |
struct | io_internal_write_struct |
struct | binwrite_arg |
struct | write_arg |
struct | bufread_arg |
struct | read_internal_arg |
struct | getline_arg |
struct | finish_writeconv_arg |
struct | sysopen_struct |
struct | pipe_list |
struct | rb_f_p_arg |
struct | select_args |
struct | io_encoding_set_args |
struct | foreach_arg |
struct | seek_arg |
struct | copy_stream_struct |
struct | argf_call_arg |
Macros | |
#define | free(x) xfree(x) |
#define | off_t long |
#define | NOFILE 64 |
#define | O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) |
#define | PIPE_BUF 512 /* is this ok? */ |
#define | EWOULDBLOCK EAGAIN |
#define | IO_RBUF_CAPA_MIN 8192 |
#define | IO_CBUF_CAPA_MIN (128*1024) |
#define | IO_RBUF_CAPA_FOR(fptr) (NEED_READCONV(fptr) ? IO_CBUF_CAPA_MIN : IO_RBUF_CAPA_MIN) |
#define | IO_WBUF_CAPA_MIN 8192 |
#define | id_exception idException |
#define | argf_of(obj) (*(struct argf *)DATA_PTR(obj)) |
#define | ARGF argf_of(argf) |
#define | GetWriteIO(io) rb_io_get_write_io(io) |
#define | READ_DATA_PENDING(fptr) ((fptr)->rbuf.len) |
#define | READ_DATA_PENDING_COUNT(fptr) ((fptr)->rbuf.len) |
#define | READ_DATA_PENDING_PTR(fptr) ((fptr)->rbuf.ptr+(fptr)->rbuf.off) |
#define | READ_DATA_BUFFERED(fptr) READ_DATA_PENDING(fptr) |
#define | READ_CHAR_PENDING(fptr) ((fptr)->cbuf.len) |
#define | READ_CHAR_PENDING_COUNT(fptr) ((fptr)->cbuf.len) |
#define | READ_CHAR_PENDING_PTR(fptr) ((fptr)->cbuf.ptr+(fptr)->cbuf.off) |
#define | WAIT_FD_IN_WIN32(fptr) |
#define | READ_CHECK(fptr) |
#define | NEED_NEWLINE_DECORATOR_ON_READ(fptr) ((fptr)->mode & FMODE_TEXTMODE) |
#define | NEED_NEWLINE_DECORATOR_ON_WRITE(fptr) ((fptr)->mode & FMODE_TEXTMODE) |
#define | DEFAULT_TEXTMODE 0 |
#define | NEED_READCONV(fptr) ((fptr)->encs.enc2 != NULL || NEED_NEWLINE_DECORATOR_ON_READ(fptr)) |
#define | NEED_WRITECONV(fptr) (((fptr)->encs.enc != NULL && (fptr)->encs.enc != rb_ascii8bit_encoding()) || NEED_NEWLINE_DECORATOR_ON_WRITE(fptr) || ((fptr)->encs.ecflags & (ECONV_DECORATOR_MASK|ECONV_STATEFUL_DECORATOR_MASK))) |
#define | SET_BINARY_MODE(fptr) (void)(fptr) |
#define | NEED_NEWLINE_DECORATOR_ON_READ_CHECK(fptr) (void)(fptr) |
#define | SET_UNIVERSAL_NEWLINE_DECORATOR_IF_ENC2(enc2, ecflags) ((void)(enc2), (void)(ecflags)) |
#define | SET_BINARY_MODE_WITH_SEEK_CUR(fptr) (void)(fptr) |
#define | shutdown(a, b) 0 |
#define | is_socket(fd, path) 0 |
#define | io_seek(fptr, ofs, whence) (errno = 0, lseek(flush_before_seek(fptr)->fd, (ofs), (whence))) |
#define | io_tell(fptr) lseek(flush_before_seek(fptr)->fd, 0, SEEK_CUR) |
#define | SEEK_SET 0 |
#define | SEEK_CUR 1 |
#define | SEEK_END 2 |
#define | S_ISREG(m) (((m) & S_IFMT) == S_IFREG) |
#define | MODE_BTMODE(a, b, c) |
#define | fmode (fptr->mode) |
#define | rb_io_fsync rb_f_notimplement |
#define | rb_io_sync rb_f_notimplement |
#define | rb_io_fdatasync rb_io_fsync |
#define | MORE_CHAR_SUSPENDED Qtrue |
#define | MORE_CHAR_FINISHED Qnil |
#define | MAX_REALLOC_GAP 4096 |
#define | rb_io_close_on_exec_p rb_f_notimplement |
#define | rb_io_set_close_on_exec rb_f_notimplement |
#define | FMODE_PREP (1<<16) |
#define | IS_PREP_STDIO(f) ((f)->mode & FMODE_PREP) |
#define | PREP_STDIO_NAME(f) (RSTRING_PTR((f)->pathv)) |
#define | KEEPGVL FALSE |
#define | SHUT_RD 0 |
#define | SHUT_WR 1 |
#define | rb_io_pread rb_f_notimplement |
#define | rb_io_pwrite rb_f_notimplement |
#define | MODE_BINARY(a, b) (a) |
#define | next_argv() argf_next_argv(argf) |
#define | ARGF_GENERIC_INPUT_P() (ARGF.current_file == rb_stdin && !RB_TYPE_P(ARGF.current_file, T_FILE)) |
#define | ARGF_FORWARD(argc, argv) |
#define | NEXT_ARGF_FORWARD(argc, argv) |
#define | NUM2IOCTLREQ(num) NUM2INT(num) |
#define | DEFULT_IOCTL_NARG_LEN (256) |
#define | rb_io_ioctl rb_f_notimplement |
#define | rb_io_fcntl rb_f_notimplement |
#define | rb_f_syscall rb_f_notimplement |
#define | IOWAIT_SYSCALL "select" |
#define | USE_POLL 0 |
#define | FOREACH_ARGF() while (next_argv()) |
#define | rb_intern(str) rb_intern_const(str) |
Typedefs | |
typedef struct rb_io_enc_t | convconfig_t |
typedef int | ioctl_req_t |
Enumerations | |
enum | { bom_prefix_len = (int)sizeof(bom_prefix) - 1 } |
enum | { utf_prefix_len = (int)sizeof(utf_prefix) - 1 } |
Definition at line 405 of file io.c.
Referenced by rb_get_argv(), ruby_get_inplace_mode(), and ruby_set_inplace_mode().
#define fmode (fptr->mode) |
Referenced by rb_io_oflags_fmode().
#define GetWriteIO | ( | io | ) | rb_io_get_write_io(io) |
#define IO_RBUF_CAPA_FOR | ( | fptr | ) | (NEED_READCONV(fptr) ? IO_CBUF_CAPA_MIN : IO_RBUF_CAPA_MIN) |
#define io_seek | ( | fptr, | |
ofs, | |||
whence | |||
) | (errno = 0, lseek(flush_before_seek(fptr)->fd, (ofs), (whence))) |
#define io_tell | ( | fptr | ) | lseek(flush_before_seek(fptr)->fd, 0, SEEK_CUR) |
#define IS_PREP_STDIO | ( | f | ) | ((f)->mode & FMODE_PREP) |
#define is_socket | ( | fd, | |
path | |||
) | 0 |
Definition at line 605 of file io.c.
Referenced by fcntl(), rb_w32_close(), rb_w32_fclose(), rb_w32_io_cancelable_p(), rb_w32_is_socket(), rb_w32_read(), rb_w32_set_nonblock(), rb_w32_unwrap_io_handle(), rb_w32_write(), rsock_init_sock(), and rsock_raise_socket_error().
#define MODE_BINARY | ( | a, | |
b | |||
) | (a) |
#define MODE_BTMODE | ( | a, | |
b, | |||
c | |||
) |
#define NEED_NEWLINE_DECORATOR_ON_READ | ( | fptr | ) | ((fptr)->mode & FMODE_TEXTMODE) |
Definition at line 449 of file io.c.
Referenced by rb_io_eof().
#define NEED_NEWLINE_DECORATOR_ON_READ_CHECK | ( | fptr | ) | (void)(fptr) |
#define NEED_NEWLINE_DECORATOR_ON_WRITE | ( | fptr | ) | ((fptr)->mode & FMODE_TEXTMODE) |
#define NEED_READCONV | ( | fptr | ) | ((fptr)->encs.enc2 != NULL || NEED_NEWLINE_DECORATOR_ON_READ(fptr)) |
Definition at line 590 of file io.c.
Referenced by rb_io_eof().
#define NEED_WRITECONV | ( | fptr | ) | (((fptr)->encs.enc != NULL && (fptr)->encs.enc != rb_ascii8bit_encoding()) || NEED_NEWLINE_DECORATOR_ON_WRITE(fptr) || ((fptr)->encs.ecflags & (ECONV_DECORATOR_MASK|ECONV_STATEFUL_DECORATOR_MASK))) |
#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) |
Definition at line 99 of file io.c.
Referenced by Init_fcntl(), and rb_io_oflags_fmode().
#define off_t long |
Definition at line 61 of file io.c.
Referenced by Init_sizeof().
#define PREP_STDIO_NAME | ( | f | ) | (RSTRING_PTR((f)->pathv)) |
#define rb_f_syscall rb_f_notimplement |
#define rb_intern | ( | str | ) | rb_intern_const(str) |
#define rb_io_close_on_exec_p rb_f_notimplement |
#define rb_io_fcntl rb_f_notimplement |
#define rb_io_fdatasync rb_io_fsync |
#define rb_io_fsync rb_f_notimplement |
#define rb_io_ioctl rb_f_notimplement |
#define rb_io_pread rb_f_notimplement |
#define rb_io_pwrite rb_f_notimplement |
#define rb_io_set_close_on_exec rb_f_notimplement |
#define rb_io_sync rb_f_notimplement |
#define READ_CHAR_PENDING | ( | fptr | ) | ((fptr)->cbuf.len) |
Definition at line 414 of file io.c.
Referenced by rb_io_check_byte_readable(), rb_io_eof(), and rb_io_read_pending().
#define READ_CHAR_PENDING_PTR | ( | fptr | ) | ((fptr)->cbuf.ptr+(fptr)->cbuf.off) |
#define READ_CHECK | ( | fptr | ) |
Definition at line 425 of file io.c.
Referenced by rb_io_eof(), and rb_io_getbyte().
#define READ_DATA_BUFFERED | ( | fptr | ) | READ_DATA_PENDING(fptr) |
#define READ_DATA_PENDING | ( | fptr | ) | ((fptr)->rbuf.len) |
Definition at line 409 of file io.c.
Referenced by rb_io_eof(), rb_io_read_check(), and rb_io_read_pending().
#define READ_DATA_PENDING_PTR | ( | fptr | ) | ((fptr)->rbuf.ptr+(fptr)->rbuf.off) |
#define SEEK_SET 0 |
Definition at line 790 of file io.c.
Referenced by sdbm_firstkey().
#define SET_BINARY_MODE_WITH_SEEK_CUR | ( | fptr | ) | (void)(fptr) |
Definition at line 595 of file io.c.
Referenced by rb_io_binmode().
#define SET_UNIVERSAL_NEWLINE_DECORATOR_IF_ENC2 | ( | enc2, | |
ecflags | |||
) | ((void)(enc2), (void)(ecflags)) |
#define SHUT_RD 0 |
#define SHUT_WR 1 |
#define shutdown | ( | a, | |
b | |||
) | 0 |
Definition at line 599 of file io.c.
Referenced by ruby_shutdown().
typedef struct rb_io_enc_t convconfig_t |
typedef int ioctl_req_t |
void Init_IO | ( | void | ) |
Definition at line 12652 of file io.c.
References NULL, O_BINARY, rb_define_class(), rb_eEOFError, rb_eIOError, and rb_eStandardError.
int rb_cloexec_dup | ( | int | oldfd | ) |
Definition at line 283 of file io.c.
References rb_cloexec_fcntl_dupfd().
int rb_cloexec_dup2 | ( | int | oldfd, |
int | newfd | ||
) |
int rb_cloexec_fcntl_dupfd | ( | int | fd, |
int | minfd | ||
) |
Definition at line 362 of file io.c.
References errno, F_DUPFD, F_DUPFD_CLOEXEC, fcntl(), and rb_maygvl_fd_fix_cloexec().
Referenced by rb_cloexec_dup().
Definition at line 257 of file io.c.
References O_CLOEXEC, and rb_maygvl_fd_fix_cloexec().
Referenced by rb_file_load_ok(), and rb_pipe().
int rb_cloexec_pipe | ( | int | fildes[2] | ) |
void rb_eof_error | ( | void | ) |
Definition at line 620 of file io.c.
References rb_eEOFError, and rb_raise().
char* rb_execarg_commandline | ( | const struct rb_execarg * | eargp, |
VALUE * | prog | ||
) |
Definition at line 3900 of file process.c.
References argc, ARGVSTR2ARGC, ARGVSTR2ARGV, rb_execarg::cmd, rb_execarg::invoke, rb_str_new(), RSTRING_LEN, RSTRING_PTR, StringValueCStr, and rb_execarg::use_shell.
void rb_fd_fix_cloexec | ( | int | fd | ) |
Definition at line 233 of file io.c.
References rb_maygvl_fd_fix_cloexec(), and rb_update_max_fd().
Definition at line 5716 of file io.c.
References errno, NULL, rb_gc(), rb_gc_for_fd(), rb_syserr_fail(), and rb_warn().
Definition at line 5910 of file io.c.
References FilePathValue.
int rb_gc_for_fd | ( | int | err | ) |
VALUE rb_gets | ( | void | ) |
Definition at line 8504 of file io.c.
References rb_default_rs, and rb_rs.
Definition at line 1532 of file io.c.
References rb_io_t::fd, fsync, binwrite_arg::ptr, rb_io_write(), and rb_w32_get_osfhandle().
Definition at line 5012 of file io.c.
References ECONV_NEWLINE_DECORATOR_MASK, rb_io_t::fd, FMODE_BINMODE, FMODE_TEXTMODE, GetOpenFile, rb_io_t::mode, O_BINARY, rb_econv_binmode(), rb_io_t::readconv, SET_BINARY_MODE_WITH_SEEK_CUR, rb_io_t::writeconv, and rb_io_t::writeconv_pre_ecflags.
ssize_t rb_io_bufread | ( | VALUE | io, |
void * | buf, | ||
size_t | size | ||
) |
Definition at line 2178 of file io.c.
References bufread_arg::fptr, GetOpenFile, and rb_io_check_readable().
Definition at line 1450 of file io.c.
References binwrite_arg::fptr, GetOpenFile, and rb_io_check_writable().
void rb_io_check_byte_readable | ( | rb_io_t * | fptr | ) |
Definition at line 815 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().
void rb_io_check_char_readable | ( | rb_io_t * | fptr | ) |
Definition at line 796 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().
void rb_io_check_closed | ( | rb_io_t * | fptr | ) |
Definition at line 641 of file io.c.
References rb_io_t::fd, rb_eIOError, rb_io_check_initialized(), and rb_raise().
Referenced by rb_io_check_char_readable(), and rb_io_check_writable().
void rb_io_check_initialized | ( | rb_io_t * | fptr | ) |
Definition at line 633 of file io.c.
References rb_eIOError, and rb_raise().
Referenced by rb_io_check_closed(), and rb_io_synchronized().
Definition at line 664 of file io.c.
References rb_check_convert_type_with_id(), and T_FILE.
void rb_io_check_readable | ( | rb_io_t * | fptr | ) |
Definition at line 824 of file io.c.
References rb_io_check_byte_readable().
Referenced by rb_io_bufread().
void rb_io_check_writable | ( | rb_io_t * | fptr | ) |
Definition at line 848 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().
Definition at line 4501 of file io.c.
Referenced by rb_io_make_open_file().
Definition at line 1829 of file io.c.
References rb_io_t::fd, binwrite_arg::fptr, GetOpenFile, NEED_NEWLINE_DECORATOR_ON_READ, NEED_READCONV, Qfalse, Qtrue, rb_io_check_char_readable(), READ_CHAR_PENDING, READ_CHECK, and READ_DATA_PENDING.
int rb_io_extract_encoding_option | ( | VALUE | opt, |
rb_encoding ** | enc_p, | ||
rb_encoding ** | enc2_p, | ||
int * | fmode_p | ||
) |
Definition at line 1553 of file io.c.
References binwrite_arg::fptr, rb_funcall(), RB_TYPE_P, and T_FILE.
Referenced by rb_io_flush().
int rb_io_fptr_finalize | ( | rb_io_t * | fptr | ) |
Definition at line 4424 of file io.c.
References rb_io_t::fd, rb_io_t::pathv, and Qnil.
Referenced by rb_io_make_open_file().
Definition at line 658 of file io.c.
References rb_convert_type_with_id(), and T_FILE.
Definition at line 3921 of file io.c.
References rb_io_t::fd, FMODE_TTY, GetOpenFile, rb_io_t::mode, rb_io_check_byte_readable(), rb_io_flush(), rb_stdout, RB_TYPE_P, READ_CHECK, and T_FILE.
Definition at line 3287 of file io.c.
References GetOpenFile.
Definition at line 7724 of file io.c.
References Check_Type, rb_io_close(), rb_io_fptr_finalize(), RFILE, and T_FILE.
RUBY_FUNC_EXPORTED size_t rb_io_memsize | ( | const rb_io_t * | fptr | ) |
Definition at line 4439 of file io.c.
References rb_io_t::cbuf, rb_econv_memsize(), rb_io_t::rbuf, rb_io_t::readconv, size, rb_io_t::wbuf, and rb_io_t::writeconv.
int rb_io_modestr_fmode | ( | const char * | modestr | ) |
Definition at line 5143 of file io.c.
References FMODE_APPEND, FMODE_BINMODE, FMODE_CREATE, FMODE_READABLE, FMODE_READWRITE, FMODE_TEXTMODE, FMODE_TRUNC, FMODE_WRITABLE, NULL, rb_eArgError, rb_raise(), and strchr().
int rb_io_oflags_fmode | ( | int | oflags | ) |
Definition at line 5192 of file io.c.
References fmode, FMODE_APPEND, FMODE_BINMODE, FMODE_CREATE, FMODE_READABLE, FMODE_READWRITE, FMODE_TRUNC, FMODE_WRITABLE, O_ACCMODE, and O_BINARY.
Definition at line 7227 of file io.c.
References argc, NIL_P, Qnil, rb_io_write(), rb_lastline_get(), rb_output_fs, and rb_output_rs.
Definition at line 7166 of file io.c.
References Qnil, rb_f_sprintf(), and rb_io_write().
Definition at line 7399 of file io.c.
References argc, Qnil, rb_default_rs, rb_exec_recursive(), rb_io_write(), RB_TYPE_P, and T_STRING.
Referenced by rb_f_abort().
void rb_io_read_check | ( | rb_io_t * | fptr | ) |
Definition at line 869 of file io.c.
References rb_io_t::fd, rb_thread_wait_fd(), and READ_DATA_PENDING.
int rb_io_read_pending | ( | rb_io_t * | fptr | ) |
Definition at line 860 of file io.c.
References READ_CHAR_PENDING, and READ_DATA_PENDING.
void rb_io_set_nonblock | ( | rb_io_t * | fptr | ) |
Definition at line 2475 of file io.c.
References F_SETFL, fcntl(), rb_io_t::fd, O_NONBLOCK, rb_io_t::pathv, rb_sys_fail_path, and rb_w32_set_nonblock().
Referenced by rsock_s_accept_nonblock().
Definition at line 7676 of file io.c.
References rb_io_t::stdio_file.
void rb_io_synchronized | ( | rb_io_t * | fptr | ) |
Definition at line 5996 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 626 of file io.c.
References rb_check_frozen.
void rb_io_unbuffered | ( | rb_io_t * | fptr | ) |
Definition at line 6003 of file io.c.
References rb_io_synchronized().
Definition at line 3982 of file io.c.
References FIX2INT, FIXNUM_P, GetOpenFile, NIL_P, Qnil, rb_io_check_byte_readable(), rb_str_new(), and SafeStringValue.
Definition at line 4017 of file io.c.
References FIX2UINT, FIXNUM_P, GetOpenFile, len, NIL_P, Qnil, rb_enc_uint_chr(), and rb_io_check_char_readable().
int rb_io_wait_readable | ( | int | f | ) |
Definition at line 1106 of file io.c.
References rb_eIOError, and rb_raise().
int rb_io_wait_writable | ( | int | f | ) |
Definition at line 1132 of file io.c.
References rb_eIOError, and rb_raise().
Referenced by rsock_bsock_send().
Definition at line 1510 of file io.c.
References rb_funcallv.
Referenced by rb_io_addstr(), rb_io_print(), rb_io_printf(), rb_io_puts(), and rb_parser_printf().
void rb_maygvl_fd_fix_cloexec | ( | int | fd | ) |
Definition at line 210 of file io.c.
References errno, F_GETFD, F_SETFD, fcntl(), FD_CLOEXEC, rb_bug(), and strerror().
Referenced by rb_cloexec_dup2(), rb_cloexec_fcntl_dupfd(), rb_cloexec_open(), rb_cloexec_pipe(), and rb_fd_fix_cloexec().
int rb_notify_fd_close | ( | int | fd | ) |
Definition at line 2193 of file thread.c.
References err, waiting_fd::fd, GET_THREAD, rb_threadptr_interrupt(), rb_threadptr_pending_interrupt_enque(), ruby_error_stream_closed, rb_vm_struct::special_exceptions, waiting_fd::th, rb_thread_struct::vm, rb_vm_struct::waiting_fds, and waiting_fd::wfd_node.
Referenced by rb_thread_fd_close().
void rb_p | ( | VALUE | obj | ) |
Definition at line 7448 of file io.c.
References CLASS_OF, rb_inspect(), rb_method_basic_definition_p(), rb_obj_as_string(), rb_stdout, RB_TYPE_P, and T_FILE.
int rb_pipe | ( | int * | pipes | ) |
Definition at line 6009 of file io.c.
References buf, dup2(), err, errno, FMODE_WRITABLE, memcmp(), NULL, rb_cloexec_open(), rb_cloexec_pipe(), rb_close_before_exec(), rb_gc_for_fd(), rb_update_max_fd(), and ruby_strtoul().
void rb_readwrite_sys_fail | ( | enum rb_io_wait_readwrite | writable, |
const char * | mesg | ||
) |
void rb_readwrite_syserr_fail | ( | enum rb_io_wait_readwrite | writable, |
int | n, | ||
const char * | mesg | ||
) |
int rb_stderr_tty_p | ( | void | ) |
Definition at line 7602 of file io.c.
References rb_stderr.
Referenced by rb_threadptr_error_print().
void rb_update_max_fd | ( | int | fd | ) |
Definition at line 191 of file io.c.
References stat.
Referenced by rb_fd_fix_cloexec(), rb_file_load_ok(), rb_pipe(), and rsock_init_sock().
void rb_write_error | ( | const char * | mesg | ) |
Definition at line 7574 of file io.c.
References rb_write_error2(), and strlen().
void rb_write_error2 | ( | const char * | mesg, |
long | len | ||
) |
const char* ruby_get_inplace_mode | ( | void | ) |
Definition at line 12375 of file io.c.
References ARGF, and RSTRING_PTR.
void ruby_set_inplace_mode | ( | const char * | suffix | ) |
VALUE rb_cIO |
Definition at line 143 of file io.c.
Referenced by rb_io_fdopen().
VALUE rb_default_rs |
Definition at line 162 of file io.c.
Referenced by rb_gets(), and rb_io_puts().
VALUE rb_eEOFError |
Definition at line 144 of file io.c.
Referenced by Init_IO(), and rb_eof_error().
VALUE rb_eIOError |
Definition at line 145 of file io.c.
Referenced by Init_IO(), rb_io_check_byte_readable(), rb_io_check_char_readable(), rb_io_check_closed(), rb_io_check_initialized(), rb_io_check_writable(), rb_io_wait_readable(), and rb_io_wait_writable().
VALUE rb_output_fs |
Definition at line 159 of file io.c.
Referenced by rb_ary_resurrect(), and rb_io_print().
VALUE rb_output_rs |
Definition at line 161 of file io.c.
Referenced by rb_io_print().
VALUE rb_stderr |
Definition at line 156 of file io.c.
Referenced by rb_stderr_tty_p(), rb_write_error2(), and rb_write_error_str().
VALUE rb_stdout |
Definition at line 156 of file io.c.
Referenced by rb_io_getbyte(), and rb_p().