#include "ruby.h"
#include "rubyio.h"
#include "rubysig.h"
#include "env.h"
#include <ctype.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/param.h>
#include <syscall.h>
#include <unistd.h>
#include "util.h"
#include <sys/select.h>
Go to the source code of this file.
|
|
Definition at line 4190 of file io.c. Referenced by argf_binmode(), argf_closed(), argf_eof(), argf_fileno(), argf_rewind(), argf_seek_m(), argf_set_pos(), argf_tell(), argf_to_io(), and rb_f_readline(). |
|
|
Definition at line 243 of file io.c. Referenced by rb_io_check_readable(). |
|
|
Definition at line 234 of file io.c. Referenced by io_reopen(), rb_io_check_readable(), rb_io_check_writable(), rb_io_rewind(), rb_io_seek(), and rb_io_set_pos(). |
|
|
Definition at line 235 of file io.c. Referenced by io_reopen(), rb_io_tell(), and remain_size(). |
|
|
Referenced by rb_io_modenum_mode(). |
|
|
Referenced by rb_io_flags_mode(). |
|
|
|
|
|
Value: do {\ if (!next_argv()) return Qnil;\ ARGF_FORWARD();\ } while (0) Definition at line 4191 of file io.c. Referenced by argf_readchar(), and rb_f_readlines(). |
|
|
Definition at line 71 of file io.c. Referenced by pipe_open(). |
|
|
Definition at line 96 of file io.c. Referenced by rb_io_mode_modenum(). |
|
|
Definition at line 107 of file io.c. Referenced by io_fwrite(). |
|
|
Value: do {\ if (!READ_DATA_PENDING(fp)) {\ rb_thread_wait_fd(fileno(fp));\ rb_io_check_closed(fptr);\ }\ } while(0) Definition at line 180 of file io.c. Referenced by appendline(), io_getpartial(), io_read(), rb_io_each_byte(), rb_io_eof(), rb_io_getc(), read_all(), and swallow(). |
|
|
Definition at line 166 of file io.c. Referenced by rb_io_sysread(), and rb_io_sysseek(). |
|
|
Definition at line 151 of file io.c. Referenced by rb_f_select(), rb_getc(), rb_io_eof(), rb_read_check(), rb_read_pending(), and read_buffered_data(). |
|
|
Definition at line 152 of file io.c. Referenced by appendline(), read_buffered_data(), and swallow(). |
|
|
Definition at line 171 of file io.c. Referenced by appendline(), and swallow(). |
|
|
|
|
|
Definition at line 239 of file io.c. Referenced by Init_IO(), rb_file_truncate(), rb_io_check_readable(), rb_io_check_writable(), and rb_io_init_copy(). |
|
|
Definition at line 240 of file io.c. Referenced by Init_IO(). |
|
|
Definition at line 238 of file io.c. Referenced by Init_IO(), io_reopen(), rb_io_init_copy(), rb_io_s_read(), rb_io_seek_m(), rb_io_set_pos(), and rb_io_sysseek(). |
|
|
Definition at line 1105 of file io.c. Referenced by rb_strftime(), and time_strftime(). |
|
||||||||||||||||
|
Definition at line 1372 of file io.c. References NIL_P, Qfalse, Qtrue, rb_io_check_closed(), rb_io_wait_readable(), rb_str_buf_cat(), rb_str_buf_new(), rb_str_cat(), rb_str_new(), rb_str_resize(), rb_sys_fail(), rb_thread_wait_fd(), READ_CHECK, READ_DATA_PENDING_COUNT, READ_DATA_PENDING_PTR, RSTRING, TRAP_BEG, TRAP_END, and VALUE. Referenced by rb_io_getline(), and rb_io_getline_fast(). |
|
|
Definition at line 5392 of file io.c. References argf, ARGF_FORWARD, binmode, current_file, next_argv(), and rb_io_binmode(). Referenced by Init_IO(). |
|
|
Definition at line 4197 of file io.c. References rb_funcall3(), rb_intern(), rb_io_close(), T_FILE, TYPE, and VALUE. Referenced by argf_close_m(), argf_getc(), argf_getline(), argf_read(), argf_skip(), and rb_gets(). |
|
|
Definition at line 5412 of file io.c. References argf, argf_close(), current_file, gets_lineno, and next_argv(). Referenced by Init_IO(). |
|
|
Definition at line 5424 of file io.c. References ARGF_FORWARD, current_file, next_argv(), and rb_io_closed(). Referenced by Init_IO(). |
|
|
Definition at line 5367 of file io.c. References argf, argf_getc(), NIL_P, rb_yield(), and VALUE. Referenced by Init_IO(). |
|
||||||||||||
|
Definition at line 5346 of file io.c. References argf, argf_getline(), current_file, next_argv(), NIL_P, Qnil, rb_each(), rb_iterate(), rb_yield(), T_FILE, TYPE, and VALUE. Referenced by Init_IO(). |
|
|
Definition at line 5251 of file io.c. References ARGF_FORWARD, current_file, init_p, Qfalse, Qtrue, and rb_io_eof(). Referenced by Init_IO(). |
|
|
Definition at line 5385 of file io.c. References current_file, and next_argv(). Referenced by Init_IO(). |
|
|
Definition at line 5378 of file io.c. References filename, and next_argv(). Referenced by Init_IO(). |
|
|
Definition at line 5233 of file io.c. References ARGF_FORWARD, current_file, next_argv(), rb_eArgError, rb_io_fileno(), and rb_raise(). Referenced by Init_IO(). |
|
|
Definition at line 4184 of file io.c. References FRAME::argc, FRAME::argv, current_file, FRAME::last_func, rb_funcall3(), and ruby_frame. Referenced by argf_read(). |
|
|
Definition at line 5311 of file io.c. References argf_close(), current_file, next_argv(), NIL_P, Qnil, rb_funcall3(), rb_intern(), rb_io_getc(), T_FILE, TYPE, and VALUE. Referenced by argf_each_byte(), argf_readchar(), and Init_IO(). |
|
||||||||||||
|
Definition at line 4327 of file io.c. References argf_close(), current_file, gets_lineno, INT2FIX, lineno, next_argv(), NIL_P, Qnil, rb_default_rs, rb_io_getline(), rb_io_gets(), rb_rs, rb_scan_args(), StringValue, and VALUE. Referenced by argf_each_line(), rb_f_gets(), and rb_f_readlines(). |
|
|
Definition at line 1733 of file io.c. References lineno. Referenced by Init_IO(). |
|
||||||||||||
|
Definition at line 5264 of file io.c. References argf_close(), argf_forward(), current_file, INT2NUM, io_read(), next_argv(), NIL_P, NUM2LONG, Qnil, rb_scan_args(), rb_str_append(), rb_str_resize(), RSTRING, StringValue, T_FILE, TYPE, and VALUE. Referenced by Init_IO(). |
|
|
Definition at line 5333 of file io.c. References argf_getc(), NEXT_ARGF_FORWARD, NIL_P, rb_eof_error(), and VALUE. Referenced by Init_IO(). |
|
|
Definition at line 5223 of file io.c. References ARGF_FORWARD, current_file, next_argv(), rb_eArgError, rb_io_rewind(), and rb_raise(). Referenced by Init_IO(). |
|
||||||||||||||||
|
Definition at line 5199 of file io.c. References ARGF_FORWARD, current_file, next_argv(), rb_eArgError, rb_io_seek_m(), rb_raise(), and VALUE. Referenced by Init_IO(). |
|
||||||||||||
|
Definition at line 1724 of file io.c. References argf, gets_lineno, INT2FIX, lineno, NUM2INT, Qnil, and VALUE. Referenced by Init_IO(). |
|
||||||||||||
|
Definition at line 5212 of file io.c. References ARGF_FORWARD, current_file, next_argv(), rb_eArgError, rb_io_set_pos(), rb_raise(), and VALUE. Referenced by Init_IO(). |
|
|
Definition at line 5402 of file io.c. References argf, argf_close(), and current_file. Referenced by Init_IO(). |
|
|
Definition at line 5189 of file io.c. References ARGF_FORWARD, current_file, next_argv(), rb_eArgError, rb_io_tell(), and rb_raise(). Referenced by Init_IO(). |
|
|
Definition at line 5243 of file io.c. References ARGF_FORWARD, current_file, and next_argv(). Referenced by Init_IO(). |
|
|
Definition at line 5432 of file io.c. References rb_str_new2(). Referenced by Init_IO(). |
|
||||||||||||||||
|
Definition at line 3988 of file io.c. References ID, rb_warn(), stdout_setter(), and VALUE. Referenced by Init_IO(). |
|
||||||||||||||||
|
Definition at line 3978 of file io.c. References ID, rb_warn(), stdout_setter(), and VALUE. Referenced by Init_IO(). |
|
|
Definition at line 225 of file io.c. References FMODE_WBUF, GetWriteFile, and io_fflush(). |
|
||||||||||||
|
Definition at line 2026 of file io.c. References FMODE_WBUF, rb_io_wait_writable(), and rb_sys_fail(). Referenced by rb_io_fptr_cleanup(). |
|
|
Definition at line 4333 of file file.c. References define_filetest_function(), INT2FIX, LOCK_EX, LOCK_NB, LOCK_SH, LOCK_UN, PATH_SEP, Qnil, rb_cFile, rb_cIO, rb_cObject, rb_cStat, rb_define_alloc_func(), rb_define_class(), rb_define_class_under(), rb_define_const(), rb_define_global_function(), |