/kernel/liteos_a/testsuites/unittest/process/basic/process/full/ |
H A D | process_test_068.cpp | 40 pid_t pid; in TestCase() local 45 int ret = posix_spawn(&pid, "/storage/test_spawn", NULL, NULL, argv1, envp); in TestCase() 48 ret = waitpid(pid, &status, 0); in TestCase() 49 ICUNIT_GOTO_EQUAL(ret, pid, ret, EXIT); in TestCase()
|
H A D | process_test_069.cpp | 40 pid_t pid; in TestCase() local 46 ret = posix_spawnp(&pid, "/storage/test_spawn", NULL, NULL, argv1, envp); in TestCase() 49 ret = waitpid(pid, &status, 0); in TestCase() 50 ICUNIT_GOTO_EQUAL(ret, pid, ret, EXIT); in TestCase()
|
/third_party/ltp/testcases/kernel/containers/pidns/ |
H A D | pidns16.c | 63 pid_t pid; in run() local 67 pid = SAFE_CLONE(&args); in run() 68 if (!pid) { in run() 77 SAFE_KILL(pid, SIGUSR1); in run()
|
H A D | pidns12.c | 52 int pid; in run() local 54 pid = SAFE_CLONE(&args); in run() 55 if (!pid) { in run() 62 SAFE_KILL(pid, SIGUSR1); in run()
|
/third_party/ltp/lib/newlib_tests/ |
H A D | test_guarded_buf.c | 24 int pid; in do_test() local 33 pid = SAFE_FORK(); in do_test() 34 if (!pid) { in do_test() 63 SAFE_WAITPID(pid, &status, 0); in do_test()
|
/third_party/ltp/testcases/kernel/controllers/cgroup_fj/ |
H A D | cgroup_fj_proc.c | 27 pid_t pid; in main() local 49 pid = fork(); in main() 50 if (pid == -1) in main() 52 else if (pid == 0) { in main()
|
/third_party/ltp/testcases/kernel/syscalls/access/ |
H A D | access03.c | 35 pid_t pid; in verify_access() local 41 pid = SAFE_FORK(); in verify_access() 42 if (pid) { in verify_access() 43 SAFE_WAITPID(pid, NULL, 0); in verify_access()
|
/third_party/ltp/testcases/kernel/syscalls/capget/ |
H A D | capget01.c | 15 static pid_t pid; variable 33 hdr->pid = pid; in verify_capget() 46 pid = getpid(); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/capset/ |
H A D | capset01.c | 24 static pid_t pid; variable 41 header->pid = pid; in verify_capset() 53 pid = getpid(); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/getrusage/ |
H A D | getrusage03_child.c | 25 pid_t pid; in main() local 38 pid = fork(); in main() 39 if (pid == -1) in main() 41 else if (pid == 0) { in main()
|
/third_party/ltp/testcases/kernel/syscalls/ipc/msgrcv/ |
H A D | msgrcv06.c | 33 int pid; in do_test() local 36 pid = SAFE_FORK(); in do_test() 37 if (pid == 0) { in do_test() 41 TST_PROCESS_STATE_WAIT(pid, 'S', 0); in do_test()
|
/third_party/ltp/testcases/kernel/syscalls/setrlimit/ |
H A D | setrlimit05.c | 25 pid_t pid; in verify_setrlimit() local 27 pid = SAFE_FORK(); in verify_setrlimit() 28 if (!pid) { in verify_setrlimit() 47 SAFE_WAITPID(pid, &status, 0); in verify_setrlimit()
|
/third_party/ltp/testcases/kernel/syscalls/unlink/ |
H A D | unlink08.c | 46 pid_t pid; in do_unlink() local 49 pid = SAFE_FORK(); in do_unlink() 50 if (!pid) { in do_unlink() 55 SAFE_WAITPID(pid, NULL, 0); in do_unlink()
|
/third_party/ltp/testcases/lib/ |
H A D | tst_ns_create.c | 62 int pid; in main() local 83 pid = SAFE_CLONE(&args); in main() 84 if (!pid) { in main() 89 printf("%d", pid); in main()
|
/third_party/ltp/testcases/kernel/syscalls/fcntl/ |
H A D | fcntl05.c | 34 static int fd = -1, pid; variable 47 TST_EXP_EQ_LI(flocks.l_pid, pid); in verify_fcntl() 52 pid = getpid(); in setup() 58 flocks.l_pid = pid; in setup()
|
/third_party/ltp/testcases/kernel/syscalls/setresuid/ |
H A D | setresuid04.c | 40 pid_t pid; in run() local 46 pid = SAFE_FORK(); in run() 47 if (!pid) { in run() 51 SAFE_WAITPID(pid, &status, 0); in run()
|
/third_party/ltp/testcases/kernel/input/ |
H A D | input02.c | 46 int pid; in main() local 53 pid = tst_fork(); in main() 57 switch (pid) { in main() 72 SAFE_WAITPID(NULL, pid, NULL, 0); in main()
|
H A D | input05.c | 50 int pid; in main() local 57 pid = tst_fork(); in main() 59 switch (pid) { in main() 73 SAFE_WAITPID(NULL, pid, NULL, 0); in main()
|
H A D | input04.c | 44 int pid; in main() local 51 pid = tst_fork(); in main() 53 switch (pid) { in main() 69 SAFE_WAITPID(NULL, pid, NULL, 0); in main()
|
/third_party/ltp/testcases/kernel/syscalls/ipc/msgsnd/ |
H A D | msgsnd06.c | 37 pid_t pid; in do_test() local 44 pid = SAFE_FORK(); in do_test() 45 if (!pid) { in do_test() 50 TST_PROCESS_STATE_WAIT(pid, 'S', 0); in do_test()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_nanosleep/ |
H A D | 1-4.c | 24 int pid; in main() local 31 if ((pid = fork()) == 0) { in main() 40 tst_process_state_wait3(pid, 'S', 1); in main() 42 if (kill(pid, SIGABRT) != 0) { in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/ |
H A D | 4-36.c | 43 pid_t pid; in main() local 44 if ((pid = fork()) == 0) { in main() 69 if (waitpid(pid, &s, WUNTRACED) == -1) { in main() 77 kill(pid, SIGKILL); in main()
|
H A D | 4-37.c | 43 pid_t pid; in main() local 44 if ((pid = fork()) == 0) { in main() 69 if (waitpid(pid, &s, WUNTRACED) == -1) { in main() 77 kill(pid, SIGKILL); in main()
|
H A D | 4-38.c | 43 pid_t pid; in main() local 44 if ((pid = fork()) == 0) { in main() 69 if (waitpid(pid, &s, WUNTRACED) == -1) { in main() 77 kill(pid, SIGKILL); in main()
|
H A D | 4-39.c | 43 pid_t pid; in main() local 44 if ((pid = fork()) == 0) { in main() 69 if (waitpid(pid, &s, WUNTRACED) == -1) { in main() 77 kill(pid, SIGKILL); in main()
|