Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/mman.h
Show First 20 Lines • Show All 128 Lines • ▼ Show 20 Lines | |||||
#endif | #endif | ||||
/* | /* | ||||
* Error return from mmap() | * Error return from mmap() | ||||
*/ | */ | ||||
#define MAP_FAILED ((void *)-1) | #define MAP_FAILED ((void *)-1) | ||||
/* | /* | ||||
* Flags provided to shm_rename | |||||
*/ | |||||
/* Don't overwrite dest, if it exists */ | |||||
#define SHM_RENAME_NOREPLACE (1 << 0) | |||||
/* Atomically swap src and dest */ | |||||
#define SHM_RENAME_EXCHANGE (1 << 1) | |||||
/* | |||||
* msync() flags | * msync() flags | ||||
*/ | */ | ||||
#define MS_SYNC 0x0000 /* msync synchronously */ | #define MS_SYNC 0x0000 /* msync synchronously */ | ||||
#define MS_ASYNC 0x0001 /* return immediately */ | #define MS_ASYNC 0x0001 /* return immediately */ | ||||
#define MS_INVALIDATE 0x0002 /* invalidate all cached data */ | #define MS_INVALIDATE 0x0002 /* invalidate all cached data */ | ||||
/* | /* | ||||
* Advice to madvise | * Advice to madvise | ||||
▲ Show 20 Lines • Show All 163 Lines • ▼ Show 20 Lines | |||||
int munmap(void *, size_t); | int munmap(void *, size_t); | ||||
#if __POSIX_VISIBLE >= 200112 | #if __POSIX_VISIBLE >= 200112 | ||||
int posix_madvise(void *, size_t, int); | int posix_madvise(void *, size_t, int); | ||||
#endif | #endif | ||||
#if __POSIX_VISIBLE >= 199309 | #if __POSIX_VISIBLE >= 199309 | ||||
int mlockall(int); | int mlockall(int); | ||||
int munlockall(void); | int munlockall(void); | ||||
int shm_open(const char *, int, mode_t); | int shm_open(const char *, int, mode_t); | ||||
int shm_rename(const char *, const char *, int); | |||||
int shm_unlink(const char *); | int shm_unlink(const char *); | ||||
#endif | #endif | ||||
#if __BSD_VISIBLE | #if __BSD_VISIBLE | ||||
int memfd_create(const char *, unsigned int); | int memfd_create(const char *, unsigned int); | ||||
#endif | #endif | ||||
__END_DECLS | __END_DECLS | ||||
#endif /* !_KERNEL */ | #endif /* !_KERNEL */ | ||||
#endif /* !_SYS_MMAN_H_ */ | #endif /* !_SYS_MMAN_H_ */ |