Lines Matching refs:ip_new_thread
1144 thread = imgp->ip_new_thread; in exec_mach_imgact()
1440 if (imgp->ip_new_thread == NULL) { in exec_mach_imgact()
2126 task_t task = get_threadtask(imgp->ip_new_thread); in exec_handle_port_actions()
3462 error = fork1(p, &imgp->ip_new_thread, PROC_CREATE_SPAWN, coal); in posix_spawn()
3466 new_task = get_threadtask(imgp->ip_new_thread); in posix_spawn()
3527 imgp->ip_new_thread = fork_create_child(old_task, in posix_spawn()
3535 if (imgp->ip_new_thread == NULL) { in posix_spawn()
3540 new_task = get_threadtask(imgp->ip_new_thread); in posix_spawn()
3545 p = (proc_t)get_bsdthreadtask_info(imgp->ip_new_thread); in posix_spawn()
3566 context.vc_thread = imgp->ip_new_thread; in posix_spawn()
3755 ml_thread_set_disable_user_jop(imgp->ip_new_thread, imgp->ip_flags & IMGPF_NOJOP ? TRUE : FALSE); in posix_spawn()
3756 ml_thread_set_jop_pid(imgp->ip_new_thread, new_task); in posix_spawn()
3760 p = proc_exec_switch_task(p, old_task, new_task, imgp->ip_new_thread, &inherit); in posix_spawn()
3771 thread_t child_thread = imgp->ip_new_thread; in posix_spawn()
4040 arcade_prepare(new_task, imgp->ip_new_thread); in posix_spawn()
4045 if (imgp && imgp->ip_new_thread) { in posix_spawn()
4046 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), TCRW_CLEAR_INITIAL_WAIT); in posix_spawn()
4061 error = exec_handle_spawnattr_policy(p, imgp->ip_new_thread, psa->psa_apptype, psa->psa_qos_clamp, in posix_spawn()
4067 task_transfer_turnstile_watchports(old_task, new_task, imgp->ip_new_thread); in posix_spawn()
4094 thread_t main_thread = imgp->ip_new_thread; in posix_spawn()
4124 psignal_vfork(p, p->task, imgp->ip_new_thread, SIGTRAP); in posix_spawn()
4224 dtrace_thread_didexec(imgp->ip_new_thread); in posix_spawn()
4230 dtrace_thread_didexec(imgp->ip_new_thread); in posix_spawn()
4261 if (imgp && imgp->ip_new_thread) { in posix_spawn()
4262 clear_thread_ro_proc(imgp->ip_new_thread); in posix_spawn()
4314 if (imgp != NULL && imgp->ip_new_thread) { in posix_spawn()
4316 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), TCRW_CLEAR_FINAL_WAIT); in posix_spawn()
4317 thread_deallocate(imgp->ip_new_thread); in posix_spawn()
4318 imgp->ip_new_thread = NULL; in posix_spawn()
4639 imgp->ip_new_thread = fork_create_child(old_task, in __mac_execve()
4647 if (imgp->ip_new_thread == NULL) { in __mac_execve()
4652 new_task = get_threadtask(imgp->ip_new_thread); in __mac_execve()
4653 context.vc_thread = imgp->ip_new_thread; in __mac_execve()
4661 if (imgp->ip_new_thread != NULL) { in __mac_execve()
4666 new_task = get_threadtask(imgp->ip_new_thread); in __mac_execve()
4669 ml_thread_set_disable_user_jop(imgp->ip_new_thread, imgp->ip_flags & IMGPF_NOJOP ? TRUE : FALSE); in __mac_execve()
4674 p = proc_exec_switch_task(p, old_task, new_task, imgp->ip_new_thread, &inherit); in __mac_execve()
4683 assert(imgp->ip_new_thread != NULL); in __mac_execve()
4690 if (imgp->ip_new_thread && !error) { in __mac_execve()
4692 ml_thread_set_jop_pid(imgp->ip_new_thread, new_task); in __mac_execve()
4757 thread_t main_thread = imgp->ip_new_thread; in __mac_execve()
4770 arcade_prepare(new_task, imgp->ip_new_thread); in __mac_execve()
4787 dtrace_thread_didexec(imgp->ip_new_thread); in __mac_execve()
4820 if (imgp && imgp->ip_new_thread) { in __mac_execve()
4821 clear_thread_ro_proc(imgp->ip_new_thread); in __mac_execve()
4828 if (imgp->ip_new_thread) { in __mac_execve()
4829 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), TCRW_CLEAR_INITIAL_WAIT); in __mac_execve()
4835 new_task, imgp->ip_new_thread); in __mac_execve()
4848 if (imgp->ip_new_thread) { in __mac_execve()
4850 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), TCRW_CLEAR_FINAL_WAIT); in __mac_execve()
4851 thread_deallocate(imgp->ip_new_thread); in __mac_execve()
4852 imgp->ip_new_thread = NULL; in __mac_execve()
5749 if ((new_thread = imgp->ip_new_thread) != THREAD_NULL) { in exec_add_apple_strings()
6144 ipc_task_reset((imgp->ip_new_thread != NULL) ? in exec_handle_sugid()
6145 get_threadtask(imgp->ip_new_thread) : p->task); in exec_handle_sugid()
6146 ipc_thread_reset((imgp->ip_new_thread != NULL) ? in exec_handle_sugid()
6147 imgp->ip_new_thread : current_thread()); in exec_handle_sugid()
6255 if (imgp->ip_new_thread != NULL) { in exec_handle_sugid()
6256 task = get_threadtask(imgp->ip_new_thread); in exec_handle_sugid()
7099 psignal_vfork_with_reason(p, p->task, imgp->ip_new_thread, in check_for_signature()