Ruby: internal/io.h Source File

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

io.h
Go to the documentation of this file.
1#ifndef INTERNAL_IO_H /*-*-C-*-vi:se ft=c:*/
2#define INTERNAL_IO_H
12#include "ruby/ruby.h" /* for VALUE */
13#include "ruby/io.h" /* for rb_io_t */
14
15/* io.c */
16void ruby_set_inplace_mode(const char *);
17void rb_stdio_set_default_encoding(void);
18 VALUE rb_io_flush_raw(VALUE, int);
19size_t rb_io_memsize(const rb_io_t *);
20int rb_stderr_tty_p(void);
21void rb_io_fptr_finalize_internal(void *ptr);
22#ifdef rb_io_fptr_finalize
23# undef rb_io_fptr_finalize
24#endif
25#define rb_io_fptr_finalize rb_io_fptr_finalize_internal
26 VALUE rb_io_popen(VALUE pname, VALUE pmode, VALUE env, VALUE opt);
27
28RUBY_SYMBOL_EXPORT_BEGIN
29/* io.c (export) */
30void rb_maygvl_fd_fix_cloexec(int fd);
31int rb_gc_for_fd(int err);
32void rb_write_error_str(VALUE mesg);
33RUBY_SYMBOL_EXPORT_END
34
35#endif /* INTERNAL_IO_H */
ptr
struct RIMemo * ptr
Definition: debug.c:88
io.h
rb_io_fptr_finalize_internal
void rb_io_fptr_finalize_internal(void *ptr)
Definition: io.c:4845
rb_write_error_str
void rb_write_error_str(VALUE mesg)
Definition: io.c:8083
ruby_set_inplace_mode
void ruby_set_inplace_mode(const char *)
Definition: io.c:13050
rb_maygvl_fd_fix_cloexec
void rb_maygvl_fd_fix_cloexec(int fd)
Definition: io.c:260
rb_io_flush_raw
VALUE rb_io_flush_raw(VALUE, int)
Definition: io.c:2013
rb_gc_for_fd
int rb_gc_for_fd(int err)
Definition: io.c:1010
rb_stdio_set_default_encoding
void rb_stdio_set_default_encoding(void)
Definition: io.c:12002
rb_io_memsize
size_t rb_io_memsize(const rb_io_t *)
Definition: io.c:4875
rb_stderr_tty_p
int rb_stderr_tty_p(void)
Definition: io.c:8105
rb_io_popen
VALUE rb_io_popen(VALUE pname, VALUE pmode, VALUE env, VALUE opt)
Definition: io.c:7040
ruby.h
rb_io_t
Definition: io.h:61
VALUE
unsigned long VALUE
Definition: value.h:38
err
int err
Definition: win32.c:142
env
#define env