/bionic/tests/ |
D | sys_uio_test.cpp | 79 ASSERT_EQ(ssize_t(sizeof src), process_vm_readv(getpid(), &local, 1, &remote, 1, 0)); in TEST() 86 ASSERT_EQ(-1, process_vm_readv(getpid(), &local, 1, &remote, 1, 0)); in TEST() 98 ASSERT_EQ(ssize_t(sizeof src), process_vm_writev(getpid(), &local, 1, &remote, 1, 0)); in TEST() 105 ASSERT_EQ(-1, process_vm_writev(getpid(), &local, 1, &remote, 1, 0)); in TEST()
|
D | sched_test.cpp | 285 ASSERT_EQ(sched_getscheduler(getpid()), sched_getscheduler(0)); in TEST() 287 const int original_policy = sched_getscheduler(getpid()); in TEST() 291 ASSERT_EQ(-1, sched_setscheduler(getpid(), INT_MAX, &p)); in TEST() 294 ASSERT_EQ(0, sched_getparam(getpid(), &p)); in TEST() 295 ASSERT_EQ(original_policy, sched_setscheduler(getpid(), SCHED_BATCH, &p)); in TEST() 302 ASSERT_EQ(0, sched_setscheduler(getpid(), original_policy, &p)); in TEST()
|
D | system_properties_test2.cpp | 50 ss << "debug.test." << getpid() << "." << NanoTime() << "."; in TEST() 137 ss << "debug.test." << getpid() << "." << NanoTime() << "."; in TEST() 161 ss << "debug.test." << getpid() << "." << NanoTime() << "." << "property_empty"; in TEST()
|
D | signal_test.cpp | 587 ASSERT_EQ(0, sigqueue(getpid(), SIGALRM, sigval)); in TEST() 637 ASSERT_EQ(0, sigqueue(getpid(), SIGALRM, sigval)); in TEST() 656 ASSERT_EQ(0, sigqueue(getpid(), SIGRTMIN, sigval)); in TEST() 675 ASSERT_EQ(0, sigqueue(getpid(), SIGALRM, sigval)); in TEST() 697 ASSERT_EQ(0, sigqueue(getpid(), SIGRTMIN, sigval)); in TEST() 719 ASSERT_EQ(0, sigqueue(getpid(), SIGALRM, sigval)); in TEST() 740 ASSERT_EQ(0, sigqueue(getpid(), SIGRTMIN, sigval)); in TEST() 790 ASSERT_EQ(0, syscall(SYS_rt_tgsigqueueinfo, getpid(), gettid(), SIGUSR1, &sent)) in TEST() 797 ASSERT_EQ(0, syscall(SYS_rt_tgsigqueueinfo, getpid(), gettid(), SIGUSR1, &sent)) in TEST()
|
D | sys_syscall_test.cpp | 22 ASSERT_EQ(getpid(), syscall(SYS_getpid)); in TEST()
|
D | stack_protector_test.cpp | 71 ASSERT_EQ(getpid(), gettid()); // We are the main thread, right? in TEST()
|
D | unistd_test.cpp | 481 ASSERT_EQ(getpid_syscall_result, getpid()); in AssertGetPidCorrect() 486 pid_t parent_pid = getpid(); in TestGetPidCachingWithFork() 498 ASSERT_EQ(parent_pid, getpid()); in TestGetPidCachingWithFork() 528 EXPECT_EQ(getpid(), GetTidForTest()) << "real tid is " << syscall(__NR_gettid) in TestGetTidCachingWithFork() 598 pid_t parent_pid = getpid(); in TEST() 604 ASSERT_EQ(parent_pid, getpid()); in TEST() 648 pid_t parent_pid = getpid(); in TEST() 653 ASSERT_EQ(parent_pid, getpid()); in TEST()
|
D | stack_unwinding_test.cpp | 108 ASSERT_EQ(0, kill(getpid(), SIGUSR1)); in UnwindTest()
|
D | malloc_stress_test.cpp | 72 android::meminfo::ProcMemInfo proc_mem(getpid()); in TEST()
|
D | leak_test.cpp | 47 if (tgkill(getpid(), tids[i], 0) == 0) { in WaitUntilAllThreadsExited()
|
D | bug_26110743_test.cpp | 79 pid_t mypid = getpid(); in ProcTaskFdReadlinkBody()
|
D | spawn_test.cpp | 304 ASSERT_EQ(getpid(), ps->ppid); in GetChildStat() 459 static pid_t parent = getpid(); in TEST() 490 ScopedSignalHandler ssh(SIGRTMIN, [](int) { ASSERT_EQ(getpid(), parent); }); in TEST()
|
/bionic/libc/malloc_debug/tests/ |
D | malloc_debug_unit_tests.cpp | 220 SIGRTMAX - 19, getpid()); in VerifyAllocCalls() 223 SIGRTMAX - 17, getpid()); in VerifyAllocCalls() 226 SIGRTMAX - 18, getpid()); in VerifyAllocCalls() 268 SIGRTMAX - 19, getpid()); in TEST_F() 271 SIGRTMAX - 17, getpid()); in TEST_F() 281 SIGRTMAX - 17, getpid()); in TEST_F() 291 SIGRTMAX - 18, getpid()); in TEST_F() 1373 ASSERT_TRUE(kill(getpid(), SIGRTMAX - 17) == 0); in BacktraceDumpOnSignal() 1391 std::string name = android::base::StringPrintf("%s.%d.txt", BACKTRACE_DUMP_PREFIX, getpid()); in BacktraceDumpOnSignal() 1419 "6 malloc_debug Dumping to file: /data/local/tmp/backtrace_heap.%d.txt\n\n", getpid()); in BacktraceDumpOnSignal() [all …]
|
/bionic/libc/bionic/ |
D | pthread_sigqueue.cpp | 48 siginfo.si_pid = getpid(); in pthread_sigqueue() 52 return syscall(__NR_rt_tgsigqueueinfo, getpid(), tid, sig, &siginfo) ? errno : 0; in pthread_sigqueue()
|
D | pthread_kill.cpp | 45 return (tgkill(getpid(), tid, sig) == -1) ? errno : 0; in pthread_kill()
|
D | getpid.cpp | 46 pid_t getpid() { in getpid() function
|
D | netinet_in.cpp | 58 port = START_PORT + (getpid() % NUM_PORTS); in bindresvport()
|
D | lockf.cpp | 62 if (fl.l_type == F_UNLCK || fl.l_pid == getpid()) return 0; in lockf64()
|
D | bionic_systrace.cpp | 72 size_t len = async_safe_format_buffer(buf, length + WRITE_OFFSET, "B|%d|%s", getpid(), message); in bionic_trace_begin()
|
D | pthread_create.cpp | 125 (getpid() == 1) ? 0 : (arc4random_uniform(SCS_GUARD_REGION_SIZE / SCS_SIZE - 1) * SCS_SIZE); in __init_shadow_call_stack() 396 thread->set_cached_pid(getpid()); in pthread_create()
|
D | libc_init_common.cpp | 336 if ((getpid() != 1) || is_AT_SECURE) { in __libc_init_AT_SECURE()
|
/bionic/libc/upstream-openbsd/android/include/ |
D | arc4random.h | 49 pid_t pid = getpid(); in _rs_forkdetect()
|
/bionic/benchmarks/linker_relocation/gen/ |
D | liblinker_reloc_bench_106.S | 22 CALL(getpid)
|
/bionic/benchmarks/ |
D | unistd_benchmark.cpp | 30 BIONIC_TRIVIAL_BENCHMARK(BM_unistd_getpid, getpid());
|
/bionic/libc/upstream-openbsd/lib/libc/net/ |
D | res_random.c | 236 pid = getpid(); in __res_randomid()
|