Ruby
3.4.0dev (2024-11-22 revision 37a72b0150ec36b4ea27175039afc28c62207b0c)
|
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. More... | |
#define | PATH_SEP_CHAR PATH_SEP[0] |
Identical to PATH_SEP, except it is of type char . More... | |
#define | PATH_ENV "PATH" |
#define | CASEFOLD_FILESYSTEM 0 |
Stone age assumption was that an operating system supports only one file system at a moment. More... | |
Support for so-called dosish systems.
RBIMPL
or rbimpl
are implementation details. Don't take them as canon. They could rapidly appear then vanish. The name (path) of this header file is also an implementation detail. Do not expect it to persist at the place it is now. Developers are free to move it anywhere anytime at will. __VA_ARGS__
is always available. We assume C99 for ruby itself but we don't assume languages of extension libraries. They could be written in C++98. 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" |
Exists here for backwards compatibility only. You can safely forget about it.
#define PATH_SEP ":" |