Home
last modified time | relevance | path

Searched refs:prot (Results 1 – 25 of 105) 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.h85 ( Addr start, SizeT len, UInt prot );
92 ( Addr start, SizeT len, UInt prot );
164 ( Addr a, SizeT len, UInt prot, UInt flags, Int fd, Off64T offset );
170 extern Bool VG_(am_notify_client_shmat)( Addr a, SizeT len, UInt prot );
181 extern Bool VG_(am_notify_mprotect)( Addr start, SizeT len, UInt prot );
197 ( Addr start, SizeT length, UInt prot, UInt flags, Int fd, Off64T offset);
211 ( Addr start, SizeT length, UInt prot, Int fd, Off64T offset );
213 ( Addr start, SizeT length, UInt prot, Int fd, Off64T offset, const HChar *name );
218 ( Addr start, SizeT length, UInt prot );
223 extern SysRes VG_(am_mmap_anon_float_client) ( SizeT length, Int prot );
[all …]
/external/llvm/lib/Support/Windows/
DMemory.inc200 DWORD prot = getProtection(Addr);
201 if (!prot)
204 if (prot == PAGE_EXECUTE || prot == PAGE_EXECUTE_READ) {
205 prot = PAGE_EXECUTE_READWRITE;
206 } else if (prot == PAGE_NOACCESS || prot == PAGE_READONLY) {
207 prot = PAGE_READWRITE;
212 return ::VirtualProtect(const_cast<LPVOID>(Addr), Size, prot, &oldProt)
217 DWORD prot = getProtection(Addr);
218 if (!prot)
221 if (prot == PAGE_NOACCESS) {
[all …]
/external/tcpdump/
Dprint-gre.c122 u_int16_t flags, prot; in gre_print_0() local
134 prot = EXTRACT_16BITS(bp); in gre_print_0()
197 tok2str(ethertype_values,"unknown",prot), in gre_print_0()
198 prot); in gre_print_0()
207 switch (prot) { in gre_print_0()
232 printf("gre-proto-0x%x", prot); in gre_print_0()
244 u_int16_t flags, prot; in gre_print_1() local
256 prot = EXTRACT_16BITS(bp); in gre_print_1()
293 tok2str(ethertype_values,"unknown",prot), in gre_print_1()
294 prot); in gre_print_1()
[all …]
/external/valgrind/coregrind/m_aspacemgr/
Daspacemgr-linux.c338 void (*record_mapping)( Addr addr, SizeT len, UInt prot,
768 static void sync_check_mapping_callback ( Addr addr, SizeT len, UInt prot, in sync_check_mapping_callback() argument
876 if (sloppyXcheck && (prot & VKI_PROT_EXEC) != 0) { in sync_check_mapping_callback()
880 if (sloppyRcheck && (prot & (VKI_PROT_EXEC | VKI_PROT_READ)) == in sync_check_mapping_callback()
886 && seg_prot == prot in sync_check_mapping_callback()
909 prot & VKI_PROT_READ ? 'r' : '-', in sync_check_mapping_callback()
910 prot & VKI_PROT_WRITE ? 'w' : '-', in sync_check_mapping_callback()
911 prot & VKI_PROT_EXEC ? 'x' : '-', in sync_check_mapping_callback()
1179 Bool is_valid_for( UInt kinds, Addr start, SizeT len, UInt prot ) in is_valid_for() argument
1189 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_()
184 SysRes local_do_mprotect_NO_NOTIFY(Addr start, SizeT length, UInt prot) in local_do_mprotect_NO_NOTIFY() argument
186 return VG_(do_syscall3)(__NR_mprotect, (UWord)start, length, prot ); in local_do_mprotect_NO_NOTIFY()
/external/lldb/tools/debugserver/source/MacOSX/
DMachVMRegion.cpp55 MachVMRegion::SetProtections(mach_vm_address_t addr, mach_vm_size_t size, vm_prot_t prot) in SetProtections() argument
66 if (prot == (m_curr_protection & VM_PROT_ALL)) in SetProtections()
68 …lready sufficient for task 0x%4.4x at address 0x%8.8llx) ", __FUNCTION__, prot, m_task, (uint64_t)… in SetProtections()
74 m_err = ::mach_vm_protect (m_task, addr, prot_size, 0, prot); in SetProtections()
76 …lx, size = %llu, set_max = %i, prot = %u )", m_task, (uint64_t)addr, (uint64_t)prot_size, 0, prot); in SetProtections()
80 m_err = ::mach_vm_protect (m_task, addr, prot_size, 0, prot | VM_PROT_COPY); in SetProtections()
82 …, set_max = %i, prot = %u )", m_task, (uint64_t)addr, (uint64_t)prot_size, 0, prot | VM_PROT_COPY); in SetProtections()
86 m_curr_protection = prot; in SetProtections()
/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/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/libdrm/
Dlibdrm.h51 static inline void *drm_mmap(void *addr, size_t length, int prot, int flags, in drm_mmap() argument
60 return mmap64(addr, length, prot, flags, fd, offset); in drm_mmap()
70 # define drm_mmap(addr, length, prot, flags, fd, offset) \ argument
71 mmap(addr, length, prot, flags, fd, offset)
/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/lldb/source/Plugins/Process/Utility/
DInferiorCallPOSIX.cpp27 addr_t addr, addr_t length, unsigned prot, in InferiorCallMmap() argument
58 if (prot == eMmapProtNone) in InferiorCallMmap()
62 if (prot & eMmapProtExec) in InferiorCallMmap()
64 if (prot & eMmapProtRead) in InferiorCallMmap()
66 if (prot & eMmapProtWrite) in InferiorCallMmap()
/external/lldb/source/Core/
DDataBufferMemoryMap.cpp194 int prot = PROT_READ; in MemoryMapFromFileDescriptor() local
196 prot |= PROT_WRITE; in MemoryMapFromFileDescriptor()
202 m_mmap_addr = (uint8_t *)::mmap(NULL, length, prot, flags, fd, offset); in MemoryMapFromFileDescriptor()
214 …m_mmap_addr = (uint8_t *)::mmap(NULL, length + page_offset, prot, flags, fd, offset - page_offset); in MemoryMapFromFileDescriptor()
/external/doclava/src/com/google/doclava/apicheck/
DApiFile.java116 boolean prot = false; in parseClass()
132 prot = true; in parseClass()
166 cl = new ClassInfo(null/*classDoc*/, ""/*rawCommentText*/, tokenizer.pos(), pub, prot, in parseClass()
225 boolean prot = false; in parseConstructor()
235 prot = true; in parseConstructor()
253 name, null/*signature*/, cl, cl, pub, prot, pkgpriv, false/*isPrivate*/, false/*isFinal*/, in parseConstructor()
276 boolean prot = false; in parseMethod()
292 prot = true; in parseMethod()
323 name, null/*signature*/, cl, cl, pub, prot, pkgpriv, false/*isPrivate*/, fin, in parseMethod()
349 boolean prot = false; in parseField()
[all …]
/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/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/compiler-rt/lib/sanitizer_common/
Dsanitizer_libignore.cc58 uptr b, e, off, prot; in OnLibraryLoaded() local
59 while (proc_maps.Next(&b, &e, &off, module.data(), module.size(), &prot)) { in OnLibraryLoaded()
60 if ((prot & MemoryMappingLayout::kProtectionExecute) == 0) in OnLibraryLoaded()
Dsanitizer_posix.cc59 uptr end, prot; in GetKernelAreaSize() local
62 /*filename_size*/0, &prot)) { in GetKernelAreaSize()
64 && (prot & MemoryMappingLayout::kProtectionWrite) != 0) in GetKernelAreaSize()
365 uptr s, e, off, prot; in GetCodeRangeForFile() local
368 while (proc_maps.Next(&s, &e, &off, buff.data(), buff.size(), &prot)) { in GetCodeRangeForFile()
369 if ((prot & MemoryMappingLayout::kProtectionExecute) != 0 in GetCodeRangeForFile()
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()
Dsanitizer_procmaps_common.cc121 uptr cur_beg, cur_end, cur_offset, prot; in DumpListOfModules() local
126 module_name.size(), &prot); in DumpListOfModules()
147 cur_module->addAddressRange(cur_beg, cur_end, prot & kProtectionExecute); in DumpListOfModules()
/external/valgrind/coregrind/m_ume/
Delf.c184 unsigned prot = 0; in mapelf() local
189 if (ph->p_flags & PF_X) prot |= VKI_PROT_EXEC; in mapelf()
190 if (ph->p_flags & PF_W) prot |= VKI_PROT_WRITE; in mapelf()
191 if (ph->p_flags & PF_R) prot |= VKI_PROT_READ; in mapelf()
211 prot, /*VKI_MAP_FIXED|VKI_MAP_PRIVATE, */ in mapelf()
228 prot in mapelf()
237 if ((prot & VKI_PROT_WRITE) && (bytes > 0)) { in mapelf()
/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()
/external/v8/src/base/platform/
Dplatform-solaris.cc77 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in Allocate() local
78 void* mbase = mmap(NULL, msize, prot, MAP_PRIVATE | MAP_ANON, -1, 0); in Allocate()
246 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in CommitRegion() local
249 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()
407 int prot = PROT_READ | PROT_WRITE; in CommitRegion() local
409 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in CommitRegion()
413 prot, in CommitRegion()
/external/skia/platform_tools/android/third_party/ashmem/cutils/
Dashmem-dev.c70 int ashmem_set_prot_region(int fd, int prot) in ashmem_set_prot_region() argument
72 return ioctl(fd, ASHMEM_SET_PROT_MASK, prot); in ashmem_set_prot_region()

12345