Lines Matching refs:ip_new_thread
1505 thread = imgp->ip_new_thread; in exec_mach_imgact()
1842 psa != NULL ? psa->psa_flags : 0, imgp->ip_new_thread, exec); in exec_mach_imgact()
1905 if (imgp->ip_new_thread == NULL) { in exec_mach_imgact()
2814 task_t task = get_threadtask(imgp->ip_new_thread); in exec_handle_port_actions()
2999 task_t task = get_threadtask(imgp->ip_new_thread); in exec_handle_exception_port_actions()
4225 error = fork1(p, &imgp->ip_new_thread, PROC_CREATE_SPAWN, coal); in posix_spawn()
4229 new_task = get_threadtask(imgp->ip_new_thread); in posix_spawn()
4274 imgp->ip_new_thread = cloneproc(old_task, NULL, p, CLONEPROC_EXEC); in posix_spawn()
4277 if (imgp->ip_new_thread == NULL) { in posix_spawn()
4283 new_task = get_threadtask(imgp->ip_new_thread); in posix_spawn()
4287 p = (proc_t)get_bsdthreadtask_info(imgp->ip_new_thread); in posix_spawn()
4315 context.vc_thread = imgp->ip_new_thread; in posix_spawn()
4516 ml_thread_set_disable_user_jop(imgp->ip_new_thread, disable_user_jop); in posix_spawn()
4517 ml_thread_set_jop_pid(imgp->ip_new_thread, new_task); in posix_spawn()
4564 thread_t child_thread = imgp->ip_new_thread; in posix_spawn()
4864 arcade_prepare(new_task, imgp->ip_new_thread); in posix_spawn()
4873 if (imgp && imgp->ip_new_thread) { in posix_spawn()
4874 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), TCRW_CLEAR_INITIAL_WAIT); in posix_spawn()
4889 error = exec_handle_spawnattr_policy(p, imgp->ip_new_thread, psa->psa_apptype, psa->psa_qos_clamp, in posix_spawn()
4895 task_transfer_turnstile_watchports(old_task, new_task, imgp->ip_new_thread); in posix_spawn()
4925 thread_t main_thread = imgp->ip_new_thread; in posix_spawn()
4951 psignal_vfork(p, proc_task(p), imgp->ip_new_thread, SIGTRAP); in posix_spawn()
5052 dtrace_thread_didexec(imgp->ip_new_thread); in posix_spawn()
5058 dtrace_thread_didexec(imgp->ip_new_thread); in posix_spawn()
5136 if (imgp != NULL && imgp->ip_new_thread) { in posix_spawn()
5143 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), clearwait_flags); in posix_spawn()
5144 thread_deallocate(imgp->ip_new_thread); in posix_spawn()
5145 imgp->ip_new_thread = NULL; in posix_spawn()
5205 thread_t new_thread = imgp->ip_new_thread; in proc_exec_switch_task()
5498 imgp->ip_new_thread = cloneproc(old_task, NULL, p, CLONEPROC_EXEC); in __mac_execve()
5500 if (imgp->ip_new_thread == NULL) { in __mac_execve()
5506 new_task = get_threadtask(imgp->ip_new_thread); in __mac_execve()
5510 p = (proc_t)get_bsdthreadtask_info(imgp->ip_new_thread); in __mac_execve()
5512 context.vc_thread = imgp->ip_new_thread; in __mac_execve()
5528 if (imgp->ip_new_thread != NULL) { in __mac_execve()
5533 new_task = get_threadtask(imgp->ip_new_thread); in __mac_execve()
5536 ml_thread_set_disable_user_jop(imgp->ip_new_thread, imgp->ip_flags & IMGPF_NOJOP ? TRUE : FALSE); in __mac_execve()
5550 assert(imgp->ip_new_thread != NULL); in __mac_execve()
5565 if (imgp->ip_new_thread && !error) { in __mac_execve()
5567 ml_thread_set_jop_pid(imgp->ip_new_thread, new_task); in __mac_execve()
5641 thread_t main_thread = imgp->ip_new_thread; in __mac_execve()
5655 arcade_prepare(new_task, imgp->ip_new_thread); in __mac_execve()
5670 dtrace_thread_didexec(imgp->ip_new_thread); in __mac_execve()
5699 if (imgp->ip_new_thread) { in __mac_execve()
5700 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), TCRW_CLEAR_INITIAL_WAIT); in __mac_execve()
5706 new_task, imgp->ip_new_thread); in __mac_execve()
5719 if (imgp->ip_new_thread) { in __mac_execve()
5726 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), clearwait_flags); in __mac_execve()
5727 thread_deallocate(imgp->ip_new_thread); in __mac_execve()
5728 imgp->ip_new_thread = NULL; in __mac_execve()
6646 if ((new_thread = imgp->ip_new_thread) != THREAD_NULL) { in exec_add_apple_strings()
7051 ipc_task_reset((imgp->ip_new_thread != NULL) ? in exec_handle_sugid()
7052 get_threadtask(imgp->ip_new_thread) : proc_task(p)); in exec_handle_sugid()
7053 ipc_thread_reset((imgp->ip_new_thread != NULL) ? in exec_handle_sugid()
7054 imgp->ip_new_thread : current_thread()); in exec_handle_sugid()
8098 kr = thread_process_signature(imgp->ip_new_thread, proc_get_task_raw(p)); in process_signature()
8126 psignal_vfork_with_reason(p, proc_task(p), imgp->ip_new_thread, in process_signature()