Lines Matching defs:prot
249 crargs.prot &= ~PROT_EXEC;
453 crargs.prot &= ~PROT_EXEC;
579 vn_a.prot = uprot;
592 int prot, int flags, struct file *fp, offset_t pos)
607 if ((flags & MAP_TEXT) && !(prot & PROT_EXEC)) {
651 uprot = prot | PROT_USER;
743 if ((prot & (PROT_READ | PROT_WRITE | PROT_EXEC)) &&
753 if ((prot & PROT_WRITE) && (type == MAP_SHARED)) {
754 if (prot & (PROT_READ | PROT_EXEC)) {
814 smmap64(caddr_t addr, size_t len, int prot, int flags, int fd, off_t pos)
820 error = smmap_common(&addr, len, prot, flags,
823 error = smmap_common(&addr, len, prot, flags,
839 smmap32(caddr32_t addr, size32_t len, int prot, int flags, int fd, off32_t pos)
848 error = smmap_common(&a, (size_t)len, prot,
851 error = smmap_common(&a, (size_t)len, prot,
877 uint64_t prot;
886 uint32_t prot;
911 error = smmap_common(&a, uap->len, (int)uap->prot,
914 error = smmap_common(&a, uap->len, (int)uap->prot,
951 mprotect(caddr_t addr, size_t len, int prot)
954 uint_t uprot = prot | PROT_USER;
960 switch (valid_usr_range(addr, len, prot, as, as->a_userlimit)) {