Lines Matching refs:ip_new_thread

1340 	thread = imgp->ip_new_thread;  in exec_mach_imgact()
1641 psa != NULL ? psa->psa_flags : 0, imgp->ip_new_thread, exec); in exec_mach_imgact()
1704 if (imgp->ip_new_thread == NULL) { in exec_mach_imgact()
2613 task_t task = get_threadtask(imgp->ip_new_thread); in exec_handle_port_actions()
2799 task_t task = get_threadtask(imgp->ip_new_thread); in exec_handle_exception_port_actions()
4025 error = fork1(p, &imgp->ip_new_thread, PROC_CREATE_SPAWN, coal); in posix_spawn()
4029 new_task = get_threadtask(imgp->ip_new_thread); in posix_spawn()
4074 imgp->ip_new_thread = cloneproc(old_task, NULL, p, CLONEPROC_EXEC); in posix_spawn()
4077 if (imgp->ip_new_thread == NULL) { in posix_spawn()
4083 new_task = get_threadtask(imgp->ip_new_thread); in posix_spawn()
4087 p = (proc_t)get_bsdthreadtask_info(imgp->ip_new_thread); in posix_spawn()
4115 context.vc_thread = imgp->ip_new_thread; in posix_spawn()
4316 ml_thread_set_disable_user_jop(imgp->ip_new_thread, disable_user_jop); in posix_spawn()
4317 ml_thread_set_jop_pid(imgp->ip_new_thread, new_task); in posix_spawn()
4365 thread_t child_thread = imgp->ip_new_thread; in posix_spawn()
4664 arcade_prepare(new_task, imgp->ip_new_thread); in posix_spawn()
4673 if (imgp && imgp->ip_new_thread) { in posix_spawn()
4674 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), TCRW_CLEAR_INITIAL_WAIT); in posix_spawn()
4689 error = exec_handle_spawnattr_policy(p, imgp->ip_new_thread, psa->psa_apptype, psa->psa_qos_clamp, in posix_spawn()
4695 task_transfer_turnstile_watchports(old_task, new_task, imgp->ip_new_thread); in posix_spawn()
4725 thread_t main_thread = imgp->ip_new_thread; in posix_spawn()
4751 psignal_vfork(p, proc_task(p), imgp->ip_new_thread, SIGTRAP); in posix_spawn()
4852 dtrace_thread_didexec(imgp->ip_new_thread); in posix_spawn()
4858 dtrace_thread_didexec(imgp->ip_new_thread); in posix_spawn()
4936 if (imgp != NULL && imgp->ip_new_thread) { in posix_spawn()
4943 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), clearwait_flags); in posix_spawn()
4944 thread_deallocate(imgp->ip_new_thread); in posix_spawn()
4945 imgp->ip_new_thread = NULL; in posix_spawn()
5005 thread_t new_thread = imgp->ip_new_thread; in proc_exec_switch_task()
5298 imgp->ip_new_thread = cloneproc(old_task, NULL, p, CLONEPROC_EXEC); in __mac_execve()
5300 if (imgp->ip_new_thread == NULL) { in __mac_execve()
5306 new_task = get_threadtask(imgp->ip_new_thread); in __mac_execve()
5309 p = (proc_t)get_bsdthreadtask_info(imgp->ip_new_thread); in __mac_execve()
5311 context.vc_thread = imgp->ip_new_thread; in __mac_execve()
5328 if (imgp->ip_new_thread != NULL) { in __mac_execve()
5333 new_task = get_threadtask(imgp->ip_new_thread); in __mac_execve()
5336 ml_thread_set_disable_user_jop(imgp->ip_new_thread, imgp->ip_flags & IMGPF_NOJOP ? TRUE : FALSE); in __mac_execve()
5350 assert(imgp->ip_new_thread != NULL); in __mac_execve()
5364 if (imgp->ip_new_thread && !error) { in __mac_execve()
5366 ml_thread_set_jop_pid(imgp->ip_new_thread, new_task); in __mac_execve()
5440 thread_t main_thread = imgp->ip_new_thread; in __mac_execve()
5454 arcade_prepare(new_task, imgp->ip_new_thread); in __mac_execve()
5469 dtrace_thread_didexec(imgp->ip_new_thread); in __mac_execve()
5498 if (imgp->ip_new_thread) { in __mac_execve()
5499 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), TCRW_CLEAR_INITIAL_WAIT); in __mac_execve()
5505 new_task, imgp->ip_new_thread); in __mac_execve()
5518 if (imgp->ip_new_thread) { in __mac_execve()
5525 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), clearwait_flags); in __mac_execve()
5526 thread_deallocate(imgp->ip_new_thread); in __mac_execve()
5527 imgp->ip_new_thread = NULL; in __mac_execve()
6445 if ((new_thread = imgp->ip_new_thread) != THREAD_NULL) { in exec_add_apple_strings()
6839 ipc_task_reset((imgp->ip_new_thread != NULL) ? in exec_handle_sugid()
6840 get_threadtask(imgp->ip_new_thread) : proc_task(p)); in exec_handle_sugid()
6841 ipc_thread_reset((imgp->ip_new_thread != NULL) ? in exec_handle_sugid()
6842 imgp->ip_new_thread : current_thread()); in exec_handle_sugid()
7878 kr = thread_process_signature(imgp->ip_new_thread, proc_get_task_raw(p)); in process_signature()
7906 psignal_vfork_with_reason(p, proc_task(p), imgp->ip_new_thread, in process_signature()