Lines Matching refs:prot
62 static void linux_fixup_prot(struct thread *td, int *prot);
67 linux_mmap_common(struct thread *td, uintptr_t addr, size_t len, int prot, in linux_mmap_common() argument
76 addr, len, prot, flags, fd, pos); in linux_mmap_common()
115 linux_fixup_prot(td, &prot); in linux_mmap_common()
214 error = kern_mmap(td, addr, len, prot, in linux_mmap_common()
220 error = kern_mmap(td, addr, len, prot, bsd_flags, fd, pos); in linux_mmap_common()
228 linux_mprotect_common(struct thread *td, uintptr_t addr, size_t len, int prot) in linux_mprotect_common() argument
232 prot &= ~(LINUX_PROT_GROWSDOWN | LINUX_PROT_GROWSUP); in linux_mprotect_common()
233 if ((prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC)) != 0) in linux_mprotect_common()
237 linux_fixup_prot(td, &prot); in linux_mprotect_common()
239 return (kern_mprotect(td, addr, len, prot)); in linux_mprotect_common()
244 linux_fixup_prot(struct thread *td, int *prot) in linux_fixup_prot() argument
248 if (SV_PROC_FLAG(td->td_proc, SV_ILP32) && *prot & PROT_READ) { in linux_fixup_prot()
251 *prot |= PROT_EXEC; in linux_fixup_prot()