SYSMMAN.H(7) Miscellaneous Information Manual SYSMMAN.H(7)

sys/mman.hmemory management declarations

#include <sys/mman.h>

The following protection options are defined:

Page can be read.
Page can be written.
Page can be executed.
Page can not be accessed.

The following options are defined:

Share changes.
Changes are private.
Interpret addr exactly.

The following flags are defined for :

Perform asynchronous writes.
Perform synchronous writes.
Invalidate mappings.

The following symbolic constants are defined for the function:

Lock currently mapped pages.
Lock pages that become mapped.

The symbolic constant MAP_FAILED is defined to indicate a failure from the function.

The and types are defined as described in <sys/types.h>.

The following are declared in < > as functions and may also be defined as macros. Function prototypes must be provided for use with an ISO C compiler. int mlock(const void *, size_t); int mlockall(int); void *mmap(void *, size_t, int, int, int, off_t); int mprotect(void *, size_t, int); int msync(void *, size_t, int); int munlock(const void *, size_t); int munlockall(void); int munmap(void *, size_t); int shm_open(const char *, int, mode_t); int shm_unlink(const char *);

The functions mlock(3) , mlockall(3) , shm_open(3) , and shm_unlink(3) are part of the Realtime Feature Group .

None.

mlock(3) , mlockall(3) , mmap(3) , mprotect(3) , msync(3) , munmap(3) , shm_open(3) , shm_unlink(3) .

February 1997 posix.fail