Ruby: internal/file.h Source File

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

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[];
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);
20void rb_file_const(const char*, VALUE);
21int 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);
26int ruby_is_fd_loadable(int fd);
27
28RUBY_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
36RUBY_SYMBOL_EXPORT_END
37
38#endif /* INTERNAL_FILE_H */
encoding.h
Encoding relates APIs.
ruby.h
OnigEncodingTypeST
Definition onigmo.h:160
VALUE
uintptr_t VALUE
Type that represents a Ruby object.
Definition value.h:40