Ruby
3.1.0dev(2021-09-10revisionb76ad15ed0da636161de0243c547ee1e6fc95681)
|
Internal header for IO. More...
Go to the source code of this file.
Macros | |
#define | rb_io_fptr_finalize rb_io_fptr_finalize_internal |
Functions | |
void | ruby_set_inplace_mode (const char *) |
void | rb_stdio_set_default_encoding (void) |
VALUE | rb_io_flush_raw (VALUE, int) |
size_t | rb_io_memsize (const rb_io_t *) |
int | rb_stderr_tty_p (void) |
void | rb_io_fptr_finalize_internal (void *ptr) |
VALUE | rb_io_popen (VALUE pname, VALUE pmode, VALUE env, VALUE opt) |
void | rb_maygvl_fd_fix_cloexec (int fd) |
int | rb_gc_for_fd (int err) |
void | rb_write_error_str (VALUE mesg) |
Internal header for IO.
Definition in file io.h.
#define rb_io_fptr_finalize rb_io_fptr_finalize_internal |
int rb_gc_for_fd | ( | int | err | ) |
Definition at line 2088 of file io.c.
Referenced by rb_io_flush().
void rb_io_fptr_finalize_internal | ( | void * | ptr | ) |
Definition at line 4947 of file io.c.
References rb_io_t::fd, finish_writeconv_arg::fptr, rb_io_t::pathv, ptr, and Qnil.
Referenced by rb_io_fptr_finalize().
Definition at line 4977 of file io.c.
References rb_io_t::cbuf, finish_writeconv_arg::fptr, rb_econv_memsize(), rb_io_t::rbuf, rb_io_t::readconv, size, rb_io_t::wbuf, and rb_io_t::writeconv.
Definition at line 7148 of file io.c.
References FALSE, fmode, len, NIL_P, Qnil, RARRAY_CONST_PTR, RARRAY_LEN, rb_check_array_type(), rb_eArgError, rb_execarg_new(), RB_GC_GUARD, rb_raise(), and SafeStringValue.
void rb_maygvl_fd_fix_cloexec | ( | int | fd | ) |
Definition at line 259 of file io.c.
References F_GETFD, F_SETFD, fcntl(), FD_CLOEXEC, rb_bug(), ret, and strerror().
Referenced by rb_cloexec_dup2(), rb_cloexec_fcntl_dupfd(), rb_cloexec_open(), and rb_fd_fix_cloexec().