Lines Matching defs:uap

228 exit(proc_t p, struct exit_args *uap, int *retval)
230 exit1(p, W_EXITCODE(uap->rval, 0), retval);
1124 wait4(proc_t q, struct wait4_args *uap, int32_t *retval)
1127 return(wait4_nocancel(q, (struct wait4_nocancel_args *)uap, retval));
1131 wait4_nocancel(proc_t q, struct wait4_nocancel_args *uap, int32_t *retval)
1138 AUDIT_ARG(pid, uap->pid);
1140 if (uap->pid == 0)
1141 uap->pid = -q->p_pgrpid;
1152 if (uap->pid != WAIT_ANY &&
1153 p->p_pid != uap->pid &&
1154 p->p_pgrpid != -(uap->pid))
1177 if (uap->status) {
1181 uap->status,
1186 if (uap->rusage) {
1194 uap->rusage,
1201 uap->rusage,
1236 (p->p_lflag & P_LTRACED || uap->options & WUNTRACED)) {
1246 if (uap->status) {
1249 uap->status,
1259 if ((uap->options & WCONTINUED) &&
1270 if (uap->status) {
1273 uap->status,
1288 if (uap->options & WNOHANG) {
1333 * Parameters: uap->idtype one of P_PID, P_PGID, P_ALL
1334 * uap->id pid_t or gid_t or ignored
1335 * uap->infop Address of siginfo_t struct in
1337 * uap->options flag values
1343 waitid(proc_t q, struct waitid_args *uap, int32_t *retval)
1346 return (waitid_nocancel(q, (struct waitid_nocancel_args *)uap, retval));
1350 waitid_nocancel(proc_t q, struct waitid_nocancel_args *uap,
1359 if (uap->options == 0 ||
1360 (uap->options & ~(WNOHANG|WNOWAIT|WCONTINUED|WSTOPPED|WEXITED)))
1363 switch (uap->idtype) {
1366 if (((int)uap->id) < 0)
1379 switch (uap->idtype) {
1381 if (p->p_pid != (pid_t)uap->id)
1385 if (p->p_pgrpid != (pid_t)uap->id)
1411 if (!(uap->options & WEXITED))
1428 caller64, uap->infop)) != 0)
1432 if (!(uap->options & WNOWAIT)) {
1443 if (!(uap->options & WSTOPPED))
1463 caller64, uap->infop)) != 0)
1467 if (!(uap->options & WNOWAIT)) {
1475 if (!(uap->options & WCONTINUED))
1498 caller64, uap->infop)) != 0)
1502 if (!(uap->options & WNOWAIT)) {
1524 if (uap->options & WNOHANG) {