Lines Matching refs:ip_new_thread
1309 thread = imgp->ip_new_thread; in exec_mach_imgact()
1591 fdt_exec(p, psa != NULL ? psa->psa_flags : 0, imgp->ip_new_thread, exec); in exec_mach_imgact()
1654 if (imgp->ip_new_thread == NULL) { in exec_mach_imgact()
2508 task_t task = get_threadtask(imgp->ip_new_thread); in exec_handle_port_actions()
2683 task_t task = get_threadtask(imgp->ip_new_thread); in exec_handle_exception_port_actions()
3859 error = fork1(p, &imgp->ip_new_thread, PROC_CREATE_SPAWN, coal); in posix_spawn()
3863 new_task = get_threadtask(imgp->ip_new_thread); in posix_spawn()
3908 imgp->ip_new_thread = cloneproc(old_task, NULL, p, CLONEPROC_FLAGS_FOR_EXEC); in posix_spawn()
3911 if (imgp->ip_new_thread == NULL) { in posix_spawn()
3917 new_task = get_threadtask(imgp->ip_new_thread); in posix_spawn()
3921 p = (proc_t)get_bsdthreadtask_info(imgp->ip_new_thread); in posix_spawn()
3949 context.vc_thread = imgp->ip_new_thread; in posix_spawn()
4148 ml_thread_set_disable_user_jop(imgp->ip_new_thread, imgp->ip_flags & IMGPF_NOJOP ? TRUE : FALSE); in posix_spawn()
4149 ml_thread_set_jop_pid(imgp->ip_new_thread, new_task); in posix_spawn()
4174 p = proc_exec_switch_task(current_proc(), p, old_task, new_task, imgp->ip_new_thread, &inherit); in posix_spawn()
4191 thread_t child_thread = imgp->ip_new_thread; in posix_spawn()
4473 arcade_prepare(new_task, imgp->ip_new_thread); in posix_spawn()
4482 if (imgp && imgp->ip_new_thread) { in posix_spawn()
4483 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), TCRW_CLEAR_INITIAL_WAIT); in posix_spawn()
4498 error = exec_handle_spawnattr_policy(p, imgp->ip_new_thread, psa->psa_apptype, psa->psa_qos_clamp, in posix_spawn()
4504 task_transfer_turnstile_watchports(old_task, new_task, imgp->ip_new_thread); in posix_spawn()
4534 thread_t main_thread = imgp->ip_new_thread; in posix_spawn()
4560 psignal_vfork(p, proc_task(p), imgp->ip_new_thread, SIGTRAP); in posix_spawn()
4661 dtrace_thread_didexec(imgp->ip_new_thread); in posix_spawn()
4667 dtrace_thread_didexec(imgp->ip_new_thread); in posix_spawn()
4745 if (imgp != NULL && imgp->ip_new_thread) { in posix_spawn()
4752 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), clearwait_flags); in posix_spawn()
4753 thread_deallocate(imgp->ip_new_thread); in posix_spawn()
4754 imgp->ip_new_thread = NULL; in posix_spawn()
5096 imgp->ip_new_thread = cloneproc(old_task, NULL, p, CLONEPROC_FLAGS_FOR_EXEC); in __mac_execve()
5098 if (imgp->ip_new_thread == NULL) { in __mac_execve()
5104 new_task = get_threadtask(imgp->ip_new_thread); in __mac_execve()
5107 p = (proc_t)get_bsdthreadtask_info(imgp->ip_new_thread); in __mac_execve()
5109 context.vc_thread = imgp->ip_new_thread; in __mac_execve()
5125 if (imgp->ip_new_thread != NULL) { in __mac_execve()
5130 new_task = get_threadtask(imgp->ip_new_thread); in __mac_execve()
5133 ml_thread_set_disable_user_jop(imgp->ip_new_thread, imgp->ip_flags & IMGPF_NOJOP ? TRUE : FALSE); in __mac_execve()
5138 p = proc_exec_switch_task(current_proc(), p, old_task, new_task, imgp->ip_new_thread, &inherit); in __mac_execve()
5147 assert(imgp->ip_new_thread != NULL); in __mac_execve()
5159 if (imgp->ip_new_thread && !error) { in __mac_execve()
5161 ml_thread_set_jop_pid(imgp->ip_new_thread, new_task); in __mac_execve()
5232 thread_t main_thread = imgp->ip_new_thread; in __mac_execve()
5245 arcade_prepare(new_task, imgp->ip_new_thread); in __mac_execve()
5260 dtrace_thread_didexec(imgp->ip_new_thread); in __mac_execve()
5289 if (imgp->ip_new_thread) { in __mac_execve()
5290 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), TCRW_CLEAR_INITIAL_WAIT); in __mac_execve()
5296 new_task, imgp->ip_new_thread); in __mac_execve()
5309 if (imgp->ip_new_thread) { in __mac_execve()
5316 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), clearwait_flags); in __mac_execve()
5317 thread_deallocate(imgp->ip_new_thread); in __mac_execve()
5318 imgp->ip_new_thread = NULL; in __mac_execve()
6250 if ((new_thread = imgp->ip_new_thread) != THREAD_NULL) { in exec_add_apple_strings()
6632 ipc_task_reset((imgp->ip_new_thread != NULL) ? in exec_handle_sugid()
6633 get_threadtask(imgp->ip_new_thread) : proc_task(p)); in exec_handle_sugid()
6634 ipc_thread_reset((imgp->ip_new_thread != NULL) ? in exec_handle_sugid()
6635 imgp->ip_new_thread : current_thread()); in exec_handle_sugid()
7668 kr = thread_process_signature(imgp->ip_new_thread, proc_get_task_raw(p)); in process_signature()
7696 psignal_vfork_with_reason(p, proc_task(p), imgp->ip_new_thread, in process_signature()