RTEMS CPU Kit with SuperCore  4.11.3
Macros | Typedefs | Functions
mman.h File Reference
#include <sys/featuretest.h>
#include <machine/ansi.h>
#include <sys/ansi.h>
#include <sys/cdefs.h>
Include dependency graph for mman.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define mode_t   __mode_t
 
#define off_t   __off_t
 
#define PROT_NONE   0x00 /* no permissions */
 
#define PROT_READ   0x01 /* pages can be read */
 
#define PROT_WRITE   0x02 /* pages can be written */
 
#define PROT_EXEC   0x04 /* pages can be executed */
 
#define MAP_SHARED   0x0001 /* share changes */
 
#define MAP_PRIVATE   0x0002 /* changes are private */
 
#define MAP_FIXED   0x0010 /* map addr must be exactly as requested */
 
#define MAP_RENAME   0x0020 /* Sun: rename private pages to file */
 
#define MAP_NORESERVE   0x0040 /* Sun: don't reserve needed swap area */
 
#define MAP_INHERIT   0x0080 /* region is retained after exec */
 
#define MAP_HASSEMAPHORE   0x0200 /* region may contain semaphores */
 
#define MAP_TRYFIXED   0x0400 /* attempt hint address, even within break */
 
#define MAP_WIRED   0x0800 /* mlock() mapping when it is established */
 
#define MAP_FILE   0x0000 /* map from file (default) */
 
#define MAP_ANON   0x1000 /* allocated from memory, swap space */
 
#define MAP_ALIGNED(n)   ((n) << MAP_ALIGNMENT_SHIFT)
 
#define MAP_ALIGNMENT_SHIFT   24
 
#define MAP_ALIGNMENT_MASK   MAP_ALIGNED(0xff)
 
#define MAP_ALIGNMENT_64KB   MAP_ALIGNED(16) /* 2^16 */
 
#define MAP_ALIGNMENT_16MB   MAP_ALIGNED(24) /* 2^24 */
 
#define MAP_ALIGNMENT_4GB   MAP_ALIGNED(32) /* 2^32 */
 
#define MAP_ALIGNMENT_1TB   MAP_ALIGNED(40) /* 2^40 */
 
#define MAP_ALIGNMENT_256TB   MAP_ALIGNED(48) /* 2^48 */
 
#define MAP_ALIGNMENT_64PB   MAP_ALIGNED(56) /* 2^56 */
 
#define MAP_FAILED   ((void *) -1) /* mmap() failed */
 
#define MS_ASYNC   0x01 /* perform asynchronous writes */
 
#define MS_INVALIDATE   0x02 /* invalidate cached data */
 
#define MS_SYNC   0x04 /* perform synchronous writes */
 
#define MCL_CURRENT   0x01 /* lock all pages currently mapped */
 
#define MCL_FUTURE   0x02 /* lock all pages mapped in the future */
 

Typedefs

typedef __mode_t mode_t
 
typedef __off_t off_t
 

Functions

__BEGIN_DECLS void * mmap (void *, size_t, int, int, int, off_t)
 
int munmap (void *, size_t)
 
int mprotect (void *, size_t, int)
 
int msync (void *, size_t, int) __RENAME(__msync13)
 
int mlock (const void *, size_t)
 
int munlock (const void *, size_t)
 
int mlockall (int)
 
int munlockall (void)