|
Serene Runtime 1.0.0-dev
C runtime for the Serene programming language
|
Go to the source code of this file.
Data Structures | |
| struct | srn_mmap_buffer_t |
| Memory mapped buffer. More... | |
Macros | |
| #define | PMAP_WIN32 0 |
| #define | SRN_PROT_NONE 0x0 |
| #define | SRN_PROT_READ 0x1 |
| #define | SRN_PROT_WRITE 0x2 |
| #define | SRN_PROT_EXEC 0x4 |
| #define | SRN_MAP_FILE 0 |
| #define | SRN_MAP_SHARED 1 |
| #define | SRN_MAP_PRIVATE 2 |
| #define | SRN_MAP_TYPE 0xf |
| #define | SRN_MAP_FIXED 0x10 |
| #define | SRN_MMAP_VALIDATE(out, len, prot, flags) |
Typedefs | |
| typedef struct srn_mmap_buffer_t | srn_mmap_buffer_t |
| Memory mapped buffer. | |
Functions | |
| srn_error_t * | srn_mmap (srn_context_t *ctx, srn_mmap_buffer_t *out, size_t len, int prot, int flags, int fd, off64_t offset) |
| int | srn_munmap (srn_mmap_buffer_t *map) |
| #define PMAP_WIN32 0 |
Definition at line 30 of file srn_mmap.h.
| #define SRN_MAP_FILE 0 |
Definition at line 44 of file srn_mmap.h.
| #define SRN_MAP_FIXED 0x10 |
Definition at line 48 of file srn_mmap.h.
| #define SRN_MAP_PRIVATE 2 |
Definition at line 46 of file srn_mmap.h.
| #define SRN_MAP_SHARED 1 |
Definition at line 45 of file srn_mmap.h.
| #define SRN_MAP_TYPE 0xf |
Definition at line 47 of file srn_mmap.h.
| #define SRN_MMAP_VALIDATE | ( | out, | |
| len, | |||
| prot, | |||
| flags ) |
Definition at line 68 of file srn_mmap.h.
| #define SRN_PROT_EXEC 0x4 |
Definition at line 41 of file srn_mmap.h.
| #define SRN_PROT_NONE 0x0 |
Definition at line 38 of file srn_mmap.h.
| #define SRN_PROT_READ 0x1 |
Definition at line 39 of file srn_mmap.h.
| #define SRN_PROT_WRITE 0x2 |
Definition at line 40 of file srn_mmap.h.
| typedef struct srn_mmap_buffer_t srn_mmap_buffer_t |
Memory mapped buffer.
|
extern |
Definition at line 30 of file srn_mmap.c.
|
extern |
Definition at line 66 of file srn_mmap.c.