Ruby 4.1.0dev (2026-09-26 revision 227006291d35b2255b3f7a888d75102c129b0472)
Macros
filesystem.h File Reference

(227006291d35b2255b3f7a888d75102c129b0472)

Platform detection for mmap and filesystem support. More...

#include <unistd.h>
Include dependency graph for filesystem.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PRISM_HAS_FILESYSTEM
 In general, libc for embedded systems does not support memory-mapped files.
 

Detailed Description

Platform detection for mmap and filesystem support.

Definition in file filesystem.h.

Macro Definition Documentation

◆ PRISM_HAS_FILESYSTEM

#define PRISM_HAS_FILESYSTEM

In general, libc for embedded systems does not support memory-mapped files.

If the target platform is POSIX or Windows, we can map a file in memory and read it in a more efficient manner. If PRISM_HAS_NO_FILESYSTEM is defined, then we want to exclude all filesystem related code from the library. All filesystem related code should be guarded by PRISM_HAS_FILESYSTEM.

Definition at line 29 of file filesystem.h.