Lines Matching refs:ip_new_thread
1457 thread = imgp->ip_new_thread; in exec_mach_imgact()
1776 psa != NULL ? psa->psa_flags : 0, imgp->ip_new_thread, exec); in exec_mach_imgact()
1839 if (imgp->ip_new_thread == NULL) { in exec_mach_imgact()
2726 task_t task = get_threadtask(imgp->ip_new_thread); in exec_handle_port_actions()
2911 task_t task = get_threadtask(imgp->ip_new_thread); in exec_handle_exception_port_actions()
4140 error = fork1(p, &imgp->ip_new_thread, PROC_CREATE_SPAWN, coal); in posix_spawn()
4144 new_task = get_threadtask(imgp->ip_new_thread); in posix_spawn()
4189 imgp->ip_new_thread = cloneproc(old_task, NULL, p, CLONEPROC_EXEC); in posix_spawn()
4192 if (imgp->ip_new_thread == NULL) { in posix_spawn()
4198 new_task = get_threadtask(imgp->ip_new_thread); in posix_spawn()
4202 p = (proc_t)get_bsdthreadtask_info(imgp->ip_new_thread); in posix_spawn()
4230 context.vc_thread = imgp->ip_new_thread; in posix_spawn()
4429 ml_thread_set_disable_user_jop(imgp->ip_new_thread, disable_user_jop); in posix_spawn()
4430 ml_thread_set_jop_pid(imgp->ip_new_thread, new_task); in posix_spawn()
4477 thread_t child_thread = imgp->ip_new_thread; in posix_spawn()
4798 arcade_prepare(new_task, imgp->ip_new_thread); in posix_spawn()
4807 if (imgp && imgp->ip_new_thread) { in posix_spawn()
4808 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), TCRW_CLEAR_INITIAL_WAIT); in posix_spawn()
4823 error = exec_handle_spawnattr_policy(p, imgp->ip_new_thread, psa->psa_apptype, psa->psa_qos_clamp, in posix_spawn()
4829 task_transfer_turnstile_watchports(old_task, new_task, imgp->ip_new_thread); in posix_spawn()
4859 thread_t main_thread = imgp->ip_new_thread; in posix_spawn()
4885 psignal_vfork(p, proc_task(p), imgp->ip_new_thread, SIGTRAP); in posix_spawn()
4987 dtrace_thread_didexec(imgp->ip_new_thread); in posix_spawn()
4993 dtrace_thread_didexec(imgp->ip_new_thread); in posix_spawn()
5071 if (imgp != NULL && imgp->ip_new_thread) { in posix_spawn()
5078 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), clearwait_flags); in posix_spawn()
5079 thread_deallocate(imgp->ip_new_thread); in posix_spawn()
5080 imgp->ip_new_thread = NULL; in posix_spawn()
5140 thread_t new_thread = imgp->ip_new_thread; in proc_exec_switch_task()
5433 imgp->ip_new_thread = cloneproc(old_task, NULL, p, CLONEPROC_EXEC); in __mac_execve()
5435 if (imgp->ip_new_thread == NULL) { in __mac_execve()
5441 new_task = get_threadtask(imgp->ip_new_thread); in __mac_execve()
5445 p = (proc_t)get_bsdthreadtask_info(imgp->ip_new_thread); in __mac_execve()
5447 context.vc_thread = imgp->ip_new_thread; in __mac_execve()
5463 if (imgp->ip_new_thread != NULL) { in __mac_execve()
5468 new_task = get_threadtask(imgp->ip_new_thread); in __mac_execve()
5471 ml_thread_set_disable_user_jop(imgp->ip_new_thread, imgp->ip_flags & IMGPF_NOJOP ? TRUE : FALSE); in __mac_execve()
5485 assert(imgp->ip_new_thread != NULL); in __mac_execve()
5516 if (imgp->ip_new_thread && !error) { in __mac_execve()
5518 ml_thread_set_jop_pid(imgp->ip_new_thread, new_task); in __mac_execve()
5592 thread_t main_thread = imgp->ip_new_thread; in __mac_execve()
5606 arcade_prepare(new_task, imgp->ip_new_thread); in __mac_execve()
5621 dtrace_thread_didexec(imgp->ip_new_thread); in __mac_execve()
5650 if (imgp->ip_new_thread) { in __mac_execve()
5651 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), TCRW_CLEAR_INITIAL_WAIT); in __mac_execve()
5657 new_task, imgp->ip_new_thread); in __mac_execve()
5670 if (imgp->ip_new_thread) { in __mac_execve()
5677 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), clearwait_flags); in __mac_execve()
5678 thread_deallocate(imgp->ip_new_thread); in __mac_execve()
5679 imgp->ip_new_thread = NULL; in __mac_execve()
6597 if ((new_thread = imgp->ip_new_thread) != THREAD_NULL) { in exec_add_apple_strings()
6999 ipc_task_reset((imgp->ip_new_thread != NULL) ? in exec_handle_sugid()
7000 get_threadtask(imgp->ip_new_thread) : proc_task(p)); in exec_handle_sugid()
7001 ipc_thread_reset((imgp->ip_new_thread != NULL) ? in exec_handle_sugid()
7002 imgp->ip_new_thread : current_thread()); in exec_handle_sugid()
8094 kr = thread_process_signature(imgp->ip_new_thread, proc_get_task_raw(p)); in process_signature()
8122 psignal_vfork_with_reason(p, proc_task(p), imgp->ip_new_thread, in process_signature()