![]() |
|||||
|
#include <sys/types.h>
Go to the source code of this file.
Defines | |
#define | PROT_READ 0x1 |
page can be read | |
#define | PROT_WRITE 0x2 |
page can be written | |
#define | PROT_EXEC 0x4 |
page can be executed | |
#define | PROT_NONE 0x0 |
page can not be accessed | |
#define | MAP_PRIVATE 0x02 |
Changes are private. | |
#define | MAP_ANONYMOUS 0x20 |
Ignore fd and offset parameters. | |
#define | MAP_FIXED 0x10 |
Interpret addr exactly. | |
#define | MAP_FAILED ((void*)-1) |
Returned from mmap() when the mapping fails. | |
Functions | |
void * | mmap (void *addr, size_t len, int prot, int flags, int fd, off_t offset) |
Maps a file into memory, and returns a pointer to it. | |
int | munmap (void *addr, size_t len) |
Deletes a mapped region. | |
int | msync (void *addr, size_t len, int flags) |
Writes any dirty pages within the given range to disk. |
Contains the declarations for the mmap() API.
|
UNIX Emulation for Win32 Libraries documentation © Synesis Software Pty Ltd, 2001-2003 |