|
Defines |
#define | PROT_NONE 0x00 |
#define | PROT_READ 0x01 |
#define | PROT_WRITE 0x02 |
#define | PROT_EXEC 0x04 |
#define | MAP_SHARED 0x0001 |
#define | MAP_PRIVATE 0x0002 |
#define | MAP_FIXED 0x0010 |
#define | MAP_RENAME 0x0020 |
#define | MAP_NORESERVE 0x0040 |
#define | MAP_INHERIT 0x0080 |
#define | MAP_NOEXTEND 0x0100 |
#define | MAP_HASSEMAPHORE 0x0200 |
#define | MAP_FILE 0x0000 |
#define | MAP_ANON 0x1000 |
#define | MAP_FAILED ((void *) -1) |
#define | MS_ASYNC 0x01 |
#define | MS_INVALIDATE 0x02 |
#define | MS_SYNC 0x04 |
#define | MCL_CURRENT 0x01 |
#define | MCL_FUTURE 0x02 |
#define | MADV_NORMAL 0 |
#define | MADV_RANDOM 1 |
#define | MADV_SEQUENTIAL 2 |
#define | MADV_WILLNEED 3 |
#define | MADV_DONTNEED 4 |
#define | MADV_SPACEAVAIL 5 |
#define | MADV_FREE 6 |
#define | MAP_INHERIT_SHARE 0 |
#define | MAP_INHERIT_COPY 1 |
#define | MAP_INHERIT_NONE 2 |
#define | MAP_INHERIT_DONATE_COPY 3 |
#define | MAP_INHERIT_DEFAULT MAP_INHERIT_COPY |
Functions |
void * | mmap_file (void *addr, size_t len, int prot, int flags, int fd, off_t offset) |
int | munmap_file (void *addr, size_t len) |
int | getpagesize (void) |
void * | mmap (void *addr, size_t len, int prot, int flags, int fd, off_t offset) |
int | mprotect (void *addr, size_t len, int prot) |
int | munmap (void *addr, size_t len) |