/external/ltp/testcases/kernel/syscalls/exit_group/ |
exit_group01.c | 38 int status; local 47 w = SAFE_WAIT(NULL, &status); 49 if (WIFEXITED(status) && (WEXITSTATUS(status) == 4)) { 53 "exit_group() failed (wait status = %d)", w);
|
/external/ltp/testcases/kernel/syscalls/fork/ |
fork02.c | 57 int pid1, pid2, status; local 77 pid2 = wait(&status); 78 tst_resm(TINFO, "exit status of wait %d", status);
|
/external/ltp/testcases/kernel/syscalls/getpid/ |
getpid02.c | 88 int status; /* exit status of child process */ local 111 SAFE_WAIT(cleanup, &status); 112 if (!WIFEXITED(status) || 113 WEXITSTATUS(status) != 0)
|
/external/ltp/testcases/kernel/syscalls/getppid/ |
getppid02.c | 59 int status; local 85 SAFE_WAIT(cleanup, &status); 86 if (!WIFEXITED(status) || WEXITSTATUS(status) != 0)
|
/external/ltp/testcases/kernel/syscalls/kill/ |
kill09.c | 134 int status; local 171 waitpid(0, &status, WNOHANG);
|
/external/ltp/testcases/kernel/syscalls/pause/ |
pause02.c | 44 int status; local 85 wait(&status); 87 if (WIFEXITED(status)) { 88 if (WEXITSTATUS(status) == 0) 96 if (WIFSIGNALED(status)) { 97 switch (WTERMSIG(status)) {
|
pause03.c | 44 int status; local 72 SAFE_WAIT(NULL, &status); 74 if (WIFSIGNALED(status) && WTERMSIG(status) == SIGKILL) { 79 if (WIFSIGNALED(status)) { 81 tst_strsig(WTERMSIG(status))); 85 tst_resm(TFAIL, "child exited with %i", WEXITSTATUS(status));
|
/external/ltp/testcases/kernel/syscalls/pipe/ |
pipe02.c | 50 int status; local 88 SAFE_WAIT(&status); 90 if (!WIFSIGNALED(status)) { 93 sig = WTERMSIG(status);
|
/external/ltp/testcases/kernel/syscalls/ptrace/ |
ptrace05.c | 59 int status; local 105 waitpid(child, &status, 0); 109 if (WIFEXITED(status) 110 && WEXITSTATUS(status) == 0) { 121 if (WIFSIGNALED(status)) { 123 if (WTERMSIG(status) == SIGKILL) { 132 } else if (WIFEXITED(status)) { 136 } else if (WIFSTOPPED(status)) { 144 if (WIFSTOPPED(status)) { 152 } else if (WIFEXITED(status)) { [all...] |
spawn_ptrace_child.h | 75 int status; local 77 if (wait(&status) != pid) { 78 tst_brkm(TBROK | TERRNO, NULL, "wait(%i) failed: %#x", pid, status); 82 if (!WIFSTOPPED(status)) { 83 tst_brkm(TBROK, NULL, "child status not stopped: %#x", status);
|
/external/ltp/testcases/kernel/syscalls/request_key/ |
request_key03.c | 63 int status; local 149 SAFE_WAITPID(add_key_pid, &status, 0); 151 if (WIFEXITED(status) && WEXITSTATUS(status) == 0) { 155 } else if (WIFSIGNALED(status) && WTERMSIG(status) == SIGKILL) { 160 tst_brk(TBROK, "add_key child %s", tst_strstatus(status)); 163 SAFE_WAITPID(request_key_pid, &status, 0); 165 if (WIFEXITED(status) && WEXITSTATUS(status) == 0) [all...] |
/external/ltp/testcases/kernel/syscalls/rt_sigqueueinfo/ |
rt_sigqueueinfo01.c | 73 int status; local 93 wait(&status); 94 if (WIFEXITED(status) && WEXITSTATUS(status) == 0)
|
/external/ltp/testcases/kernel/syscalls/sched_getparam/ |
sched_getparam02.c | 91 int status; local 140 if ((waitpid(child_pid, &status, 0)) < 0) { 144 if ((WIFEXITED(status)) && (WEXITSTATUS(status) == 0))
|
/external/ltp/testcases/kernel/syscalls/setpgrp/ |
setpgrp01.c | 85 int pid, status; local 101 wait(&status); 102 exit(WEXITSTATUS(status));
|
/external/ltp/testcases/kernel/syscalls/switch/ |
endian_switch01.c | 50 int status; local 57 SAFE_WAIT(&status); 58 if (WIFSIGNALED(status)) { 59 int sig = WTERMSIG(status); 62 } else if (WIFEXITED(status)) { 63 int rc = WEXITSTATUS(status); 73 int status; local 85 SAFE_WAIT(&status); 86 if (WIFSIGNALED(status)) { 87 int sig = WTERMSIG(status); [all...] |
/external/ltp/testcases/kernel/syscalls/vhangup/ |
vhangup02.c | 63 int status; local 78 waitpid(pid, &status, 0);
|
/external/ltp/testcases/kernel/syscalls/wait/ |
wait02.c | 78 int fork_pid, status, exit_child = 1; local 88 TEST(wait(&status)); 92 } else if (WIFEXITED(status) && WEXITSTATUS(status) == exit_child) { 93 tst_resm(TPASS, "wait(&status) returned %ld", TEST_RETURN); 96 "wait(1) Failed, exit_child - 0x%x, status - 0x%x", 97 exit_child, status);
|
/external/ltp/testcases/kernel/syscalls/wait4/ |
wait401.c | 44 int status = 1; local 65 TEST(wait4(pid, &status, 0, &rusage)); 75 if (WIFEXITED(status) == 0) { 79 "- %d", TCID, WIFEXITED(status));
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/ |
12-1.c | 56 int ret, status; local 218 ctl = waitpid(child, &status, 0); 224 if (!WIFEXITED(status) || (WEXITSTATUS(status) != PTS_PASS)) {
|
13-1.c | 61 int ret, status; local 147 ctl = waitpid(child, &status, 0); 153 if (!WIFEXITED(status) || (WEXITSTATUS(status) != PTS_PASS)) {
|
14-1.c | 56 int ret, status; local 113 ctl = waitpid(child, &status, 0); 119 if (!WIFEXITED(status) || (WEXITSTATUS(status) != PTS_PASS)) {
|
17-1.c | 58 int ret, param, status; local 116 ctl = waitpid(child, &status, 0); 122 if (!WIFEXITED(status) || (WEXITSTATUS(status) != PTS_PASS)) {
|
17-2.c | 88 int ret, param, status; local 147 ctl = waitpid(child, &status, 0); 153 if (!WIFEXITED(status) || (WEXITSTATUS(status) != PTS_PASS)) {
|
21-1.c | 72 int ret, status; local 118 ctl = waitpid(child, &status, 0); 123 if (!WIFEXITED(status) || WEXITSTATUS(status) != PTS_PASS)
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/ |
6-1.c | 51 int status; local 89 waitpid(child, &status, WUNTRACED); 92 if (WIFSIGNALED(status)) { 93 sig_num = WTERMSIG(status); 102 if (WIFEXITED(status)) { 103 if (WEXITSTATUS(status) == 0) {
|