Ruby: internal/io.h Source File

Ruby 3.2.5p208 (2024-07-26 revision 31d0f1a2e7dbfb60731d1f05b868e1d578cda493)

io.h
1#ifndef INTERNAL_IO_H /*-*-C-*-vi:se ft=c:*/
2#define INTERNAL_IO_H
11#include "ruby/ruby.h" /* for VALUE */
12#include "ruby/io.h" /* for rb_io_t */
13
14/* io.c */
15void ruby_set_inplace_mode(const char *);
16void rb_stdio_set_default_encoding(void);
17 VALUE rb_io_flush_raw(VALUE, int);
18size_t rb_io_memsize(const rb_io_t *);
19int rb_stderr_tty_p(void);
20void rb_io_fptr_finalize_internal(void *ptr);
21#ifdef rb_io_fptr_finalize
22# undef rb_io_fptr_finalize
23#endif
24#define rb_io_fptr_finalize rb_io_fptr_finalize_internal
25 VALUE rb_io_popen(VALUE pname, VALUE pmode, VALUE env, VALUE opt);
26
27 VALUE rb_io_prep_stdin(void);
28 VALUE rb_io_prep_stdout(void);
29 VALUE rb_io_prep_stderr(void);
30
31RUBY_SYMBOL_EXPORT_BEGIN
32/* io.c (export) */
33void rb_maygvl_fd_fix_cloexec(int fd);
34int rb_gc_for_fd(int err);
35void rb_write_error_str(VALUE mesg);
36RUBY_SYMBOL_EXPORT_END
37
38#endif /* INTERNAL_IO_H */
io.h
ruby.h
rb_io_t
Ruby's IO, metadata and buffers.
Definition io.h:138
VALUE
uintptr_t VALUE
Type that represents a Ruby object.
Definition value.h:40