Changeset View
Changeset View
Standalone View
Standalone View
head/sys/vm/vm_mmap.c
Show First 20 Lines • Show All 216 Lines • ▼ Show 20 Lines | #endif | ||||
flags = uap->flags; | flags = uap->flags; | ||||
pos = uap->pos; | pos = uap->pos; | ||||
fp = NULL; | fp = NULL; | ||||
/* | /* | ||||
* Ignore old flags that used to be defined but did not do anything. | * Ignore old flags that used to be defined but did not do anything. | ||||
*/ | */ | ||||
if (td->td_proc->p_osrel < P_OSREL_MAP_RENAME) | |||||
flags &= ~(MAP_RESERVED0020 | MAP_RESERVED0040); | flags &= ~(MAP_RESERVED0020 | MAP_RESERVED0040); | ||||
/* | /* | ||||
* Enforce the constraints. | * Enforce the constraints. | ||||
* Mapping of length 0 is only allowed for old binaries. | * Mapping of length 0 is only allowed for old binaries. | ||||
* Anonymous mapping shall specify -1 as filedescriptor and | * Anonymous mapping shall specify -1 as filedescriptor and | ||||
* zero position for new code. Be nice to ancient a.out | * zero position for new code. Be nice to ancient a.out | ||||
* binaries and correct pos for anonymous mapping, since old | * binaries and correct pos for anonymous mapping, since old | ||||
* ld.so sometimes issues anonymous map requests with non-zero | * ld.so sometimes issues anonymous map requests with non-zero | ||||
▲ Show 20 Lines • Show All 1,489 Lines • Show Last 20 Lines |