/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/ltp/tools/netpipe-2.4-ipv6/ |
D | TCP.c | 40 memset(&p->prot.sin1, 0, sizeof(p->prot.sin1)); in Setup() 41 memset(&p->prot.sin2, 0, sizeof(p->prot.sin2)); in Setup() 62 if (p->prot.sndbufsz > 0) { in Setup() 64 p->prot.sndbufsz); in Setup() 66 (sockfd, SOL_SOCKET, SO_SNDBUF, &(p->prot.sndbufsz), in Setup() 67 sizeof(p->prot.sndbufsz)) < 0) { in Setup() 74 (sockfd, SOL_SOCKET, SO_RCVBUF, &(p->prot.rcvbufsz), in Setup() 75 sizeof(p->prot.rcvbufsz)) < 0) { in Setup() 87 memcpy(&p->prot.sin1, addr->ai_addr, addr->ai_addrlen); in Setup() 95 p->prot.sin1.sin6_port = htons(p->port); in Setup() [all …]
|
D | PVM.c | 22 p->prot.mytid = pvm_mytid(); in Setup() 24 printf("My task id is %d \n", p->prot.mytid); in Setup() 63 p->prot.othertid = -1; in Establish() 64 if (taskp[0].ti_tid == p->prot.mytid) { in Establish() 65 p->prot.othertid = taskp[1].ti_tid; in Establish() 67 if (taskp[1].ti_tid == p->prot.mytid) { in Establish() 68 p->prot.othertid = taskp[0].ti_tid; in Establish() 70 if (p->prot.othertid == -1) { in Establish() 79 printf("The receiver tid is %d \n", p->prot.othertid); in Establish() 83 pvm_pkint(&p->prot.mytid, 1, 1); in Establish() [all …]
|
D | MPI.c | 25 MPI_Comm_rank(MPI_COMM_WORLD, &p->prot.iproc); in Setup() 30 printf("%d: %s\n", p->prot.iproc, s); in Setup() 33 p->prot.nbor = !p->prot.iproc; in Setup() 40 if (p->prot.iproc == 0) in Setup() 77 p->prot.nbor, 1, MPI_COMM_WORLD, &recvRequest); in PrepareToReceive() 84 MPI_Bsend(p->buff, p->bufflen, MPI_BYTE, p->prot.nbor, 1, in SendData() 87 MPI_Send(p->buff, p->bufflen, MPI_BYTE, p->prot.nbor, 1, in SendData() 100 p->prot.nbor, 1, MPI_COMM_WORLD, &status); in RecvData() 107 MPI_Bsend(t, 1, MPI_DOUBLE, p->prot.nbor, 2, MPI_COMM_WORLD); in SendTime() 109 MPI_Send(t, 1, MPI_DOUBLE, p->prot.nbor, 2, MPI_COMM_WORLD); in SendTime() [all …]
|
/external/ltp/tools/netpipe-2.4/ |
D | PVM.c | 22 p->prot.mytid = pvm_mytid(); in Setup() 24 printf("My task id is %d \n", p->prot.mytid); in Setup() 63 p->prot.othertid = -1; in Establish() 64 if (taskp[0].ti_tid == p->prot.mytid) { in Establish() 65 p->prot.othertid = taskp[1].ti_tid; in Establish() 67 if (taskp[1].ti_tid == p->prot.mytid) { in Establish() 68 p->prot.othertid = taskp[0].ti_tid; in Establish() 70 if (p->prot.othertid == -1) { in Establish() 79 printf("The receiver tid is %d \n", p->prot.othertid); in Establish() 83 pvm_pkint(&p->prot.mytid, 1, 1); in Establish() [all …]
|
D | MPI.c | 25 MPI_Comm_rank(MPI_COMM_WORLD, &p->prot.iproc); in Setup() 30 printf("%d: %s\n", p->prot.iproc, s); in Setup() 33 p->prot.nbor = !p->prot.iproc; in Setup() 40 if (p->prot.iproc == 0) in Setup() 77 p->prot.nbor, 1, MPI_COMM_WORLD, &recvRequest); in PrepareToReceive() 84 MPI_Bsend(p->buff, p->bufflen, MPI_BYTE, p->prot.nbor, 1, in SendData() 87 MPI_Send(p->buff, p->bufflen, MPI_BYTE, p->prot.nbor, 1, in SendData() 100 p->prot.nbor, 1, MPI_COMM_WORLD, &status); in RecvData() 107 MPI_Bsend(t, 1, MPI_DOUBLE, p->prot.nbor, 2, MPI_COMM_WORLD); in SendTime() 109 MPI_Send(t, 1, MPI_DOUBLE, p->prot.nbor, 2, MPI_COMM_WORLD); in SendTime() [all …]
|
D | TCP.c | 28 lsin1 = &(p->prot.sin1); in Setup() 29 lsin2 = &(p->prot.sin2); in Setup() 53 if (p->prot.sndbufsz > 0) { in Setup() 55 p->prot.sndbufsz); in Setup() 57 (sockfd, SOL_SOCKET, SO_SNDBUF, &(p->prot.sndbufsz), in Setup() 58 sizeof(p->prot.sndbufsz)) < 0) { in Setup() 65 (sockfd, SOL_SOCKET, SO_RCVBUF, &(p->prot.rcvbufsz), in Setup() 66 sizeof(p->prot.rcvbufsz)) < 0) { in Setup() 280 clen = sizeof(p->prot.sin2); in Establish() 282 if (connect(p->commfd, (struct sockaddr *)&(p->prot.sin1), in Establish() [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/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/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/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() 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 …]
|
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_() 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/ |
D | print-gre.c | 114 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 …]
|
D | print-geneve.c | 137 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/mesa3d/src/gallium/auxiliary/os/ |
D | os_mman.h | 64 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/ |
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/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()
|
D | 9-1.c | 40 int prot; in main() local 67 prot = PROT_READ | PROT_WRITE; in main() 68 pa = mmap(addr, len, prot, flag, fd, off); in main()
|
D | 3-1.c | 43 int prot; in main() local 72 prot = PROT_READ | PROT_WRITE; in main() 73 pa = mmap(addr, len, prot, flag, fd, off); in main()
|
/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()
|
/external/v8/src/base/platform/ |
D | platform-aix.cc | 39 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() 69 int prot = PROT_READ | PROT_WRITE | (executable ? PROT_EXEC : 0); in Allocate() local 70 void* mbase = mmapHelper(msize, prot, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in Allocate() 220 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in CommitRegion() local 222 if (mprotect(base, size, prot) == -1) return false; in CommitRegion()
|