/bionic/libc/bionic/ |
D | mmap.cpp | 44 void* mmap64(void* addr, size_t size, int prot, int flags, int fd, off64_t offset) { in mmap64() argument 61 void* result = __mmap2(addr, size, prot, flags, fd, offset >> MMAP2_SHIFT); in mmap64() 75 void* mmap(void* addr, size_t size, int prot, int flags, int fd, off_t offset) { in mmap() argument 76 return mmap64(addr, size, prot, flags, fd, static_cast<off64_t>(offset)); in mmap()
|
D | atexit.cpp | 159 const int prot = PROT_READ | (writable ? PROT_WRITE : 0); in set_writable() local 160 if (mprotect(reinterpret_cast<char*>(array_) + start_byte, byte_len, prot) != 0) { in set_writable()
|
/bionic/linker/ |
D | linker_block_allocator.h | 51 void protect_all(int prot); 91 void protect_all(int prot) { block_allocator_.protect_all(prot); } in protect_all() argument
|
D | linker_block_allocator.cpp | 111 void LinkerBlockAllocator::protect_all(int prot) { in protect_all() argument 113 if (mprotect(page, kAllocateSize, prot) == -1) { in protect_all() 114 async_safe_fatal("mprotect(%p, %zu, %d) failed: %m", page, kAllocateSize, prot); in protect_all()
|
D | linker_phdr.cpp | 725 int prot = PFLAGS_TO_PROT(phdr->p_flags); in LoadSegments() local 726 if ((prot & (PROT_EXEC | PROT_WRITE)) == (PROT_EXEC | PROT_WRITE)) { in LoadSegments() 741 prot, in LoadSegments() 806 int prot = PFLAGS_TO_PROT(phdr->p_flags) | extra_prot_flags; in _phdr_table_set_load_prot() local 807 if ((prot & PROT_WRITE) != 0) { in _phdr_table_set_load_prot() 809 prot &= ~PROT_EXEC; in _phdr_table_set_load_prot() 812 if ((prot & PROT_EXEC) == 0) { in _phdr_table_set_load_prot() 815 prot &= ~PROT_BTI; in _phdr_table_set_load_prot() 820 mprotect(reinterpret_cast<void*>(seg_page_start), seg_page_end - seg_page_start, prot); in _phdr_table_set_load_prot() 845 int prot = 0; in phdr_table_protect_segments() local [all …]
|
/bionic/libc/private/ |
D | WriteProtected.h | 76 void set_protection(int prot) { in set_protection() argument 83 if (mprotect(reinterpret_cast<void*>(addr), PAGE_SIZE, prot) == -1) { in set_protection() 84 async_safe_fatal("WriteProtected mprotect %x failed: %s", prot, strerror(errno)); in set_protection()
|
/bionic/tests/ |
D | utils.h | 121 char prot[5]; // sizeof("rwxp") in parse_maps() local 123 &record.addr_start, &record.addr_end, prot, &record.offset, in parse_maps() 126 if (prot[0] == 'r') { in parse_maps() 129 if (prot[1] == 'w') { in parse_maps() 132 if (prot[2] == 'x') { in parse_maps()
|
D | buffer_tests.cpp | 234 static int MprotectHeap(void* addr, size_t len, int prot) { in MprotectHeap() argument 235 return mprotect(untag_address(addr), len, prot); in MprotectHeap()
|
D | pthread_test.cpp | 2835 int prot = PROT_NONE; in TEST() local 2837 void* page = mmap(nullptr, kPageSize, prot, MAP_ANON|MAP_PRIVATE, -1, 0); in TEST() 2840 prot = (prot == PROT_NONE) ? PROT_READ : PROT_NONE; in TEST()
|
/bionic/libc/ |
D | SECCOMP_ALLOWLIST_APP.TXT | 43 int remap_file_pages(void *addr, size_t size, int prot, size_t pgoff, int flags) lp32 49 void* mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset) x86
|
/bionic/libc/kernel/uapi/linux/ |
D | agpgart.h | 62 int prot; member
|
D | scif_ioctl.h | 45 __s32 prot; member
|
/bionic/libc/upstream-freebsd/lib/libc/gen/ |
D | glob.c | 192 Char *bufnext, *bufend, patbuf[MAXPATHLEN], prot; in glob() local 239 prot = M_PROTECT; in glob() 241 prot = 0; in glob() 249 *bufnext++ = wc | prot; in glob()
|