/third_party/ltp/testcases/kernel/containers/userns/ |
H A D | userns_helper.h | 30 int pid, status; in check_newuser() local 35 pid = do_clone_unshare_test(T_CLONE, CLONE_NEWUSER, dummy_child, NULL); in check_newuser() 36 if (pid == -1) in check_newuser()
|
/third_party/ltp/testcases/kernel/syscalls/setpgrp/ |
H A D | setpgrp02.c | 61 int pid, oldpgrp; in main() local 73 if ((pid = FORK_OR_VFORK()) == -1) { in main() 77 if (pid == 0) { /* child */ in main()
|
H A D | setpgrp01.c | 85 int pid, status; in setup() local 95 if ((pid = FORK_OR_VFORK()) == -1) { in setup() 100 if (pid != 0) { /* parent - sits and waits */ in setup()
|
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmat/ |
H A D | hugeshmat03.c | 45 pid_t pid; in verify_hugeshmat() local 47 switch (pid = SAFE_FORK()) { in verify_hugeshmat() 64 SAFE_WAITPID(pid, &status, 0); in verify_hugeshmat()
|
/third_party/ltp/testcases/kernel/syscalls/execve/ |
H A D | execve04.c | 36 pid_t pid; in verify_execve() local 39 pid = SAFE_FORK(); in verify_execve() 40 if (pid == 0) in verify_execve()
|
/third_party/ltp/testcases/kernel/syscalls/execveat/ |
H A D | execveat03.c | 58 pid_t pid; in verify_execveat() local 60 pid = SAFE_FORK(); in verify_execveat() 61 if (pid == 0) in verify_execveat()
|
/third_party/ltp/testcases/kernel/syscalls/ipc/shmget/ |
H A D | shmget06.c | 28 static int shm_id[2], pid; variable 50 pid = getpid(); in setup() 51 SAFE_FILE_PRINTF(NEXT_ID_PATH, "%d", pid); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/personality/ |
H A D | personality01.c | 56 pid_t pid; in run() local 58 pid = SAFE_FORK(); in run() 59 if (!pid) { in run()
|
/third_party/ltp/testcases/kernel/syscalls/signal/ |
H A D | signal03.c | 37 pid_t pid; in do_test() local 42 pid = getpid(); in do_test() 44 SAFE_KILL(pid, siglist[n]); in do_test()
|
/third_party/ltp/testcases/kernel/syscalls/sysctl/ |
H A D | sysctl03.c | 79 pid_t pid; in do_test() local 82 pid = SAFE_FORK(); in do_test() 83 if (!pid) { in do_test()
|
/third_party/ltp/testcases/kernel/syscalls/ipc/msgget/ |
H A D | msgget05.c | 27 static int queue_id[2], pid; variable 49 pid = getpid(); in setup() 50 SAFE_FILE_PRINTF(NEXT_ID_PATH, "%d", pid); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/setuid/ |
H A D | setuid04.c | 28 pid_t pid; in verify_setuid() local 30 pid = SAFE_FORK(); in verify_setuid() 31 if (!pid) in verify_setuid()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/ |
H A D | 7-1.c | 32 int pid; in main() local 35 if ((pid = fork()) == 0) { in main() 70 if (kill(pid, SIGABRT) != 0) { in main()
|
H A D | 5-2.c | 31 int pid; in main() local 34 if ((pid = fork()) == 0) { in main() 62 if (kill(pid, SIGABRT) != 0) { in main()
|
H A D | 3-1.c | 35 int pid; in main() local 38 if ((pid = fork()) == 0) { in main() 61 if (kill(pid, SIGABRT) != 0) { in main()
|
H A D | 1-2.c | 22 int pid; in main() local 29 if ((pid = fork()) == 0) { in main() 40 if (kill(pid, SIGABRT) != 0) { in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/ |
H A D | 1-1.c | 9 to the child process specified by pid. 12 * value VALTOTEST for the pid of the child 43 int pid; in main() local 45 if ((pid = fork()) == 0) { in main() 65 if (sigqueue(pid, SIGTOTEST, value) != 0) { in main()
|
H A D | 8-1.c | 44 int pid, i; in main() local 54 pid = getpid(); in main() 59 if (sigqueue(pid, SIGTOTEST, value) != 0) { in main()
|
H A D | 4-1.c | 43 int pid, i; in main() local 52 pid = getpid(); in main() 58 if (sigqueue(pid, SIGTOTEST, value) != 0) { in main()
|
H A D | 5-1.c | 41 int pid, i; in main() local 51 pid = getpid(); in main() 56 if (sigqueue(pid, SIGTOTEST, value) != 0) { in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigwaitinfo/ |
H A D | 2-1.c | 40 int pid, rtsig; in main() local 56 pid = getpid(); in main() 61 if (sigqueue(pid, rtsig, value) != 0) { in main()
|
/third_party/ltp/testcases/open_posix_testsuite/include/ |
H A D | proc.h | 22 int tst_process_state_wait3(pid_t pid, const char state, in tst_process_state_wait3() argument 33 snprintf(proc_path, sizeof(proc_path), "/proc/%i/stat", pid); in tst_process_state_wait3() 61 int tst_process_state_wait3(pid_t pid PTS_ATTRIBUTE_UNUSED, in tst_process_state_wait3()
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A D | capset.c | 30 cap_header.pid = getpid(); in capset_0100() 37 printf("capheader: %x %d\n", cap_header.version, cap_header.pid); in capset_0100() 50 printf("capheader: %x %d\n", cap_header.version, cap_header.pid); in capset_0100()
|
/third_party/musl/libc-test/src/functionalext/supplement/misc/ |
H A D | forkpty.c | 31 pid_t pid = forkpty(&master, NULL, NULL, NULL); in forkpty_0100() local 37 if (pid < 0) { in forkpty_0100() 39 } else if (pid == 0) { in forkpty_0100()
|
/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
H A D | pipe2.c | 35 pid_t pid = fork(); in pipe2_test() local 36 if (pid == 0) { in pipe2_test() 43 } else if (pid > 0) { in pipe2_test()
|