Searched refs:prot (Results 1 - 7 of 7) sorted by relevance

/fuchsia/zircon/third_party/ulib/musl/src/mman/
H A Dmprotect.c9 int __mprotect(void* addr, size_t len, int prot) { argument
12 zx_prot |= (prot & PROT_READ) ? ZX_VM_PERM_READ : 0;
13 zx_prot |= (prot & PROT_WRITE) ? ZX_VM_PERM_WRITE : 0;
14 zx_prot |= (prot & PROT_EXEC) ? ZX_VM_PERM_EXECUTE : 0;
H A Dmmap.c17 void* __mmap(void* start, size_t len, int prot, int flags, int fd, off_t fd_off) { argument
41 zx_options |= (prot & PROT_READ) ? ZX_VM_PERM_READ : 0;
42 zx_options |= (prot & PROT_WRITE) ? ZX_VM_PERM_WRITE : 0;
43 zx_options |= (prot & PROT_EXEC) ? ZX_VM_PERM_EXECUTE : 0;
/fuchsia/zircon/system/ulib/zx/include/lib/zx/
H A Dvmar.h41 zx_status_t protect(uintptr_t address, size_t len, zx_vm_option_t prot) const {
42 return zx_vmar_protect(get(), prot, address, len);
/fuchsia/zircon/third_party/ulib/jemalloc/src/
H A Dpages.c139 int prot = *commit ? PAGES_PROT_COMMIT : PAGES_PROT_DECOMMIT; local
141 ret = mmap(addr, size, prot, mmap_flags, -1, 0);
240 int prot = commit ? PAGES_PROT_COMMIT : PAGES_PROT_DECOMMIT;
241 void *result = mmap(addr, size, prot, mmap_flags | MAP_FIXED,
/fuchsia/zircon/bootloader/lib/
H A Dxefi.c38 efi_device_path_to_text_protocol* prot; local
39 efi_status status = gBS->LocateProtocol(&DevicePathToTextProtocol, NULL, (void**)&prot);
43 return prot->ConvertDevicePathToText(path, false, false);
/fuchsia/zircon/kernel/syscalls/
H A Dvmar.cpp229 zx_status_t sys_vmar_protect_old(zx_handle_t vmar_handle, zx_vaddr_t addr, uint64_t len, uint32_t prot) { argument
230 return sys_vmar_protect(vmar_handle, prot, addr, len);
/fuchsia/zircon/system/utest/fs/
H A Dtest-mmap.cpp516 bool mmap_crash(int prot, int flags, RW rw) { argument
520 void* addr = mmap(NULL, PAGE_SIZE, prot, flags, fd, 0);

Completed in 45 milliseconds