/kernel/liteos_a/testsuites/unittest/container/smoke/ |
H A D | It_net_container_007.cpp | 94 auto pid = clone(ChildFunc, stackTop, SIGCHLD | CLONE_NEWNET, &arg); in ItNetContainer007() local 95 ASSERT_NE(pid, -1); in ItNetContainer007() 97 ret = waitpid(pid, &status, 0); in ItNetContainer007() 98 ASSERT_EQ(ret, pid); in ItNetContainer007()
|
H A D | It_user_container_004.cpp | 99 auto pid = CloneWrapper(childFunc, SIGCHLD, &arg); in ItUserContainer004() local 100 ASSERT_NE(pid, -1); in ItUserContainer004() 102 ret = waitpid(pid, &status, 0); in ItUserContainer004() 103 ASSERT_EQ(ret, pid); in ItUserContainer004()
|
H A D | It_uts_container_005.cpp | 108 auto pid = CloneWrapper(UtsContainerTest, CLONE_NEWUTS, &arg); in ItUtsContainer005() local 109 ASSERT_NE(pid, -1); in ItUtsContainer005() 112 ret = waitpid(pid, &status, 0); in ItUtsContainer005() 113 ASSERT_EQ(ret, pid); in ItUtsContainer005()
|
/kernel/liteos_a/testsuites/unittest/extended/signal/full/ |
H A D | signal_test_033.cpp | 50 int pid = 0; in TestCase() local 55 pid = fork(); in TestCase() 56 if (pid < 0) { in TestCase() 59 } else if (pid == 0) { in TestCase()
|
/kernel/liteos_a/testsuites/unittest/process/basic/process/smoke/ |
H A D | process_test_008.cpp | 51 int pid; in ProcessTest001() local 88 int pid; in Testcase() local 101 pid = ret; in Testcase() 104 ICUNIT_ASSERT_EQUAL(ret, pid, ret); in Testcase()
|
/kernel/liteos_a/testsuites/unittest/process/fs/ |
H A D | process_fs_test.cpp | 47 std::string GenProcPidPath(int pid) in GenProcPidPath() argument 50 buf << "/proc/" << pid; in GenProcPidPath() local 54 std::string GenProcPidContainerPath(int pid, char *name) in GenProcPidContainerPath() argument 57 buf << "/proc/" << pid << "/container/" << name; in GenProcPidContainerPath()
|
/kernel/liteos_a/testsuites/unittest/process/plimits/smoke/ |
H A D | It_process_plimits_memory_002.cpp | 58 int ret, pid, status; in ItProcessPlimitsMemory002() local 75 pid = clone(CloneOne, stack, 0, NULL); in ItProcessPlimitsMemory002() 76 ret = waitpid(pid, &status, 0); in ItProcessPlimitsMemory002() 77 ASSERT_EQ(ret, pid); in ItProcessPlimitsMemory002()
|
H A D | It_process_plimits_memory_001.cpp | 57 int ret, pid, status; in ItProcessPlimitsMemory001() local 74 pid = clone(CloneOne, stack, 0, NULL); in ItProcessPlimitsMemory001() 75 ret = waitpid(pid, &status, 0); in ItProcessPlimitsMemory001() 76 ASSERT_EQ(ret, pid); in ItProcessPlimitsMemory001()
|
/third_party/mesa3d/include/android_stub/log/ |
H A D | log_read.h | 42 int32_t pid; /* generating process's pid */ member 112 pid_t pid); 114 pid_t pid); 124 unsigned int tail, pid_t pid);
|
/third_party/ltp/testcases/kernel/containers/pidns/ |
H A D | pidns13.c | 44 tst_res(TWARN, "cinit(pid %d): Caught signal! sig=%d, si_fd=%d, si_code=%d", in child_signal_handler() 54 pid_t pid, ppid; in child_fn() local 57 pid = tst_getpid(); in child_fn() 59 if (pid != CHILD_PID || ppid != PARENT_PID) in child_fn() 69 SAFE_FCNTL(pipe_fd[0], F_SETOWN, pid); in child_fn()
|
/third_party/ltp/testcases/kernel/controllers/cpuctl/ |
H A D | run_cpuctl_latency_test.sh | 46 declare -a pid; 59 if [ -n "${pid[1]}" ]; then 62 kill -s SIGUSR1 ${pid[$i]} 2>/dev/null; 155 pid[$i]=$!; 186 pid[$num]=$!;
|
/third_party/ltp/testcases/kernel/crypto/ |
H A D | crypto_user02.c | 90 pid_t pid; in run() local 102 pid = SAFE_FORK(); in run() 104 if (pid == 0) { in run() 122 kill(pid, SIGKILL); in run()
|
/third_party/musl/src/unistd/ |
H A D | faccessat.c | 41 pid_t pid; in faccessat() local 50 pid = __clone(checker, stack+sizeof stack, 0, &c); in faccessat() 53 if (pid<0 || __syscall(SYS_read, p[0], &ret, sizeof ret) != sizeof(ret)) in faccessat() 56 __sys_wait4(pid, &status, __WCLONE, 0); in faccessat()
|
/third_party/ltp/testcases/kernel/syscalls/access/ |
H A D | access04.c | 75 pid_t pid; in verify_access() local 79 pid = SAFE_FORK(); in verify_access() 80 if (pid) { in verify_access() 81 SAFE_WAITPID(pid, NULL, 0); in verify_access()
|
/third_party/ltp/testcases/kernel/syscalls/open/ |
H A D | open05.c | 55 pid_t pid; in main() local 65 pid = FORK_OR_VFORK(); in main() 66 if (pid == -1) in main() 69 if (pid == 0) { in main()
|
/third_party/ltp/testcases/kernel/syscalls/prctl/ |
H A D | prctl10.c | 70 int tsc_val = 0, pid, status; in verify_prctl() local 72 pid = SAFE_FORK(); in verify_prctl() 73 if (!pid) { in verify_prctl() 94 SAFE_WAITPID(pid, &status, 0); in verify_prctl()
|
H A D | prctl03.c | 63 pid_t pid; in verify_prctl() local 82 pid = SAFE_FORK(); in verify_prctl() 83 if (!pid) { in verify_prctl() 103 SAFE_WAITPID(pid, NULL, 0); in verify_prctl() 107 tst_res(TPASS, "wait() got orphaned process, pid %d, status %d", in verify_prctl()
|
/third_party/ltp/testcases/kernel/syscalls/setrlimit/ |
H A D | setrlimit06.c | 55 pid_t pid; in verify_setrlimit() local 59 pid = SAFE_FORK(); in verify_setrlimit() 60 if (!pid) { in verify_setrlimit() 78 SAFE_WAITPID(pid, &status, 0); in verify_setrlimit()
|
/third_party/ltp/testcases/kernel/syscalls/statfs/ |
H A D | statfs02.c | 53 int pid, status; in statfs_verify() local 55 pid = SAFE_FORK(); in statfs_verify() 56 if (!pid) { in statfs_verify() 61 SAFE_WAITPID(pid, &status, 0); in statfs_verify()
|
/third_party/ltp/testcases/kernel/mem/hugetlb/hugemmap/ |
H A D | hugemmap21.c | 33 tst_res(TINFO, "Thread %d (pid %d): Mapped at address %p", in do_work() 40 tst_brk(TBROK | TERRNO, "Thread %d (pid %d): msync() failed", in do_work() 45 tst_res(TFAIL, "thread %d (pid: %d): Corruption at %p; " in do_work() 52 tst_res(TINFO, "Thread %d (pid %d): Pattern verified", in do_work() 62 int i, pid; in run_test() local 82 pid = SAFE_FORK(); in run_test() 84 if (pid == 0) in run_test() 87 wait_list[i] = pid; in run_test()
|
/third_party/ltp/testcases/kernel/syscalls/epoll_pwait/ |
H A D | epoll_pwait01.c | 57 pid_t pid; in run() local 60 pid = getppid(); in run() 62 TST_PROCESS_STATE_WAIT(pid, 'S', 0); in run() 63 SAFE_KILL(pid, SIGUSR1); in run()
|
/third_party/ltp/testcases/kernel/syscalls/fstat/ |
H A D | fstat03.c | 63 pid_t pid; in run() local 66 pid = SAFE_FORK(); in run() 67 if (pid == 0) { in run() 71 SAFE_WAITPID(pid, &status, 0); in run()
|
/third_party/ltp/testcases/kernel/syscalls/mprotect/ |
H A D | mprotect03.c | 69 int fd, pid; in main() local 98 if ((pid = FORK_OR_VFORK()) == -1) { in main() 102 if (pid == 0) { in main() 109 waitpid(pid, &status, 0); in main()
|
/third_party/ltp/testcases/kernel/uevents/ |
H A D | uevent02.c | 111 int pid, fd; in verify_uevent() local 113 pid = SAFE_FORK(); in verify_uevent() 114 if (!pid) { in verify_uevent() 125 wait_for_pid(pid); in verify_uevent()
|
/third_party/ltp/testcases/kernel/input/ |
H A D | input01.c | 47 int pid; in main() local 54 pid = tst_fork(); in main() 56 switch (pid) { in main() 70 SAFE_WAITPID(NULL, pid, NULL, 0); in main()
|