Home
last modified time | relevance | path

Searched refs:wstatus (Results 1 – 6 of 6) sorted by relevance

/third_party/musl/libc-test/src/functional/
Datexit_dlclose.c86 int wstatus; in main() local
92 w = waitpid(pid, &wstatus, 0); in main()
98 if (WIFEXITED(wstatus)) { in main()
99 err = WEXITSTATUS(wstatus); in main()
102 } else if (WIFSIGNALED(wstatus)) { in main()
103 t_error("killed by signal %d\n", WTERMSIG(wstatus)); in main()
105 } else if (WIFSTOPPED(wstatus)) { in main()
106 t_error("stopped by signal %d\n", WSTOPSIG(wstatus)); in main()
109 t_error("stopped by signal %d\n", WSTOPSIG(wstatus)); in main()
/third_party/ltp/testcases/kernel/syscalls/mmap/
Dmmap18.c154 int wstatus; in grow_stack_success() local
163 SAFE_WAIT(&wstatus); in grow_stack_success()
164 if (WIFEXITED(wstatus) && WEXITSTATUS(wstatus) == 0) in grow_stack_success()
167 tst_res(TFAIL, "Child: %s", tst_strstatus(wstatus)); in grow_stack_success()
178 int wstatus; in grow_stack_fail() local
194 SAFE_WAIT(&wstatus); in grow_stack_fail()
195 if (WIFSIGNALED(wstatus) && WTERMSIG(wstatus) == SIGSEGV) in grow_stack_fail()
198 tst_res(TFAIL, "Child: %s", tst_strstatus(wstatus)); in grow_stack_fail()
/third_party/cups-filters/filter/
Dmupdftoraster.c178 int wstatus; in mutool_spawn() local
212 if (waitpid (pid, &wstatus, 0) == -1) { in mutool_spawn()
220 if (WIFEXITED(wstatus)) in mutool_spawn()
222 status = WEXITSTATUS(wstatus); in mutool_spawn()
223 else if (WIFSIGNALED(wstatus)) in mutool_spawn()
225 status = 256 * WTERMSIG(wstatus); in mutool_spawn()
Dgstoraster.c395 int wstatus; in gs_spawn() local
488 if (waitpid (pid, &wstatus, 0) == -1) { in gs_spawn()
496 if (WIFEXITED(wstatus)) in gs_spawn()
498 status = WEXITSTATUS(wstatus); in gs_spawn()
499 else if (WIFSIGNALED(wstatus)) in gs_spawn()
501 status = 256 * WTERMSIG(wstatus); in gs_spawn()
/third_party/cups-filters/filter/pdftopdf/
Dpdftopdf.cc946 int wstatus; in sub_process_spawn() local
1040 if (waitpid (pid, &wstatus, 0) == -1) { in sub_process_spawn()
1048 if (WIFEXITED(wstatus)) in sub_process_spawn()
1050 status = WEXITSTATUS(wstatus); in sub_process_spawn()
1051 else if (WIFSIGNALED(wstatus)) in sub_process_spawn()
1053 status = 256 * WTERMSIG(wstatus); in sub_process_spawn()
/third_party/rust/crates/rustix/src/backend/libc/fs/
Dsyscalls.rs626 let mut wstatus = 0; in utimensat() localVariable
627 let _ = ret_c_int(c::waitpid(child_pid, &mut wstatus, 0))?; in utimensat()
628 if c::WIFEXITED(wstatus) { in utimensat()
630 match c::WEXITSTATUS(wstatus) { in utimensat()