Home
last modified time | relevance | path

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

123

/llvm-project-15.0.7/clang/test/CXX/class.access/class.access.base/
H A Dp1.cpp20 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()
69 prot++; in test()
76 Base::prot++; in test()
86 t->prot++; // expected-error {{protected member}} in test()
112 int prot; // expected-note {{declared protected here}} \ member in test2::Base
126 prot++; in test()
133 Base::prot++; in test()
[all …]
/llvm-project-15.0.7/compiler-rt/lib/profile/
H A DWindowsMMap.c28 void *mmap(void *start, size_t length, int prot, int flags, int fd, off_t offset) in mmap() argument
30 if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC)) in mmap()
39 if (prot & PROT_WRITE) { in mmap()
40 if (prot & PROT_EXEC) in mmap()
44 } else if (prot & PROT_EXEC) { in mmap()
45 if (prot & PROT_READ) in mmap()
47 else if (prot & PROT_EXEC) in mmap()
63 if (prot & PROT_WRITE) in mmap()
67 if (prot & PROT_EXEC) in mmap()
/llvm-project-15.0.7/compiler-rt/lib/safestack/
H A Dsafestack_platform.h93 inline void *Mmap(void *addr, size_t length, int prot, int flags, int fd, in Mmap() argument
96 return __mmap(addr, length, prot, flags, fd, 0, offset); in Mmap()
98 return (void *)__syscall(SYS_mmap, addr, length, prot, flags, fd, offset); in Mmap()
100 return (void *)syscall(SYS_mmap, addr, length, prot, flags, fd, offset); in Mmap()
113 inline int Mprotect(void *addr, size_t length, int prot) { in Mprotect() argument
116 return _REAL(mprotect, addr, length, prot); in Mprotect()
118 return syscall(SYS_mprotect, addr, length, prot); in Mprotect()
/llvm-project-15.0.7/compiler-rt/lib/dfsan/
H A Ddfsan_interceptors.cpp132 INTERCEPTOR(void *, mmap, void *addr, SIZE_T length, int prot, int flags, in INTERCEPTOR() argument
135 ReportMmapWriteExec(prot, flags); in INTERCEPTOR()
137 return (void *)internal_mmap(addr, length, prot, flags, fd, offset); in INTERCEPTOR()
138 COMMON_INTERCEPTOR_ENTER(mmap, addr, length, prot, flags, fd, offset); in INTERCEPTOR()
139 void *res = REAL(mmap)(addr, length, prot, flags, fd, offset); in INTERCEPTOR()
146 INTERCEPTOR(void *, mmap64, void *addr, SIZE_T length, int prot, int flags, in INTERCEPTOR() argument
149 ReportMmapWriteExec(prot, flags); in INTERCEPTOR()
151 return (void *)internal_mmap(addr, length, prot, flags, fd, offset); in INTERCEPTOR()
152 COMMON_INTERCEPTOR_ENTER(mmap64, addr, length, prot, flags, fd, offset); in INTERCEPTOR()
153 void *res = REAL(mmap64)(addr, length, prot, flags, fd, offset); in INTERCEPTOR()
/llvm-project-15.0.7/lldb/tools/debugserver/source/MacOSX/
H A DMachVMRegion.cpp45 vm_prot_t prot) { in SetProtections() argument
53 if (prot == (m_curr_protection & VM_PROT_ALL)) { in SetProtections()
57 __FUNCTION__, prot, m_task, (uint64_t)addr); in SetProtections()
61 m_err = ::mach_vm_protect(m_task, addr, prot_size, 0, prot); in SetProtections()
66 prot); in SetProtections()
70 prot | VM_PROT_COPY); in SetProtections()
76 prot | VM_PROT_COPY); in SetProtections()
79 m_curr_protection = prot; in SetProtections()
/llvm-project-15.0.7/flang/test/Semantics/
H A Dmodifiable01.f905 real, protected :: prot variable
13 prot = 0. ! ok
19 use prot
57 prot = 0.
H A Dresolve57.f9026 real, protected :: prot variable
33 do concurrent (i=1:5) local(prot)
43 do concurrent (i=1:5) local(prot)
110 real, protected :: prot variable
/llvm-project-15.0.7/clang/test/CodeCompletion/
H A Daccessibility.cpp5 int prot; member in X
14 static int prot; member in Unrelated
79 static int prot; member in Outer
/llvm-project-15.0.7/lldb/source/Plugins/Process/Utility/
H A DInferiorCallPOSIX.cpp38 addr_t addr, addr_t length, unsigned prot, in InferiorCallMmap() argument
69 if (prot == eMmapProtNone) in InferiorCallMmap()
73 if (prot & eMmapProtExec) in InferiorCallMmap()
75 if (prot & eMmapProtRead) in InferiorCallMmap()
77 if (prot & eMmapProtWrite) in InferiorCallMmap()
/llvm-project-15.0.7/clang/test/CodeGen/
H A 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()
/llvm-project-15.0.7/clang/test/Analysis/
H A Dstd-c-library-posix-crash.c12 void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset);
13 void *mmap64(void *addr, size_t length, int prot, int flags, int fd, off64_t offset);
H A Dmmap-writeexec.c35 int prot = PROT_WRITE | PROT_EXEC; in f2() local
36 …(void)callm(NULL, 1024, prot, MAP_PRIVATE | MAP_ANON, -1, 0); // expected-warning{{Both PROT_WRITE… in f2()
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dwarn-thread-safety-negative.cpp124 void prot() EXCLUSIVE_LOCKS_REQUIRED(!protectedMutex);
128 prot(); in test()
144 x.prot(); in testStaticMembers()
/llvm-project-15.0.7/libc/src/sys/mman/linux/
H A Dmmap.cpp23 (void *addr, size_t size, int prot, int flags, int fd,
44 prot, flags, fd, offset);
/llvm-project-15.0.7/clang/test/CXX/class.access/
H A Dp4.cpp68 void test(A &a, Public &pub, Protected &prot, Private &priv) { in test() argument
70 a + prot; // expected-error {{'operator+' is a protected member}} in test()
73 a[prot]; // expected-error {{'operator[]' is a protected member}} in test()
76 a(prot); // expected-error {{'operator()' is a protected member}} in test()
82 ca + prot; in test()
87 ca(prot); // expected-error {{'operator void (*)(Protected &)' is a protected member}} in test()
H A Dp6.cpp48 Protected prot = a; // expected-error {{'operator Protected' is a protected member}} in test() local
51 A aprot = prot; // expected-error {{protected constructor}} in test()
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_linux_s390.cpp30 uptr internal_mmap(void *addr, uptr length, int prot, int flags, int fd, in internal_mmap() argument
35 unsigned long prot; in internal_mmap() member
42 (unsigned long)prot, in internal_mmap()
H A Dsanitizer_solaris.cpp65 int prot, int flags, int fd, OFF_T offset) { in DECLARE__REAL_AND_INTERNAL64() argument
66 return (uptr)_REAL64(mmap)(addr, length, prot, flags, fd, offset); in DECLARE__REAL_AND_INTERNAL64()
73 DECLARE__REAL_AND_INTERNAL(int, mprotect, void *addr, uptr length, int prot) { in DECLARE__REAL_AND_INTERNAL() argument
74 return _REAL(mprotect)(addr, length, prot); in DECLARE__REAL_AND_INTERNAL()
H A Dsanitizer_posix.h37 uptr internal_mmap(void *addr, uptr length, int prot, int flags,
44 int internal_mprotect(void *addr, uptr length, int prot);
113 uptr MmapNamed(void *addr, uptr length, int prot, int flags, const char *name);
/llvm-project-15.0.7/lldb/test/API/linux/aarch64/mte_tag_access/
H A Dmain.c14 char *checked_mmap(size_t page_size, int prot) { in checked_mmap() argument
15 char *ptr = mmap(0, page_size, prot, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in checked_mmap()
/llvm-project-15.0.7/llvm/test/CodeGen/X86/
H A Dphi-immediate-factoring.ll2 ; RUN: llc < %s -disable-preheader-prot=true -stats 2>&1 | grep "Number of blocks eliminated" | gr…
3 ; RUN: llc < %s -disable-preheader-prot=true -stats -cgp-freq-ratio-to-skip-merge=10 2>&1 | grep "…
4 ; RUN: llc < %s -disable-preheader-prot=false -stats 2>&1 | grep "Number of blocks eliminated" | gr…
/llvm-project-15.0.7/lldb/source/Plugins/Platform/QemuUser/
H A DPlatformQemuUser.h52 lldb::addr_t length, unsigned prot, in GetMmapArgumentList() argument
56 arch, addr, length, prot, flags, fd, offset); in GetMmapArgumentList()
/llvm-project-15.0.7/bolt/runtime/
H A Dcommon.h162 void *__mmap(uint64_t addr, uint64_t size, uint64_t prot, uint64_t flags, in __mmap() argument
176 : "D"(addr), "S"(size), "d"(prot), "r"(r10), "r"(r8), in __mmap()
415 int __mprotect(void *addr, size_t len, int prot) { in __mprotect() argument
420 : "D"(addr), "S"(len), "d"(prot) in __mprotect()
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/symbolizer/
H A Dsanitizer_wrappers.cpp31 unsigned long internal_mmap(void *addr, uintptr_t length, int prot, int flags,
156 void *mmap(void *addr, size_t length, int prot, int flags, int fd, in mmap() argument
159 __sanitizer::internal_mmap(addr, length, prot, flags, fd, offset); in mmap()
/llvm-project-15.0.7/lldb/source/Plugins/Platform/OpenBSD/
H A DPlatformOpenBSD.cpp159 unsigned prot, unsigned flags, in GetMmapArgumentList() argument
168 MmapArgList args({addr, length, prot, flags_platform, fd, offset}); in GetMmapArgumentList()

123