Ruby 3.5.0dev (2025-01-10 revision 5fab31b15e32622c4b71d1d347a41937e9f9c212)
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);
26int ruby_is_fd_loadable(int fd);
27
28RUBY_SYMBOL_EXPORT_BEGIN
29/* file.c (export) */
30#ifdef HAVE_READLINK
31VALUE rb_readlink(VALUE path, rb_encoding *enc);
32#endif
33#ifdef __APPLE__
34VALUE rb_str_normalize_ospath(const char *ptr, long len);
35#endif
36RUBY_SYMBOL_EXPORT_END
37
38#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