Searched refs:wait4 (Results 1 - 25 of 35) sorted by relevance

12

/freebsd-13-stable/lib/libc/sys/
H A Dwait4.c42 #pragma weak wait4 macro
44 wait4(pid_t pid, int *status, int options, struct rusage *ru) function
H A Dinterposing_table.c72 SLOT(wait4, __sys_wait4),
H A DMakefile.inc90 wait4 \
503 wait.2 wait4.2 \
/freebsd-13-stable/crypto/openssh/openbsd-compat/
H A Dbsd-waitpid.c43 /* wait4() wants pid=0 for indiscriminate wait. */
46 wait_pid = wait4(pid, &statusp, options, NULL);
/freebsd-13-stable/contrib/netbsd-tests/lib/libc/sys/
H A Dt_wait_noproc.c98 ATF_TC(wait4); variable
99 ATF_TC_HEAD(wait4, tc)
102 "Test that wait4(2) returns ECHILD for WAIT_ANY and option %s",
106 ATF_TC_BODY(wait4, tc)
109 wait4(WAIT_ANY, NULL, TWAIT_OPTION, NULL) == -1);
285 "Test that wait4(2) returns ECHILD for WAIT_ANY and option %s",
295 printf("Testing wait4(2) with options %x\n", o);
298 wait4(WAIT_ANY, NULL, o | TWAIT_OPTION, NULL) == -1);
332 ATF_TP_ADD_TC(tp, wait4);
/freebsd-13-stable/contrib/bmake/
H A Dwait.h75 # define waitpid(pid, statusp, flags) wait4(pid, statusp, flags, (char *)0)
/freebsd-13-stable/contrib/capsicum-test/
H A Dsmoketest.c93 rc = wait4(-1, &status, WNOHANG, NULL);
94 if (rc > 0) fprintf(stderr, "*** wait4(-1, ...) unexpectedly found child %d\n", rc);
122 rc = wait4(child, &status, 0, NULL);
/freebsd-13-stable/sys/sys/
H A Dwait.h41 * This file holds definitions relevant to the wait4 system call and the
71 * Option bits for the third argument of wait4. WNOHANG causes the
134 * Tokens for special values of the "pid" parameter to wait4.
169 pid_t wait4(pid_t, int *, int, struct rusage *);
H A Dsyscall.mk12 wait4.o \
/freebsd-13-stable/libexec/rpc.rwalld/
H A Drwalld.c141 while(wait4(-1, NULL, WNOHANG, NULL) > 0)
/freebsd-13-stable/usr.sbin/autofs/
H A Dpopen.c174 pid = wait4(cur->pid, &status, 0, NULL);
H A Dautomountd.c405 pid = wait4(-1, &status, 0, NULL);
407 pid = wait4(-1, &status, WNOHANG, NULL);
/freebsd-13-stable/contrib/netbsd-tests/kernel/
H A Dt_ptrace_wait.h40 * - wait4(2)-like accepting pid_t, optional options parameter, struct rusage*
48 * In a common use-case wait4(2) and wait6(2)-like function can work the almost
50 * wait6(2) must specify P_PID for idtype to match wpid from wait4(2).
51 * To behave like wait4(2), wait6(2) the 'options' to wait must include
89 # define TWAIT_FNAME "wait4"
90 # define TWAIT_WAIT4TYPE(a,b,c,d) wait4((a),(b),(c),(d))
91 # define TWAIT_GENERIC(a,b,c) wait4((a),(b),(c),NULL)
106 * - TWAIT_GENERIC() (wait, wait2, waitpid, wait3, wait4, wait6)
107 * - TWAIT_WAIT4TYPE() (wait2, waitpid, wait3, wait4)
113 * - TWAIT_HAVE_PID (wait2, waitpid, waitid, wait4, wait
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Support/Unix/
H A DProgram.inc335 using ::wait4;
337 static pid_t (wait4)(pid_t pid, int *status, int options, struct rusage *usage);
345 extern "C" pid_t (wait4)(pid_t pid, int *status, int options,
348 pid_t (llvm::sys::wait4)(pid_t pid, int *status, int options,
354 // AIX wait4 does not work well with WNOHANG.
356 return ::wait4(pid, status, options, usage);
373 return ::wait4(pid, status, options & ~WNOHANG, usage);
408 WaitResult.Pid = sys::wait4(ChildPid, &status, WaitPidOptions, &Info);
/freebsd-13-stable/contrib/smbfs/lib/smb/
H A Dsubr.c297 if (wait4(pid, (int *)&status, 0, NULL) != pid) {
/freebsd-13-stable/lib/libc/include/
H A Dnamespace.h240 #define wait4 _wait4 macro
H A Dun-namespace.h221 #undef wait4 macro
/freebsd-13-stable/usr.bin/time/
H A Dtime.c141 while (wait4(pid, &status, 0, &ru) != pid) {
/freebsd-13-stable/usr.sbin/iscsid/
H A Discsid.c553 pid = wait4(-1, &status, 0, NULL);
555 pid = wait4(-1, &status, WNOHANG, NULL);
/freebsd-13-stable/usr.sbin/pmc/
H A Dcmd_pmc_stat.c421 if (wait4(pmc_util_get_pid(&pmc_args), &waitstatus, 0, &ru) > 0) {
449 if (wait4(pmc_util_get_pid(&pmc_args), &waitstatus, 0, &ru) > 0) {
/freebsd-13-stable/bin/sh/tests/builtins/
H A DMakefile182 ${PACKAGE}FILES+= wait4.0
/freebsd-13-stable/sys/contrib/openzfs/cmd/zed/
H A Dzed_exec.c210 pid = wait4(0, &status, WNOHANG, &usage);
/freebsd-13-stable/lib/libthr/thread/
H A Dthr_syscalls.c679 SLOT(wait4);
/freebsd-13-stable/usr.sbin/cron/cron/
H A Ddo_command.c669 while ((pid = wait4(childpid, &waiter, 0, NULL)) < 0 && errno == EINTR)
/freebsd-13-stable/usr.sbin/rpc.statd/
H A Dstatd.c647 pid = wait4(-1, &status, WNOHANG, (struct rusage*)0);

Completed in 259 milliseconds

12