Home
last modified time | relevance | path

Searched refs:prot (Results 1 – 25 of 125) sorted by relevance

12345

/external/clang/test/CXX/class.access/class.access.base/
Dp1.cpp12 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/valgrind/coregrind/
Dpub_core_aspacemgr.h88 ( 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/llvm/lib/Support/Windows/
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 = getProtection(Addr);
226 if (!prot)
229 if (prot == PAGE_NOACCESS) {
[all …]
/external/valgrind/coregrind/m_aspacemgr/
Daspacemgr-linux.c350 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()
1203 Bool is_valid_for( UInt kinds, Addr start, SizeT len, UInt prot ) in is_valid_for() argument
1213 needR = toBool(prot & VKI_PROT_READ); in is_valid_for()
[all …]
Daspacemgr-common.c143 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_()
164 prot, flags, fd, offset); in VG_()
170 prot, flags, fd, offset & 0xffffffff, offset >> 32); in VG_()
176 prot, flags, (UInt)fd, offset); in VG_()
181 res = VG_(do_syscall7)(__NR_mmap64, (UWord)start, length, prot, flags, in VG_()
187 res = VG_(do_syscall6)(__NR_mmap, (UWord)start, length, prot, flags, in VG_()
196 SysRes local_do_mprotect_NO_NOTIFY(Addr start, SizeT length, UInt prot) in local_do_mprotect_NO_NOTIFY() argument
198 return VG_(do_syscall3)(__NR_mprotect, (UWord)start, length, prot ); in local_do_mprotect_NO_NOTIFY()
/external/tcpdump/
Dprint-gre.c114 uint16_t flags, prot; in gre_print_0() local
126 prot = EXTRACT_16BITS(bp); in gre_print_0()
189 tok2str(ethertype_values,"unknown",prot), in gre_print_0()
190 prot)); in gre_print_0()
199 switch (prot) { in gre_print_0()
222 ND_PRINT((ndo, "gre-proto-0x%x", prot)); in gre_print_0()
234 uint16_t flags, prot; in gre_print_1() local
246 prot = EXTRACT_16BITS(bp); in gre_print_1()
283 tok2str(ethertype_values,"unknown",prot), in gre_print_1()
284 prot)); in gre_print_1()
[all …]
Dprint-geneve.c137 uint16_t prot; in geneve_print() local
160 prot = EXTRACT_16BITS(bp); in geneve_print()
181 tok2str(ethertype_values, "unknown", prot), prot)); in geneve_print()
212 if (ethertype_print(ndo, prot, bp, len, len) == 0) { in geneve_print()
213 if (prot == ETHERTYPE_TEB) in geneve_print()
216 ND_PRINT((ndo, "geneve-proto-0x%x", prot)); in geneve_print()
/external/compiler-rt/lib/dfsan/
Ddfsan_interceptors.cc19 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/mesa3d/src/gallium/auxiliary/os/
Dos_mman.h64 static INLINE void *os_mmap(void *addr, size_t length, int prot, int flags, int fd, loff_t offset) in os_mmap() argument
72 return __mmap2(addr, length, prot, flags, fd, (size_t) (offset >> 12)); in os_mmap()
77 # define os_mmap(addr, length, prot, flags, fd, offset) mmap(addr, length, prot, flags, fd, offset)
/external/libdrm/
Dlibdrm_macros.h49 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/v8/src/base/platform/
Dplatform-aix.cc39 static inline void* mmapHelper(size_t len, int prot, int flags, int fildes, in mmapHelper() argument
42 return mmap(addr, len, prot, flags, fildes, off); in mmapHelper()
67 int prot = PROT_READ | PROT_WRITE | (executable ? PROT_EXEC : 0); in Allocate() local
68 void* mbase = mmapHelper(msize, prot, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in Allocate()
221 int prot = PROT_READ | PROT_WRITE; in CommitRegion() local
223 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in CommitRegion()
225 if (mprotect(base, size, prot) == -1) return false; in CommitRegion()
Dplatform-solaris.cc57 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in Allocate() local
58 void* mbase = mmap(NULL, msize, prot, MAP_PRIVATE | MAP_ANON, -1, 0); in Allocate()
178 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in CommitRegion() local
181 prot, in CommitRegion()
Dplatform-linux.cc136 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in Allocate() local
138 void* mbase = mmap(addr, msize, prot, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in Allocate()
352 int prot = PROT_READ | PROT_WRITE; in CommitRegion() local
354 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in CommitRegion()
358 prot, in CommitRegion()
Dplatform-freebsd.cc61 int prot = PROT_READ | PROT_WRITE | (executable ? PROT_EXEC : 0); in Allocate() local
62 void* mbase = mmap(NULL, msize, prot, MAP_PRIVATE | MAP_ANON, -1, 0); in Allocate()
225 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in CommitRegion() local
228 prot, in CommitRegion()
Dplatform-macos.cc58 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in Allocate() local
61 prot, in Allocate()
220 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in CommitRegion() local
223 prot, in CommitRegion()
/external/valgrind/helgrind/tests/
Dtc06_two_races.c9 int unprot1 = 0, unprot2 = 0, prot = 0; variable
16 prot ++; in child_fn()
33 prot ++; in main()
/external/doclava/src/com/google/doclava/apicheck/
DApiFile.java118 boolean prot = false; in parseClass()
134 prot = true; in parseClass()
168 cl = new ClassInfo(null/*classDoc*/, ""/*rawCommentText*/, tokenizer.pos(), pub, prot, in parseClass()
227 boolean prot = false; in parseConstructor()
237 prot = true; in parseConstructor()
255 name, null/*signature*/, cl, cl, pub, prot, pkgpriv, false/*isPrivate*/, false/*isFinal*/, in parseConstructor()
278 boolean prot = false; in parseMethod()
295 prot = true; in parseMethod()
330 name, null/*signature*/, cl, cl, pub, prot, pkgpriv, false/*isPrivate*/, fin, in parseMethod()
356 boolean prot = false; in parseField()
[all …]
/external/clang/test/CodeGen/
D2003-11-18-CondExprLValue.c5 void split_large_page(unsigned long addr, pgprot_t prot) in split_large_page() argument
7 (addr ? prot : ((pgprot_t) { 0x001 } )).pgprot; in split_large_page()
/external/clang/test/CXX/class.access/
Dp4.cpp63 void test(A &a, Public &pub, Protected &prot, Private &priv) { in test() argument
65 a + prot; // expected-error {{'operator+' is a protected member}} in test()
68 a[prot]; // expected-error {{'operator[]' is a protected member}} in test()
71 a(prot); // expected-error {{'operator()' is a protected member}} in test()
77 ca + prot; in test()
82 ca(prot); // expected-error {{'operator void (*)(Protected &)' is a protected member}} in test()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_posix.cc60 uptr end, prot; in GetKernelAreaSize() local
63 /*filename_size*/0, &prot)) { in GetKernelAreaSize()
65 && (prot & MemoryMappingLayout::kProtectionWrite) != 0) in GetKernelAreaSize()
303 uptr s, e, off, prot; in GetCodeRangeForFile() local
306 while (proc_maps.Next(&s, &e, &off, buff.data(), buff.size(), &prot)) { in GetCodeRangeForFile()
307 if ((prot & MemoryMappingLayout::kProtectionExecute) != 0 in GetCodeRangeForFile()
Dsanitizer_libignore.cc59 uptr b, e, off, prot; in OnLibraryLoaded() local
60 while (proc_maps.Next(&b, &e, &off, module.data(), module.size(), &prot)) { in OnLibraryLoaded()
61 if ((prot & MemoryMappingLayout::kProtectionExecute) == 0) in OnLibraryLoaded()
Dsanitizer_procmaps_mac.cc162 uptr cur_beg, cur_end, prot; in DumpListOfModules() local
167 module_name.size(), &prot); in DumpListOfModules()
183 cur_module->addAddressRange(cur_beg, cur_end, prot & kProtectionExecute); in DumpListOfModules()
/external/compiler-rt/lib/tsan/rtl/
Dtsan_platform_posix.cc118 uptr p, end, prot; in CheckAndProtect() local
119 while (proc_maps.Next(&p, &end, 0, 0, 0, &prot)) { in CheckAndProtect()
125 if (prot == 0) // Zero page or mprotected. in CheckAndProtect()
Dtsan_platform_linux.cc178 uptr start, end, offset, prot; in MapRodata() local
180 while (proc_maps.Next(&start, &end, &offset, name, ARRAY_SIZE(name), &prot)) { in MapRodata()
182 && (prot & MemoryMappingLayout::kProtectionRead) in MapRodata()
183 && (prot & MemoryMappingLayout::kProtectionExecute) in MapRodata()
184 && !(prot & MemoryMappingLayout::kProtectionWrite) in MapRodata()
/external/svox/pico/lib/
Dpicopal.c430 pico_status_t picopal_mpr_protect(void *addr, picopal_objsize_t len, picopal_int16 prot) in picopal_mpr_protect() argument
437 if (prot & PICOPAL_PROT_READ) { in picopal_mpr_protect()
438 if (prot & PICOPAL_PROT_WRITE) { in picopal_mpr_protect()
443 } else if (prot & PICOPAL_PROT_WRITE) { in picopal_mpr_protect()
454 prot = prot; /* avoid warning "var not used in this function"*/ in picopal_mpr_protect()

12345