Ruby: internal/file.h Source File

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

file.h
Go to the documentation of this file.
1#ifndef INTERNAL_FILE_H /*-*-C-*-vi:se ft=c:*/
2#define INTERNAL_FILE_H
12#include "ruby/ruby.h" /* for VALUE */
13#include "ruby/encoding.h" /* for rb_encodinng */
14
15/* file.c */
16extern const char ruby_null_device[];
17 VALUE rb_home_dir_of(VALUE user, VALUE result);
18 VALUE rb_default_home_dir(VALUE result);
19 VALUE rb_realpath_internal(VALUE basedir, VALUE path, int strict);
20 VALUE rb_check_realpath(VALUE basedir, VALUE path, rb_encoding *origenc);
21void rb_file_const(const char*, VALUE);
22int rb_file_load_ok(const char *);
23 VALUE rb_file_expand_path_fast(VALUE, VALUE);
24 VALUE rb_file_expand_path_internal(VALUE, VALUE, int, int, VALUE);
25 VALUE rb_get_path_check_to_string(VALUE);
26 VALUE rb_get_path_check_convert(VALUE);
27int ruby_is_fd_loadable(int fd);
28
29RUBY_SYMBOL_EXPORT_BEGIN
30/* file.c (export) */
31#ifdef HAVE_READLINK
32 VALUE rb_readlink(VALUE path, rb_encoding *enc);
33#endif
34#ifdef __APPLE__
35 VALUE rb_str_normalize_ospath(const char *ptr, long len);
36#endif
37RUBY_SYMBOL_EXPORT_END
38
39#endif /* INTERNAL_FILE_H */
ptr
struct RIMemo * ptr
Definition: debug.c:88
len
uint8_t len
Definition: escape.c:17
encoding.h
rb_file_const
void rb_file_const(const char *, VALUE)
Definition: file.c:6171
ruby_is_fd_loadable
int ruby_is_fd_loadable(int fd)
Definition: file.c:6277
rb_check_realpath
VALUE rb_check_realpath(VALUE basedir, VALUE path, rb_encoding *origenc)
Definition: file.c:4504
rb_file_expand_path_fast
VALUE rb_file_expand_path_fast(VALUE, VALUE)
Definition: file.c:4110
rb_file_expand_path_internal
VALUE rb_file_expand_path_internal(VALUE, VALUE, int, int, VALUE)
Definition: file.c:3731
ruby_null_device
const char ruby_null_device[]
Definition: file.c:6457
rb_file_load_ok
int rb_file_load_ok(const char *)
Definition: file.c:6304
rb_get_path_check_convert
VALUE rb_get_path_check_convert(VALUE)
Definition: file.c:226
rb_home_dir_of
VALUE rb_home_dir_of(VALUE user, VALUE result)
Definition: file.c:3600
rb_get_path_check_to_string
VALUE rb_get_path_check_to_string(VALUE)
Definition: file.c:211
rb_realpath_internal
VALUE rb_realpath_internal(VALUE basedir, VALUE path, int strict)
Definition: file.c:4496
rb_default_home_dir
VALUE rb_default_home_dir(VALUE result)
Definition: file.c:3640
ruby.h
OnigEncodingTypeST
Definition: onigmo.h:160
VALUE
unsigned long VALUE
Definition: value.h:38
rb_readlink
VALUE rb_readlink(VALUE path, rb_encoding *resultenc)
Definition: file.c:619