Home
last modified time | relevance | path

Searched refs:targp (Results 1 – 2 of 2) sorted by relevance

/xnu-12377.1.9/bsd/kern/
H A Dkern_prot.c573 proc_t targp = PROC_NULL; /* target process */ in setpgid() local
583 if ((targp = proc_find(uap->pid)) == 0 || !inferior(targp)) { in setpgid()
584 if (targp != PROC_NULL) { in setpgid()
591 targp_pg = proc_pgrp(targp, NULL); in setpgid()
596 if (targp->p_flag & P_EXEC) { in setpgid()
601 targp = curp; in setpgid()
602 targp_pg = proc_pgrp(targp, NULL); in setpgid()
605 if (SESS_LEADER(targp, targp_pg->pg_session)) { in setpgid()
615 uap->pgid = proc_getpid(targp); in setpgid()
616 } else if (uap->pgid != proc_getpid(targp)) { in setpgid()
[all …]
/xnu-12377.1.9/tests/
H A Dldt.c860 thread_arg_t *targp = (thread_arg_t *)arg; in thread_32bit() local
870 (void)stack_range_to_GSbase(targp->compat_stackaddr, cthread_self); in thread_32bit()
876 pthread_mutex_lock(&targp->mutex); in thread_32bit()
879 if (targp->done == FALSE) { in thread_32bit()
880 pthread_cond_wait(&targp->condvar, &targp->mutex); in thread_32bit()
884 if (call_compatmode(targp->compat_stackaddr, 0, in thread_32bit()
890 } while (targp->done == FALSE); in thread_32bit()
892 pthread_mutex_unlock(&targp->mutex); in thread_32bit()