kern_wait
error = kern_wait(td, uap->pid, &status, uap->options, rup);
error = kern_wait(td, WAIT_ANY, &status, 0, NULL);
error = kern_wait(td, uap->pid, &status, uap->options, rup);
int kern_wait(struct thread *td, pid_t pid, int *status, int options,