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

(57213d44ce7b1a31fc9648e9cd5eb0c4507f4a49)

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.