/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/ |
D | 5-1.c | 37 int prot; member 42 {.flags = MAP_SHARED,.prot = PROT_NONE}, 43 {.flags = MAP_SHARED,.prot = PROT_READ}, 44 {.flags = MAP_SHARED,.prot = PROT_WRITE}, 45 {.flags = MAP_SHARED,.prot = PROT_EXEC}, 46 {.flags = MAP_SHARED,.prot = PROT_READ | PROT_WRITE}, 47 {.flags = MAP_SHARED,.prot = PROT_READ | PROT_EXEC}, 48 {.flags = MAP_SHARED,.prot = PROT_EXEC | PROT_WRITE}, 49 {.flags = MAP_SHARED,.prot = PROT_READ | PROT_WRITE | PROT_EXEC}, 51 {.flags = MAP_PRIVATE,.prot = PROT_NONE}, [all …]
|
/external/clang/test/CXX/class.access/class.access.base/ |
D | p1.cpp | 12 protected: int prot; static int sprot; // expected-note 4 {{declared protected here}} member in test0::Base 20 prot++; in test() 27 Base::prot++; in test() 37 t->prot++; // expected-error {{protected member}} in test() 44 t->Base::prot++; // expected-error {{protected member}} in test() 61 protected: int prot; static int sprot; // expected-note 4 {{declared protected here}} member in test1::Base 69 prot++; in test() 76 Base::prot++; in test() 86 t->prot++; // expected-error {{protected member}} expected-error {{protected base class}} in test() 94 … t->Base::prot++; // expected-error 2 {{protected member}} expected-error {{protected base class}} in test() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Support/Windows/ |
D | Memory.inc | 85 DWORD prot = getProtection(Addr); 86 if (!prot) 89 if (prot == PAGE_EXECUTE || prot == PAGE_EXECUTE_READ) { 90 prot = PAGE_EXECUTE_READWRITE; 91 } else if (prot == PAGE_NOACCESS || prot == PAGE_READONLY) { 92 prot = PAGE_READWRITE; 97 return ::VirtualProtect(const_cast<LPVOID>(Addr), Size, prot, &oldProt) 102 DWORD prot = getProtection(Addr); 103 if (!prot) 106 if (prot == PAGE_NOACCESS) { [all …]
|
/external/valgrind/coregrind/ |
D | pub_core_aspacemgr.h | 88 ( Addr start, SizeT len, UInt prot ); 95 ( Addr start, SizeT len, UInt prot ); 173 ( Addr a, SizeT len, UInt prot, UInt flags, Int fd, Off64T offset ); 179 extern Bool VG_(am_notify_client_shmat)( Addr a, SizeT len, UInt prot ); 190 extern Bool VG_(am_notify_mprotect)( Addr start, SizeT len, UInt prot ); 206 ( Addr start, SizeT length, UInt prot, UInt flags, Int fd, Off64T offset); 220 ( Addr start, SizeT length, UInt prot, Int fd, Off64T offset ); 222 ( Addr start, SizeT length, UInt prot, UInt flags, Int fd, Off64T offset ); 224 ( Addr start, SizeT length, UInt prot, Int fd, 227 ( Addr start, SizeT length, UInt prot, UInt flags, Int fd, [all …]
|
/external/compiler-rt/lib/profile/ |
D | WindowsMMap.c | 32 void *mmap(void *start, size_t length, int prot, int flags, int fd, off_t offset) in mmap() argument 34 if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC)) in mmap() 43 if (prot & PROT_WRITE) { in mmap() 44 if (prot & PROT_EXEC) in mmap() 48 } else if (prot & PROT_EXEC) { in mmap() 49 if (prot & PROT_READ) in mmap() 51 else if (prot & PROT_EXEC) in mmap() 67 if (prot & PROT_WRITE) in mmap() 71 if (prot & PROT_EXEC) in mmap()
|
/external/strace/tests-m32/ |
D | remap_file_pages.c | 45 const kernel_ulong_t prot, in k_remap_file_pages() argument 50 addr, size, prot, pgoff, flags); in k_remap_file_pages() 60 kernel_ulong_t prot = PROT_READ|PROT_WRITE|PROT_EXEC; in main() local 64 k_remap_file_pages(addr, size, prot, pgoff, flags); in main() 79 prot = (kernel_ulong_t) 0xdefaced00000000ULL | PROT_NONE; in main() 82 k_remap_file_pages(addr, size, prot, pgoff, flags); in main() 88 prot == PROT_NONE ? "PROT_NONE" : in main()
|
/external/strace/tests/ |
D | remap_file_pages.c | 45 const kernel_ulong_t prot, in k_remap_file_pages() argument 50 addr, size, prot, pgoff, flags); in k_remap_file_pages() 60 kernel_ulong_t prot = PROT_READ|PROT_WRITE|PROT_EXEC; in main() local 64 k_remap_file_pages(addr, size, prot, pgoff, flags); in main() 79 prot = (kernel_ulong_t) 0xdefaced00000000ULL | PROT_NONE; in main() 82 k_remap_file_pages(addr, size, prot, pgoff, flags); in main() 88 prot == PROT_NONE ? "PROT_NONE" : in main()
|
/external/strace/tests-mx32/ |
D | remap_file_pages.c | 45 const kernel_ulong_t prot, in k_remap_file_pages() argument 50 addr, size, prot, pgoff, flags); in k_remap_file_pages() 60 kernel_ulong_t prot = PROT_READ|PROT_WRITE|PROT_EXEC; in main() local 64 k_remap_file_pages(addr, size, prot, pgoff, flags); in main() 79 prot = (kernel_ulong_t) 0xdefaced00000000ULL | PROT_NONE; in main() 82 k_remap_file_pages(addr, size, prot, pgoff, flags); in main() 88 prot == PROT_NONE ? "PROT_NONE" : in main()
|
/external/valgrind/coregrind/m_aspacemgr/ |
D | aspacemgr-linux.c | 350 void (*record_mapping)( Addr addr, SizeT len, UInt prot, 780 static void sync_check_mapping_callback ( Addr addr, SizeT len, UInt prot, in sync_check_mapping_callback() argument 888 if (sloppyXcheck && (prot & VKI_PROT_EXEC) != 0) { in sync_check_mapping_callback() 892 if (sloppyRcheck && (prot & (VKI_PROT_EXEC | VKI_PROT_READ)) == in sync_check_mapping_callback() 898 && seg_prot == prot in sync_check_mapping_callback() 921 prot & VKI_PROT_READ ? 'r' : '-', in sync_check_mapping_callback() 922 prot & VKI_PROT_WRITE ? 'w' : '-', in sync_check_mapping_callback() 923 prot & VKI_PROT_EXEC ? 'x' : '-', in sync_check_mapping_callback() 1206 Bool is_valid_for( UInt kinds, Addr start, SizeT len, UInt prot ) in is_valid_for() argument 1216 needR = toBool(prot & VKI_PROT_READ); in is_valid_for() [all …]
|
D | aspacemgr-common.c | 143 SysRes VG_(am_do_mmap_NO_NOTIFY)( Addr start, SizeT length, UInt prot, in VG_() 151 prot, flags, fd, offset); in VG_() 157 prot, flags, fd, offset / 4096); in VG_() 163 prot, flags, fd, offset); in VG_() 169 prot, flags, fd, offset & 0xffffffff, offset >> 32); in VG_() 175 prot, flags, (UInt)fd, offset); in VG_() 180 res = VG_(do_syscall7)(__NR_mmap64, (UWord)start, length, prot, flags, in VG_() 186 res = VG_(do_syscall6)(__NR_mmap, (UWord)start, length, prot, flags, in VG_() 195 SysRes local_do_mprotect_NO_NOTIFY(Addr start, SizeT length, UInt prot) in local_do_mprotect_NO_NOTIFY() argument 197 return VG_(do_syscall3)(__NR_mprotect, (UWord)start, length, prot ); in local_do_mprotect_NO_NOTIFY()
|
/external/llvm/lib/Support/Windows/ |
D | Memory.inc | 208 DWORD prot = getProtection(Addr); 209 if (!prot) 212 if (prot == PAGE_EXECUTE || prot == PAGE_EXECUTE_READ) { 213 prot = PAGE_EXECUTE_READWRITE; 214 } else if (prot == PAGE_NOACCESS || prot == PAGE_READONLY) { 215 prot = PAGE_READWRITE; 220 return ::VirtualProtect(const_cast<LPVOID>(Addr), Size, prot, &oldProt) 225 DWORD prot = getProtection(Addr); 226 if (!prot) 229 if (prot == PAGE_NOACCESS) { [all …]
|
/external/syslinux/gpxe/src/interface/efi/ |
D | efi_init.c | 59 struct efi_protocol *prot; in efi_init() local 85 for_each_table_entry ( prot, EFI_PROTOCOLS ) { in efi_init() 86 if ( ( efirc = bs->LocateProtocol ( &prot->u.guid, NULL, in efi_init() 87 prot->protocol ) ) == 0 ) { in efi_init() 89 uuid_ntoa ( &prot->u.uuid ), *(prot->protocol)); in efi_init() 92 uuid_ntoa ( &prot->u.uuid ) ); in efi_init()
|
/external/tcpdump/ |
D | print-gre.c | 120 uint16_t flags, prot; in gre_print_0() local 133 prot = EXTRACT_16BITS(bp); in gre_print_0() 202 tok2str(ethertype_values,"unknown",prot), in gre_print_0() 203 prot)); in gre_print_0() 212 switch (prot) { in gre_print_0() 235 ND_PRINT((ndo, "gre-proto-0x%x", prot)); in gre_print_0() 247 uint16_t flags, prot; in gre_print_1() local 260 prot = EXTRACT_16BITS(bp); in gre_print_1() 300 tok2str(ethertype_values,"unknown",prot), in gre_print_1() 301 prot)); in gre_print_1() [all …]
|
D | print-geneve.c | 151 uint16_t prot; in geneve_print() local 174 prot = EXTRACT_16BITS(bp); in geneve_print() 195 tok2str(ethertype_values, "unknown", prot), prot)); in geneve_print() 226 if (ethertype_print(ndo, prot, bp, len, ndo->ndo_snapend - bp, NULL, NULL) == 0) { in geneve_print() 227 if (prot == ETHERTYPE_TEB) in geneve_print() 230 ND_PRINT((ndo, "geneve-proto-0x%x", prot)); in geneve_print()
|
/external/ltp/testcases/kernel/syscalls/memfd_create/ |
D | memfd_create_common.h | 41 #define CHECK_MMAP(addr, length, prot, flags, fd, offset) \ argument 42 check_mmap(__FILE__, __LINE__, (addr), (length), (prot), \ 45 #define CHECK_MMAP_FAIL(addr, length, prot, flags, fd, offset) \ argument 46 check_mmap_fail(__FILE__, __LINE__, (addr), (length), (prot), \ 121 int prot, int flags, int fd, off_t offset); 123 size_t length, int prot, int flags, int fd, off_t offset); 130 size_t length, int prot);
|
D | memfd_create_common.c | 183 int prot, int flags, int fd, off_t offset) in check_mmap() argument 187 p = safe_mmap(file, lineno, addr, length, prot, flags, fd, offset); in check_mmap() 191 length, prot, flags, fd, (long)offset); in check_mmap() 197 size_t length, int prot, int flags, int fd, off_t offset) in check_mmap_fail() argument 199 if (mmap(addr, length, prot, flags, fd, offset) != MAP_FAILED) { in check_mmap_fail() 203 addr, length, prot, flags, fd, (long)offset); in check_mmap_fail() 210 addr, length, prot, flags, fd, (long)offset); in check_mmap_fail() 234 size_t length, int prot) in check_mprotect() argument 236 if (mprotect(addr, length, prot) < 0) { in check_mprotect() 238 "mprotect(%p, %zu, %d) failed", addr, length, prot); in check_mprotect() [all …]
|
/external/compiler-rt/lib/dfsan/ |
D | dfsan_interceptors.cc | 19 INTERCEPTOR(void *, mmap, void *addr, SIZE_T length, int prot, int flags, in INTERCEPTOR() argument 21 void *res = REAL(mmap)(addr, length, prot, flags, fd, offset); in INTERCEPTOR() 27 INTERCEPTOR(void *, mmap64, void *addr, SIZE_T length, int prot, int flags, in INTERCEPTOR() argument 29 void *res = REAL(mmap64)(addr, length, prot, flags, fd, offset); in INTERCEPTOR()
|
/external/libdrm/ |
D | libdrm_macros.h | 49 static inline void *drm_mmap(void *addr, size_t length, int prot, int flags, in drm_mmap() argument 58 return mmap64(addr, length, prot, flags, fd, offset); in drm_mmap() 68 # define drm_mmap(addr, length, prot, flags, fd, offset) \ argument 69 mmap(addr, length, prot, flags, fd, offset)
|
/external/mesa3d/src/gallium/auxiliary/os/ |
D | os_mman.h | 61 static inline void *os_mmap(void *addr, size_t length, int prot, int flags, in os_mmap() argument 70 return __mmap2(addr, length, prot, flags, fd, (size_t) (offset >> 12)); in os_mmap() 78 # define os_mmap(addr, length, prot, flags, fd, offset) \ 79 mmap(addr, length, prot, flags, fd, offset)
|
/external/libffi/src/ |
D | closures.c | 458 dlmmap_locked (void *start, size_t length, int prot, int flags, off_t offset) in dlmmap_locked() argument 479 ptr = mmap (NULL, length, (prot & ~PROT_WRITE) | PROT_EXEC, in dlmmap_locked() 495 start = mmap (start, length, prot, flags, execfd, offset); in dlmmap_locked() 514 dlmmap (void *start, size_t length, int prot, in dlmmap() argument 520 && prot == (PROT_READ | PROT_WRITE) in dlmmap() 530 ptr = mmap (start, length, prot & ~PROT_EXEC, flags, fd, offset); in dlmmap() 536 ptr = mmap (start, length, prot | PROT_EXEC, flags, fd, offset); in dlmmap() 550 ptr = dlmmap_locked (start, length, prot, flags, offset); in dlmmap() 556 return dlmmap_locked (start, length, prot, flags, offset); in dlmmap()
|
/external/python/cpython3/Modules/_ctypes/libffi/src/ |
D | closures.c | 430 dlmmap_locked (void *start, size_t length, int prot, int flags, off_t offset) in dlmmap_locked() argument 451 ptr = mmap (NULL, length, (prot & ~PROT_WRITE) | PROT_EXEC, in dlmmap_locked() 467 start = mmap (start, length, prot, flags, execfd, offset); in dlmmap_locked() 486 dlmmap (void *start, size_t length, int prot, in dlmmap() argument 492 && prot == (PROT_READ | PROT_WRITE) in dlmmap() 502 ptr = mmap (start, length, prot & ~PROT_EXEC, flags, fd, offset); in dlmmap() 508 ptr = mmap (start, length, prot | PROT_EXEC, flags, fd, offset); in dlmmap() 522 ptr = dlmmap_locked (start, length, prot, flags, offset); in dlmmap() 528 return dlmmap_locked (start, length, prot, flags, offset); in dlmmap()
|
/external/python/cpython2/Modules/_ctypes/libffi/src/ |
D | closures.c | 430 dlmmap_locked (void *start, size_t length, int prot, int flags, off_t offset) in dlmmap_locked() argument 451 ptr = mmap (NULL, length, (prot & ~PROT_WRITE) | PROT_EXEC, in dlmmap_locked() 467 start = mmap (start, length, prot, flags, execfd, offset); in dlmmap_locked() 486 dlmmap (void *start, size_t length, int prot, in dlmmap() argument 492 && prot == (PROT_READ | PROT_WRITE) in dlmmap() 502 ptr = mmap (start, length, prot & ~PROT_EXEC, flags, fd, offset); in dlmmap() 508 ptr = mmap (start, length, prot | PROT_EXEC, flags, fd, offset); in dlmmap() 522 ptr = dlmmap_locked (start, length, prot, flags, offset); in dlmmap() 528 return dlmmap_locked (start, length, prot, flags, offset); in dlmmap()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/munmap/ |
D | 4-1.c | 52 int prot; in main() local 74 prot = PROT_READ | PROT_WRITE; in main() 76 pa = mmap(addr, size, prot, flag, fd, off); in main() 97 pa = mmap(addr, size, prot, flag, fd, off); in main()
|
/external/linux-kselftest/tools/testing/selftests/x86/ |
D | protection_keys.c | 771 void *malloc_pkey_with_mprotect(long size, int prot, u16 pkey) in malloc_pkey_with_mprotect() argument 778 size, prot, pkey); in malloc_pkey_with_mprotect() 780 ptr = mmap(NULL, size, prot, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0); in malloc_pkey_with_mprotect() 782 ret = mprotect_pkey((void *)ptr, PAGE_SIZE, prot, pkey); in malloc_pkey_with_mprotect() 791 void *malloc_pkey_anon_huge(long size, int prot, u16 pkey) in malloc_pkey_anon_huge() argument 797 size, prot, pkey); in malloc_pkey_anon_huge() 806 mprotect_pkey(ptr, size, prot, pkey); in malloc_pkey_anon_huge() 863 void *malloc_pkey_hugetlb(long size, int prot, u16 pkey) in malloc_pkey_hugetlb() argument 871 dprintf1("doing %s(%ld, %x, %x)\n", __func__, size, prot, pkey); in malloc_pkey_hugetlb() 876 mprotect_pkey(ptr, size, prot, pkey); in malloc_pkey_hugetlb() [all …]
|
/external/valgrind/helgrind/tests/ |
D | tc06_two_races.c | 9 int unprot1 = 0, unprot2 = 0, prot = 0; variable 16 prot ++; in child_fn() 33 prot ++; in main()
|