Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/mman.h
Show All 37 Lines | |||||
#if __BSD_VISIBLE | #if __BSD_VISIBLE | ||||
/* | /* | ||||
* Inheritance for minherit() | * Inheritance for minherit() | ||||
*/ | */ | ||||
#define INHERIT_SHARE 0 | #define INHERIT_SHARE 0 | ||||
#define INHERIT_COPY 1 | #define INHERIT_COPY 1 | ||||
#define INHERIT_NONE 2 | #define INHERIT_NONE 2 | ||||
#define INHERIT_ZERO 3 | |||||
emaste: Can we make this MAP_INHERIT_ZERO (and provide MAP_ versions of the other ones, too)? OpenBSD… | |||||
#endif | #endif | ||||
/* | /* | ||||
* Protections are chosen from these bits, or-ed together | * Protections are chosen from these bits, or-ed together | ||||
*/ | */ | ||||
#define PROT_NONE 0x00 /* no permissions */ | #define PROT_NONE 0x00 /* no permissions */ | ||||
#define PROT_READ 0x01 /* pages can be read */ | #define PROT_READ 0x01 /* pages can be read */ | ||||
#define PROT_WRITE 0x02 /* pages can be written */ | #define PROT_WRITE 0x02 /* pages can be written */ | ||||
▲ Show 20 Lines • Show All 225 Lines • Show Last 20 Lines |
Can we make this MAP_INHERIT_ZERO (and provide MAP_ versions of the other ones, too)? OpenBSD and NetBSD use MAP_*, and there was discussion long ago about using the same #defines in FreeBSD (from before user-visible constants appeared in mman.h)
It would be nice to avoid needing compatibility #defines or #ifdef FreeBSD tests in all of the consumers.