Lines Matching refs:ip_new_thread
1145 thread = imgp->ip_new_thread; in exec_mach_imgact()
1441 if (imgp->ip_new_thread == NULL) { in exec_mach_imgact()
2127 task_t task = get_threadtask(imgp->ip_new_thread); in exec_handle_port_actions()
3444 error = fork1(p, &imgp->ip_new_thread, PROC_CREATE_SPAWN, coal); in posix_spawn()
3448 new_task = get_threadtask(imgp->ip_new_thread); in posix_spawn()
3509 imgp->ip_new_thread = fork_create_child(old_task, in posix_spawn()
3517 if (imgp->ip_new_thread == NULL) { in posix_spawn()
3522 new_task = get_threadtask(imgp->ip_new_thread); in posix_spawn()
3527 p = (proc_t)get_bsdthreadtask_info(imgp->ip_new_thread); in posix_spawn()
3548 context.vc_thread = imgp->ip_new_thread; in posix_spawn()
3737 ml_thread_set_disable_user_jop(imgp->ip_new_thread, imgp->ip_flags & IMGPF_NOJOP ? TRUE : FALSE); in posix_spawn()
3738 ml_thread_set_jop_pid(imgp->ip_new_thread, new_task); in posix_spawn()
3742 p = proc_exec_switch_task(p, old_task, new_task, imgp->ip_new_thread, &inherit); in posix_spawn()
3753 thread_t child_thread = imgp->ip_new_thread; in posix_spawn()
4022 arcade_prepare(new_task, imgp->ip_new_thread); in posix_spawn()
4027 if (imgp && imgp->ip_new_thread) { in posix_spawn()
4028 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), TCRW_CLEAR_INITIAL_WAIT); in posix_spawn()
4043 error = exec_handle_spawnattr_policy(p, imgp->ip_new_thread, psa->psa_apptype, psa->psa_qos_clamp, in posix_spawn()
4049 task_transfer_turnstile_watchports(old_task, new_task, imgp->ip_new_thread); in posix_spawn()
4076 thread_t main_thread = imgp->ip_new_thread; in posix_spawn()
4106 psignal_vfork(p, p->task, imgp->ip_new_thread, SIGTRAP); in posix_spawn()
4202 dtrace_thread_didexec(imgp->ip_new_thread); in posix_spawn()
4208 dtrace_thread_didexec(imgp->ip_new_thread); in posix_spawn()
4239 if (imgp && imgp->ip_new_thread) { in posix_spawn()
4240 clear_thread_ro_proc(imgp->ip_new_thread); in posix_spawn()
4292 if (imgp != NULL && imgp->ip_new_thread) { in posix_spawn()
4294 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), TCRW_CLEAR_FINAL_WAIT); in posix_spawn()
4295 thread_deallocate(imgp->ip_new_thread); in posix_spawn()
4296 imgp->ip_new_thread = NULL; in posix_spawn()
4617 imgp->ip_new_thread = fork_create_child(old_task, in __mac_execve()
4625 if (imgp->ip_new_thread == NULL) { in __mac_execve()
4630 new_task = get_threadtask(imgp->ip_new_thread); in __mac_execve()
4631 context.vc_thread = imgp->ip_new_thread; in __mac_execve()
4639 if (imgp->ip_new_thread != NULL) { in __mac_execve()
4644 new_task = get_threadtask(imgp->ip_new_thread); in __mac_execve()
4647 ml_thread_set_disable_user_jop(imgp->ip_new_thread, imgp->ip_flags & IMGPF_NOJOP ? TRUE : FALSE); in __mac_execve()
4652 p = proc_exec_switch_task(p, old_task, new_task, imgp->ip_new_thread, &inherit); in __mac_execve()
4661 assert(imgp->ip_new_thread != NULL); in __mac_execve()
4668 if (imgp->ip_new_thread && !error) { in __mac_execve()
4670 ml_thread_set_jop_pid(imgp->ip_new_thread, new_task); in __mac_execve()
4735 thread_t main_thread = imgp->ip_new_thread; in __mac_execve()
4748 arcade_prepare(new_task, imgp->ip_new_thread); in __mac_execve()
4765 dtrace_thread_didexec(imgp->ip_new_thread); in __mac_execve()
4798 if (imgp && imgp->ip_new_thread) { in __mac_execve()
4799 clear_thread_ro_proc(imgp->ip_new_thread); in __mac_execve()
4806 if (imgp->ip_new_thread) { in __mac_execve()
4807 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), TCRW_CLEAR_INITIAL_WAIT); in __mac_execve()
4813 new_task, imgp->ip_new_thread); in __mac_execve()
4826 if (imgp->ip_new_thread) { in __mac_execve()
4828 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), TCRW_CLEAR_FINAL_WAIT); in __mac_execve()
4829 thread_deallocate(imgp->ip_new_thread); in __mac_execve()
4830 imgp->ip_new_thread = NULL; in __mac_execve()
5727 if ((new_thread = imgp->ip_new_thread) != THREAD_NULL) { in exec_add_apple_strings()
6095 ipc_task_reset((imgp->ip_new_thread != NULL) ? in exec_handle_sugid()
6096 get_threadtask(imgp->ip_new_thread) : p->task); in exec_handle_sugid()
6097 ipc_thread_reset((imgp->ip_new_thread != NULL) ? in exec_handle_sugid()
6098 imgp->ip_new_thread : current_thread()); in exec_handle_sugid()
6206 if (imgp->ip_new_thread != NULL) { in exec_handle_sugid()
6207 task = get_threadtask(imgp->ip_new_thread); in exec_handle_sugid()
7054 psignal_vfork_with_reason(p, p->task, imgp->ip_new_thread, in check_for_signature()