Ruby 4.1.0dev (2026-05-15 revision 11de89ca1a94899535875ea594962c79713615b1)
file.h
1#ifndef INTERNAL_FILE_H /*-*-C-*-vi:se ft=c:*/
2#define INTERNAL_FILE_H
11#include "ruby/ruby.h" /* for VALUE */
12#include "ruby/encoding.h" /* for rb_encodinng */
13
14/* file.c */
15extern const char ruby_null_device[];
16VALUE rb_home_dir_of(VALUE user, VALUE result);
17VALUE rb_default_home_dir(VALUE result);
18VALUE rb_realpath_internal(VALUE basedir, VALUE path, int strict);
19VALUE rb_check_realpath(VALUE basedir, VALUE path, rb_encoding *origenc);
20void rb_file_const(const char*, VALUE);
21int rb_file_load_ok(const char *);
22VALUE rb_file_expand_path_fast(VALUE, VALUE);
23VALUE rb_file_expand_path_internal(VALUE, VALUE, int, int, VALUE);
24VALUE rb_get_path_check_to_string(VALUE);
25VALUE rb_get_path_check_convert(VALUE);
26VALUE rb_get_path_check_no_convert(VALUE);
27int ruby_is_fd_loadable(int fd);
28char *rb_enc_path_skip_prefix_root(const char *path, const char *end, rb_encoding *enc);
29
30RUBY_SYMBOL_EXPORT_BEGIN
31/* file.c (export) */
32#ifdef HAVE_READLINK
33VALUE rb_readlink(VALUE path, rb_encoding *enc);
34#endif
35#ifdef __APPLE__
36VALUE rb_str_normalize_ospath(const char *ptr, long len);
37#endif
38RUBY_SYMBOL_EXPORT_END
39
40#endif /* INTERNAL_FILE_H */
Encoding relates APIs.
int len
Length of the buffer.
Definition io.h:8
uintptr_t VALUE
Type that represents a Ruby object.
Definition value.h:40