Lines Matching refs:rusage
42 sprint_rusage(const struct rusage *const ru) in sprint_rusage()
151 const struct rusage *const rusage) in do_waitid() argument
158 infop, poison(options), rusage); in do_waitid()
192 TAIL_ALLOC_OBJECT_CONST_PTR(struct rusage, rusage); in main()
193 if (do_waitid(P_PID, pid, sinfo, WNOHANG|WEXITED|WSTOPPED, rusage)) in main()
196 pid, sprint_rusage(rusage)); in main()
201 if (do_waitid(P_PID, pid, sinfo, WEXITED, rusage)) in main()
204 pid, sprint_siginfo(sinfo, "42"), sprint_rusage(rusage)); in main()
215 if (do_waitid(P_PID, pid, sinfo, WEXITED, rusage)) in main()
218 pid, sprint_siginfo(sinfo, "SIGUSR1"), sprint_rusage(rusage)); in main()
236 if (do_waitid(P_PID, pid, sinfo, WSTOPPED, rusage)) in main()
239 pid, sprint_siginfo(sinfo, "SIGSTOP"), sprint_rusage(rusage)); in main()
245 if (do_waitid(P_PID, pid, sinfo, WCONTINUED, rusage)) in main()
248 pid, sprint_siginfo(sinfo, "SIGCONT"), sprint_rusage(rusage)); in main()
254 if (do_waitid(P_PID, pid, sinfo, WEXITED, rusage)) in main()
257 pid, sprint_siginfo(sinfo, "0"), sprint_rusage(rusage)); in main()
259 long rc = do_waitid(P_ALL, -1, sinfo, WEXITED|WSTOPPED, rusage); in main()
261 " = %ld %s (%m)\n", sinfo, rusage, rc, errno2name()); in main()