Lines Matching refs:ip_new_thread

1348 	thread = imgp->ip_new_thread;  in exec_mach_imgact()
1677 psa != NULL ? psa->psa_flags : 0, imgp->ip_new_thread, exec); in exec_mach_imgact()
1740 if (imgp->ip_new_thread == NULL) { in exec_mach_imgact()
2649 task_t task = get_threadtask(imgp->ip_new_thread); in exec_handle_port_actions()
2834 task_t task = get_threadtask(imgp->ip_new_thread); in exec_handle_exception_port_actions()
4061 error = fork1(p, &imgp->ip_new_thread, PROC_CREATE_SPAWN, coal); in posix_spawn()
4065 new_task = get_threadtask(imgp->ip_new_thread); in posix_spawn()
4110 imgp->ip_new_thread = cloneproc(old_task, NULL, p, CLONEPROC_EXEC); in posix_spawn()
4113 if (imgp->ip_new_thread == NULL) { in posix_spawn()
4119 new_task = get_threadtask(imgp->ip_new_thread); in posix_spawn()
4123 p = (proc_t)get_bsdthreadtask_info(imgp->ip_new_thread); in posix_spawn()
4151 context.vc_thread = imgp->ip_new_thread; in posix_spawn()
4350 ml_thread_set_disable_user_jop(imgp->ip_new_thread, disable_user_jop); in posix_spawn()
4351 ml_thread_set_jop_pid(imgp->ip_new_thread, new_task); in posix_spawn()
4398 thread_t child_thread = imgp->ip_new_thread; in posix_spawn()
4698 arcade_prepare(new_task, imgp->ip_new_thread); in posix_spawn()
4707 if (imgp && imgp->ip_new_thread) { in posix_spawn()
4708 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), TCRW_CLEAR_INITIAL_WAIT); in posix_spawn()
4723 error = exec_handle_spawnattr_policy(p, imgp->ip_new_thread, psa->psa_apptype, psa->psa_qos_clamp, in posix_spawn()
4729 task_transfer_turnstile_watchports(old_task, new_task, imgp->ip_new_thread); in posix_spawn()
4759 thread_t main_thread = imgp->ip_new_thread; in posix_spawn()
4785 psignal_vfork(p, proc_task(p), imgp->ip_new_thread, SIGTRAP); in posix_spawn()
4887 dtrace_thread_didexec(imgp->ip_new_thread); in posix_spawn()
4893 dtrace_thread_didexec(imgp->ip_new_thread); in posix_spawn()
4971 if (imgp != NULL && imgp->ip_new_thread) { in posix_spawn()
4978 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), clearwait_flags); in posix_spawn()
4979 thread_deallocate(imgp->ip_new_thread); in posix_spawn()
4980 imgp->ip_new_thread = NULL; in posix_spawn()
5040 thread_t new_thread = imgp->ip_new_thread; in proc_exec_switch_task()
5333 imgp->ip_new_thread = cloneproc(old_task, NULL, p, CLONEPROC_EXEC); in __mac_execve()
5335 if (imgp->ip_new_thread == NULL) { in __mac_execve()
5341 new_task = get_threadtask(imgp->ip_new_thread); in __mac_execve()
5345 p = (proc_t)get_bsdthreadtask_info(imgp->ip_new_thread); in __mac_execve()
5347 context.vc_thread = imgp->ip_new_thread; in __mac_execve()
5363 if (imgp->ip_new_thread != NULL) { in __mac_execve()
5368 new_task = get_threadtask(imgp->ip_new_thread); in __mac_execve()
5371 ml_thread_set_disable_user_jop(imgp->ip_new_thread, imgp->ip_flags & IMGPF_NOJOP ? TRUE : FALSE); in __mac_execve()
5385 assert(imgp->ip_new_thread != NULL); in __mac_execve()
5400 if (imgp->ip_new_thread && !error) { in __mac_execve()
5402 ml_thread_set_jop_pid(imgp->ip_new_thread, new_task); in __mac_execve()
5476 thread_t main_thread = imgp->ip_new_thread; in __mac_execve()
5490 arcade_prepare(new_task, imgp->ip_new_thread); in __mac_execve()
5505 dtrace_thread_didexec(imgp->ip_new_thread); in __mac_execve()
5534 if (imgp->ip_new_thread) { in __mac_execve()
5535 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), TCRW_CLEAR_INITIAL_WAIT); in __mac_execve()
5541 new_task, imgp->ip_new_thread); in __mac_execve()
5554 if (imgp->ip_new_thread) { in __mac_execve()
5561 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), clearwait_flags); in __mac_execve()
5562 thread_deallocate(imgp->ip_new_thread); in __mac_execve()
5563 imgp->ip_new_thread = NULL; in __mac_execve()
6481 if ((new_thread = imgp->ip_new_thread) != THREAD_NULL) { in exec_add_apple_strings()
6883 ipc_task_reset((imgp->ip_new_thread != NULL) ? in exec_handle_sugid()
6884 get_threadtask(imgp->ip_new_thread) : proc_task(p)); in exec_handle_sugid()
6885 ipc_thread_reset((imgp->ip_new_thread != NULL) ? in exec_handle_sugid()
6886 imgp->ip_new_thread : current_thread()); in exec_handle_sugid()
7977 kr = thread_process_signature(imgp->ip_new_thread, proc_get_task_raw(p)); in process_signature()
8005 psignal_vfork_with_reason(p, proc_task(p), imgp->ip_new_thread, in process_signature()