Ruby  3.1.4p223 (2023-03-30 revision HEAD)
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 */
15 extern const char ruby_null_device[];
16 VALUE rb_home_dir_of(VALUE user, VALUE result);
17 VALUE rb_default_home_dir(VALUE result);
18 VALUE rb_realpath_internal(VALUE basedir, VALUE path, int strict);
19 VALUE rb_check_realpath(VALUE basedir, VALUE path, rb_encoding *origenc);
20 void rb_file_const(const char*, VALUE);
21 int rb_file_load_ok(const char *);
22 VALUE rb_file_expand_path_fast(VALUE, VALUE);
23 VALUE rb_file_expand_path_internal(VALUE, VALUE, int, int, VALUE);
24 VALUE rb_get_path_check_to_string(VALUE);
25 VALUE rb_get_path_check_convert(VALUE);
26 int ruby_is_fd_loadable(int fd);
27 
28 RUBY_SYMBOL_EXPORT_BEGIN
29 /* file.c (export) */
30 #ifdef HAVE_READLINK
31 VALUE rb_readlink(VALUE path, rb_encoding *enc);
32 #endif
33 #ifdef __APPLE__
34 VALUE rb_str_normalize_ospath(const char *ptr, long len);
35 #endif
36 RUBY_SYMBOL_EXPORT_END
37 
38 #endif /* INTERNAL_FILE_H */
Encoding relates APIs.
uintptr_t VALUE
Type that represents a Ruby object.
Definition: value.h:40