/linux-master/tools/testing/selftests/proc/ |
H A D | proc-loadavg-001.c | 28 int wstatus; local 77 if (waitpid(pid, &wstatus, 0) == -1) 79 if (WIFEXITED(wstatus) && WEXITSTATUS(wstatus) == 0)
|
H A D | proc-empty-vm.c | 174 int wstatus; local 206 waitpid(pid, &wstatus, 0); 207 if (WIFEXITED(wstatus)) { 208 g_vsyscall = WEXITSTATUS(wstatus); 210 fprintf(stderr, "error: vsyscall wstatus %08x\n", wstatus); 531 int wstatus; local 532 waitpid(pid, &wstatus, 0); 533 assert(WIFSTOPPED(wstatus)); 534 assert(WSTOPSIG(wstatus) [all...] |
H A D | proc-pid-vm.c | 240 int wstatus; local 274 waitpid(pid, &wstatus, 0); 275 if (WIFEXITED(wstatus)) { 276 g_vsyscall = WEXITSTATUS(wstatus); 278 fprintf(stderr, "error: wstatus %08x\n", wstatus);
|
/linux-master/tools/testing/selftests/safesetid/ |
H A D | safesetid-test.c | 269 int wstatus; local 285 w = waitpid(cpid, &wstatus, WUNTRACED | WCONTINUED); 290 if (WIFEXITED(wstatus)) { 291 if (WEXITSTATUS(wstatus) == EXIT_SUCCESS) { 304 } else if (WIFSIGNALED(wstatus)) { 305 if (WTERMSIG(wstatus) == 9) { 311 die("unexpected signal: %d\n", wstatus); 314 die("unexpected status: %d\n", wstatus); 316 } while (!WIFEXITED(wstatus) && !WIFSIGNALED(wstatus)); 325 int wstatus; local 381 int wstatus; local [all...] |
/linux-master/tools/testing/selftests/rlimits/ |
H A D | rlimits-per-userns.c | 89 int wstatus[NR_CHILDS]; local 110 wstatus[i] = 0; 120 pid_t ret = waitpid(child[i], &wstatus[i], WNOHANG); 122 if (!ret || (!WIFEXITED(wstatus[i]) && !WIFSIGNALED(wstatus[i]))) 145 if (WIFEXITED(wstatus[i])) 147 pid, -child[i], WEXITSTATUS(wstatus[i])); 148 else if (WIFSIGNALED(wstatus[i])) 150 pid, -child[i], WTERMSIG(wstatus[i])); 152 if (WIFSIGNALED(wstatus[ [all...] |
/linux-master/tools/testing/selftests/exec/ |
H A D | null-argv.c | 24 int wstatus; local 31 if (waitpid(pid, &wstatus, 0) < 0) { 36 if (!WIFEXITED(wstatus)) { 40 if (WEXITSTATUS(wstatus) != 0) {
|
/linux-master/tools/testing/selftests/powerpc/dexcr/ |
H A D | dexcr.c | 124 int wstatus; local 127 FAIL_IF_EXIT_MSG(waitpid(pid, &wstatus, 0) == -1, "wait failed"); 128 FAIL_IF_EXIT_MSG(!WIFEXITED(wstatus), "child did not exit cleanly"); 129 FAIL_IF_EXIT_MSG(WEXITSTATUS(wstatus) != 0, "child exit error");
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | fexit_sleep.c | 29 int wstatus, duration = 0; local 68 if (CHECK(waitpid(cpid, &wstatus, 0) == -1, "waitpid", "%s\n", strerror(errno))) 70 if (CHECK(WEXITSTATUS(wstatus) != 0, "exitstatus", "failed"))
|
H A D | ns_current_pid_tgid.c | 184 int wstatus; local 196 if (!ASSERT_NEQ(waitpid(cpid, &wstatus, 0), -1, "waitpid")) 199 if (!ASSERT_OK(WEXITSTATUS(wstatus), "newns_pidtgid"))
|
H A D | bpf_iter.c | 1468 int wstatus, child_pid = -1; local 1531 waitpid(child_pid, &wstatus, 0);
|
/linux-master/tools/testing/selftests/powerpc/signal/ |
H A D | sig_sc_double_restart.c | 144 int wstatus; local 155 if (wait(&wstatus) == -1) { 159 if (!WIFEXITED(wstatus)) { 164 FAIL_IF(WEXITSTATUS(wstatus) != EXIT_SUCCESS);
|
/linux-master/tools/testing/selftests/net/mptcp/ |
H A D | mptcp_inq.c | 545 static int rcheck(int wstatus, const char *what) argument 547 if (WIFEXITED(wstatus)) { 548 if (WEXITSTATUS(wstatus) == 0) 550 fprintf(stderr, "%s exited, status=%d\n", what, WEXITSTATUS(wstatus)); 551 return WEXITSTATUS(wstatus); 552 } else if (WIFSIGNALED(wstatus)) { 553 xerror("%s killed by signal %d\n", what, WTERMSIG(wstatus)); 554 } else if (WIFSTOPPED(wstatus)) { 555 xerror("%s stopped by signal %d\n", what, WSTOPSIG(wstatus)); 563 int e1, e2, wstatus; local [all...] |
H A D | mptcp_sockopt.c | 791 static int rcheck(int wstatus, const char *what) argument 793 if (WIFEXITED(wstatus)) { 794 if (WEXITSTATUS(wstatus) == 0) 796 fprintf(stderr, "%s exited, status=%d\n", what, WEXITSTATUS(wstatus)); 797 return WEXITSTATUS(wstatus); 798 } else if (WIFSIGNALED(wstatus)) { 799 xerror("%s killed by signal %d\n", what, WTERMSIG(wstatus)); 800 } else if (WIFSTOPPED(wstatus)) { 801 xerror("%s stopped by signal %d\n", what, WSTOPSIG(wstatus)); 828 int e1, e2, wstatus; local [all...] |
/linux-master/tools/testing/selftests/net/ |
H A D | ipv6_flowlabel_mgr.c | 76 int wstatus; local 142 if (wait(&wstatus) == -1) 144 if (!WIFEXITED(wstatus) || WEXITSTATUS(wstatus) != 0) 159 if (wait(&wstatus) == -1) 161 if (!WIFEXITED(wstatus) || WEXITSTATUS(wstatus) != 0)
|
/linux-master/tools/tracing/rtla/src/ |
H A D | timerlat_u.c | 144 int wstatus; local 188 pid = waitpid(-1, &wstatus, WNOHANG); 207 pid = waitpid(-1, &wstatus, 0);
|
/linux-master/tools/testing/selftests/x86/ |
H A D | syscall_numbering.c | 398 int wstatus; local 401 pid_t wpid = waitpid(testpid, &wstatus, 0); 406 if (!WIFSTOPPED(wstatus)) 409 if (sh->probing_syscall && WSTOPSIG(wstatus) == SIGTRAP) 417 while (waitpid(testpid, &wstatus, 0) != testpid || !WIFEXITED(wstatus))
|
/linux-master/tools/testing/selftests/kvm/ |
H A D | get-reg-list.c | 393 int wstatus; local 394 pid_t wpid = wait(&wstatus); 395 TEST_ASSERT(wpid == pid && WIFEXITED(wstatus), "wait: Unexpected return"); 396 if (WEXITSTATUS(wstatus) && WEXITSTATUS(wstatus) != KSFT_SKIP)
|
/linux-master/tools/testing/selftests/mm/ |
H A D | khugepaged.c | 888 int wstatus; local 920 wait(&wstatus); 921 exit_status += WEXITSTATUS(wstatus); 934 int wstatus; local 969 wait(&wstatus); 970 exit_status += WEXITSTATUS(wstatus); 984 int wstatus; local 1029 wait(&wstatus); 1030 exit_status += WEXITSTATUS(wstatus);
|
/linux-master/tools/testing/selftests/memfd/ |
H A D | memfd_test.c | 782 int wstatus; local 784 if (waitpid(pid, &wstatus, 0) < 0) { 789 if (WIFEXITED(wstatus) && WEXITSTATUS(wstatus) != 0) { 791 WEXITSTATUS(wstatus)); 795 if (WIFSIGNALED(wstatus)) { 797 WTERMSIG(wstatus));
|
/linux-master/drivers/usb/class/ |
H A D | usblp.c | 126 * ->wmut locks wstatus. 155 int wstatus; /* bytes written or error */ member in struct:usblp 189 dev_dbg(dev, "wstatus=%d\n", usblp->wstatus); 346 usblp->wstatus = status; 348 usblp->wstatus = urb->actual_length; 444 usblp->wstatus = 0; 780 usblp->wstatus = 0; 810 if (usblp->wstatus < 0) { 818 writecount += usblp->wstatus; [all...] |
/linux-master/tools/testing/selftests/bpf/ |
H A D | test_progs.c | 1470 int wstatus, pid; local 1472 pid = waitpid(env.worker_pids[i], &wstatus, 0);
|
/linux-master/tools/testing/selftests/seccomp/ |
H A D | seccomp_bpf.c | 4384 int wstatus; local 4387 ASSERT_EQ(self->pid, wait(&wstatus));
|