Lines Matching refs:ip_new_thread
1346 thread = imgp->ip_new_thread; in exec_mach_imgact()
1675 psa != NULL ? psa->psa_flags : 0, imgp->ip_new_thread, exec); in exec_mach_imgact()
1738 if (imgp->ip_new_thread == NULL) { in exec_mach_imgact()
2647 task_t task = get_threadtask(imgp->ip_new_thread); in exec_handle_port_actions()
2832 task_t task = get_threadtask(imgp->ip_new_thread); in exec_handle_exception_port_actions()
4059 error = fork1(p, &imgp->ip_new_thread, PROC_CREATE_SPAWN, coal); in posix_spawn()
4063 new_task = get_threadtask(imgp->ip_new_thread); in posix_spawn()
4108 imgp->ip_new_thread = cloneproc(old_task, NULL, p, CLONEPROC_EXEC); in posix_spawn()
4111 if (imgp->ip_new_thread == NULL) { in posix_spawn()
4117 new_task = get_threadtask(imgp->ip_new_thread); in posix_spawn()
4121 p = (proc_t)get_bsdthreadtask_info(imgp->ip_new_thread); in posix_spawn()
4149 context.vc_thread = imgp->ip_new_thread; in posix_spawn()
4348 ml_thread_set_disable_user_jop(imgp->ip_new_thread, disable_user_jop); in posix_spawn()
4349 ml_thread_set_jop_pid(imgp->ip_new_thread, new_task); in posix_spawn()
4396 thread_t child_thread = imgp->ip_new_thread; in posix_spawn()
4696 arcade_prepare(new_task, imgp->ip_new_thread); in posix_spawn()
4705 if (imgp && imgp->ip_new_thread) { in posix_spawn()
4706 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), TCRW_CLEAR_INITIAL_WAIT); in posix_spawn()
4721 error = exec_handle_spawnattr_policy(p, imgp->ip_new_thread, psa->psa_apptype, psa->psa_qos_clamp, in posix_spawn()
4727 task_transfer_turnstile_watchports(old_task, new_task, imgp->ip_new_thread); in posix_spawn()
4757 thread_t main_thread = imgp->ip_new_thread; in posix_spawn()
4783 psignal_vfork(p, proc_task(p), imgp->ip_new_thread, SIGTRAP); in posix_spawn()
4885 dtrace_thread_didexec(imgp->ip_new_thread); in posix_spawn()
4891 dtrace_thread_didexec(imgp->ip_new_thread); in posix_spawn()
4969 if (imgp != NULL && imgp->ip_new_thread) { in posix_spawn()
4976 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), clearwait_flags); in posix_spawn()
4977 thread_deallocate(imgp->ip_new_thread); in posix_spawn()
4978 imgp->ip_new_thread = NULL; in posix_spawn()
5038 thread_t new_thread = imgp->ip_new_thread; in proc_exec_switch_task()
5331 imgp->ip_new_thread = cloneproc(old_task, NULL, p, CLONEPROC_EXEC); in __mac_execve()
5333 if (imgp->ip_new_thread == NULL) { in __mac_execve()
5339 new_task = get_threadtask(imgp->ip_new_thread); in __mac_execve()
5343 p = (proc_t)get_bsdthreadtask_info(imgp->ip_new_thread); in __mac_execve()
5345 context.vc_thread = imgp->ip_new_thread; in __mac_execve()
5361 if (imgp->ip_new_thread != NULL) { in __mac_execve()
5366 new_task = get_threadtask(imgp->ip_new_thread); in __mac_execve()
5369 ml_thread_set_disable_user_jop(imgp->ip_new_thread, imgp->ip_flags & IMGPF_NOJOP ? TRUE : FALSE); in __mac_execve()
5383 assert(imgp->ip_new_thread != NULL); in __mac_execve()
5398 if (imgp->ip_new_thread && !error) { in __mac_execve()
5400 ml_thread_set_jop_pid(imgp->ip_new_thread, new_task); in __mac_execve()
5474 thread_t main_thread = imgp->ip_new_thread; in __mac_execve()
5488 arcade_prepare(new_task, imgp->ip_new_thread); in __mac_execve()
5503 dtrace_thread_didexec(imgp->ip_new_thread); in __mac_execve()
5532 if (imgp->ip_new_thread) { in __mac_execve()
5533 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), TCRW_CLEAR_INITIAL_WAIT); in __mac_execve()
5539 new_task, imgp->ip_new_thread); in __mac_execve()
5552 if (imgp->ip_new_thread) { in __mac_execve()
5559 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), clearwait_flags); in __mac_execve()
5560 thread_deallocate(imgp->ip_new_thread); in __mac_execve()
5561 imgp->ip_new_thread = NULL; in __mac_execve()
6479 if ((new_thread = imgp->ip_new_thread) != THREAD_NULL) { in exec_add_apple_strings()
6881 ipc_task_reset((imgp->ip_new_thread != NULL) ? in exec_handle_sugid()
6882 get_threadtask(imgp->ip_new_thread) : proc_task(p)); in exec_handle_sugid()
6883 ipc_thread_reset((imgp->ip_new_thread != NULL) ? in exec_handle_sugid()
6884 imgp->ip_new_thread : current_thread()); in exec_handle_sugid()
7932 kr = thread_process_signature(imgp->ip_new_thread, proc_get_task_raw(p)); in process_signature()
7960 psignal_vfork_with_reason(p, proc_task(p), imgp->ip_new_thread, in process_signature()