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

1234567

/external/clang/test/CodeGen/
H A D2003-11-18-CondExprLValue.c5 void split_large_page(unsigned long addr, pgprot_t prot) argument
7 (addr ? prot : ((pgprot_t) { 0x001 } )).pgprot;
/external/swiftshader/third_party/LLVM/lib/Support/Windows/
H A DMemory.inc85 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
[all...]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/
H A D5-1.c9 * The prot shall be either PROT_NONE or the bitwise-inclusive OR of
17 * specified by prot, the call to mmap() shall fail.
37 int prot; member in struct:testcase
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
[all...]
/external/clang/test/CXX/class.access/class.access.base/
H A Dp1.cpp12 protected: int prot; static int sprot; // expected-note 4 {{declared protected here}} member in class:test0::Base
20 prot++;
27 Base::prot++; member in class:test0::Test::Base
37 t->prot++; // expected-error {{protected member}}
44 t->Base::prot++; // expected-error {{protected member}}
61 protected: int prot; static int sprot; // expected-note 4 {{declared protected here}} member in class:test1::Base
69 prot++;
76 Base::prot++; member in class:test1::Test::Base
86 t->prot++; // expected-error {{protected member}} expected-error {{protected base class}}
94 t->Base::prot
112 int prot; // expected-note {{declared protected here}} \\ member in class:test2::Base
133 Base::prot++; member in class:test2::Test::Base
[all...]
/external/compiler-rt/lib/profile/
H A DWindowsMMap.c32 void *mmap(void *start, size_t length, int prot, int flags, int fd, off_t offset) argument
34 if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC))
43 if (prot & PROT_WRITE) {
44 if (prot & PROT_EXEC)
48 } else if (prot & PROT_EXEC) {
49 if (prot & PROT_READ)
51 else if (prot & PROT_EXEC)
67 if (prot & PROT_WRITE)
71 if (prot & PROT_EXEC)
/external/valgrind/helgrind/tests/
H A Dtc06_two_races.c9 int unprot1 = 0, unprot2 = 0, prot = 0; variable
16 prot ++;
33 prot ++;
/external/clang/test/CodeGenCXX/
H A Ddebug-info-access.cpp21 // CHECK: !DISubprogram(name: "prot",{{.*}} line: [[@LINE+1]],{{.*}} flags: DIFlagProtected | DIFlagPrototyped,
22 void prot();
/external/compiler-rt/lib/dfsan/
H A Ddfsan_interceptors.cc19 INTERCEPTOR(void *, mmap, void *addr, SIZE_T length, int prot, int flags, argument
21 void *res = REAL(mmap)(addr, length, prot, flags, fd, offset);
27 INTERCEPTOR(void *, mmap64, void *addr, SIZE_T length, int prot, int flags, argument
29 void *res = REAL(mmap64)(addr, length, prot, flags, fd, offset);
/external/libdrm/
H A Dlibdrm_macros.h49 static inline void *drm_mmap(void *addr, size_t length, int prot, int flags, argument
58 return mmap64(addr, length, prot, flags, fd, offset);
68 # define drm_mmap(addr, length, prot, flags, fd, offset) \
69 mmap(addr, length, prot, flags, fd, offset)
/external/mesa3d/src/gallium/auxiliary/os/
H A Dos_mman.h61 static inline void *os_mmap(void *addr, size_t length, int prot, int flags, argument
70 return __mmap2(addr, length, prot, flags, fd, (size_t) (offset >> 12));
78 # define os_mmap(addr, length, prot, flags, fd, offset) \
79 mmap(addr, length, prot, flags, fd, offset)
/external/strace/tests/
H A Dremap_file_pages.c44 const unsigned long prot = PROT_READ|PROT_WRITE|PROT_EXEC; local
48 long rc = syscall(__NR_remap_file_pages, addr, size, prot, pgoff, flags);
/external/strace/tests-m32/
H A Dremap_file_pages.c44 const unsigned long prot = PROT_READ|PROT_WRITE|PROT_EXEC; local
48 long rc = syscall(__NR_remap_file_pages, addr, size, prot, pgoff, flags);
/external/strace/tests-mx32/
H A Dremap_file_pages.c44 const unsigned long prot = PROT_READ|PROT_WRITE|PROT_EXEC; local
48 long rc = syscall(__NR_remap_file_pages, addr, size, prot, pgoff, flags);
/external/syslinux/gpxe/src/interface/efi/
H A Defi_init.c59 struct efi_protocol *prot; local
85 for_each_table_entry ( prot, EFI_PROTOCOLS ) {
86 if ( ( efirc = bs->LocateProtocol ( &prot->u.guid, NULL,
87 prot->protocol ) ) == 0 ) {
89 uuid_ntoa ( &prot->u.uuid ), *(prot->protocol));
92 uuid_ntoa ( &prot->u.uuid ) );
/external/llvm/lib/Support/Windows/
H A DMemory.inc208 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
[all...]
/external/valgrind/coregrind/
H A Dpub_core_aspacemgr.h82 valgrind with at least the permissions 'prot' ? To find out
84 VKI_PROT_NONE as 'prot'. Will return False if any part of the
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, UIn
371 UInt prot; // Not used for removed segs. member in struct:__anon24789
[all...]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/munmap/
H A D4-1.c52 int prot; local
74 prot = PROT_READ | PROT_WRITE;
76 pa = mmap(addr, size, prot, flag, fd, off);
97 pa = mmap(addr, size, prot, flag, fd, off);
H A D3-1.c43 int prot; local
72 prot = PROT_READ | PROT_WRITE;
73 pa = mmap(addr, len, prot, flag, fd, off);
H A D9-1.c40 int prot; local
67 prot = PROT_READ | PROT_WRITE;
68 pa = mmap(addr, len, prot, flag, fd, off);
H A D1-1.c56 int prot; local
91 prot = PROT_READ | PROT_WRITE;
92 pa = mmap(addr, len, prot, flag, fd, off);
H A D1-2.c56 int prot; local
91 prot = PROT_READ | PROT_WRITE;
92 pa = mmap(addr, len, prot, flag, fd, off);
/external/tcpdump/
H A Dprint-geneve.c151 uint16_t prot; local
174 prot = EXTRACT_16BITS(bp);
195 tok2str(ethertype_values, "unknown", prot), prot));
226 if (ethertype_print(ndo, prot, bp, len, ndo->ndo_snapend - bp, NULL, NULL) == 0) {
227 if (prot == ETHERTYPE_TEB)
230 ND_PRINT((ndo, "geneve-proto-0x%x", prot));
H A Dprint-gre.c120 uint16_t flags, prot; local
133 prot = EXTRACT_16BITS(bp);
202 tok2str(ethertype_values,"unknown",prot),
203 prot));
212 switch (prot) {
235 ND_PRINT((ndo, "gre-proto-0x%x", prot));
247 uint16_t flags, prot; local
260 prot = EXTRACT_16BITS(bp);
300 tok2str(ethertype_values,"unknown",prot),
301 prot));
[all...]
/external/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_linux_s390.cc30 uptr internal_mmap(void *addr, uptr length, int prot, int flags, int fd, argument
35 unsigned long prot; member in struct:__sanitizer::s390_mmap_params
42 (unsigned long)prot,
/external/ltp/testcases/kernel/mem/vma/
H A Dvma03.c63 static void *mmap2(void *addr, size_t length, int prot,
121 static void *mmap2(void *addr, size_t length, int prot, argument
124 return (void *)syscall(SYS_mmap2, addr, length, prot,

Completed in 881 milliseconds

1234567