Lines Matching refs:prot
62 int prot; in ffi_closure_alloc() local
76 prot = PROT_READ | PROT_WRITE | PROT_MPROTECT(PROT_EXEC); in ffi_closure_alloc()
77 dataseg = mmap(NULL, rounded_size, prot, MAP_ANON | MAP_PRIVATE, -1, 0); in ffi_closure_alloc()
763 dlmmap_locked (void *start, size_t length, int prot, int flags, off_t offset) in dlmmap_locked() argument
784 ptr = mmap (NULL, length, (prot & ~PROT_WRITE) | PROT_EXEC, in dlmmap_locked()
806 start = mmap (start, length, prot, flags, execfd, offset); in dlmmap_locked()
830 dlmmap (void *start, size_t length, int prot, in dlmmap() argument
836 && prot == (PROT_READ | PROT_WRITE) in dlmmap()
842 ptr = mmap (start, length, prot & ~PROT_EXEC, flags, fd, offset); in dlmmap()
848 ptr = mmap (start, length, prot | PROT_EXEC, flags, fd, offset); in dlmmap()
862 ptr = dlmmap_locked (start, length, prot, flags, offset); in dlmmap()
868 return dlmmap_locked (start, length, prot, flags, offset); in dlmmap()