Home
last modified time | relevance | path

Searched refs:stat_loc (Results 1 – 5 of 5) sorted by relevance

/freebsd-14.2/contrib/kyua/utils/process/
H A Dstatus.cpp53 process::status::status(const int dead_pid_, int stat_loc) : in status() argument
55 _exited(WIFEXITED(stat_loc) ? in status()
56 optional< int >(WEXITSTATUS(stat_loc)) : none), in status()
57 _signaled(WIFSIGNALED(stat_loc) ? in status()
59 std::make_pair(WTERMSIG(stat_loc), WCOREDUMP(stat_loc))) : in status()
H A Doperations.cpp78 int stat_loc; in safe_wait() local
79 const pid_t pid = ::wait(&stat_loc); in safe_wait()
85 return process::status(pid, stat_loc); in safe_wait()
100 int stat_loc; in safe_waitpid() local
101 if (process::detail::syscall_waitpid(pid, &stat_loc, 0) == -1) { in safe_waitpid()
106 return process::status(pid, stat_loc); in safe_waitpid()
H A Dstatus_test.cpp84 int stat_loc; in fork_and_wait() local
85 ATF_REQUIRE(::waitpid(pid, &stat_loc, 0) != -1); in fork_and_wait()
86 const status s = status(pid, stat_loc); in fork_and_wait()
/freebsd-14.2/crypto/openssh/openbsd-compat/
H A Dbsd-waitpid.c33 waitpid(int pid, int *stat_loc, int options) in waitpid() argument
47 if (stat_loc) in waitpid()
48 *stat_loc = (int) statusp.w_status; in waitpid()
/freebsd-14.2/usr.sbin/cron/cron/
H A Dpopen.c223 WAIT_T stat_loc; in cron_pclose() local
234 while ((pid = wait(&stat_loc)) != pids[fdes] && pid != -1) in cron_pclose()
238 return (pid == -1 ? -1 : WEXITSTATUS(stat_loc)); in cron_pclose()