Ruby 3.4.5p51 (2025-07-16 revision 20cda200d3ce092571d0b5d342dadca69636cb0f)
|
Support for so-called dosish systems. More...
Go to the source code of this file.
Macros | |
#define | PATH_SEP ":" |
The delimiter of PATH environment variable. | |
#define | PATH_SEP_CHAR PATH_SEP[0] |
Identical to PATH_SEP, except it is of type char. | |
#define | PATH_ENV "PATH" |
#define | CASEFOLD_FILESYSTEM 0 |
Stone age assumption was that an operating system supports only one file system at a moment. |
Support for so-called dosish systems.
Definition in file dosish.h.
#define CASEFOLD_FILESYSTEM 0 |
Stone age assumption was that an operating system supports only one file system at a moment.
This macro was to detect if such (one and only) file system has case sensitivity. This assumption is largely not true any longer; most operating systems can mount many kinds of file systems side by side. Also there are file systems that do or do not ignore cases depending on configuration (e.g. EXT4's casefold feature).
This macro is still used internally (for instance Ruby level constant File::FNM_SYSCASE depends on it), but it is basically a wrong idea for you to use it today. Please just find another way.
#define PATH_ENV "PATH" |
#define PATH_SEP ":" |
#define PATH_SEP_CHAR PATH_SEP[0] |
Identical to PATH_SEP, except it is of type char.
Definition at line 49 of file dosish.h.
Referenced by rb_path_check().