Lines Matching refs:ip_new_thread
1288 thread = imgp->ip_new_thread; in exec_mach_imgact()
1566 fdt_exec(p, psa != NULL ? psa->psa_flags : 0, imgp->ip_new_thread, exec); in exec_mach_imgact()
1629 if (imgp->ip_new_thread == NULL) { in exec_mach_imgact()
2471 task_t task = get_threadtask(imgp->ip_new_thread); in exec_handle_port_actions()
3773 error = fork1(p, &imgp->ip_new_thread, PROC_CREATE_SPAWN, coal); in posix_spawn()
3777 new_task = get_threadtask(imgp->ip_new_thread); in posix_spawn()
3822 imgp->ip_new_thread = cloneproc(old_task, NULL, p, CLONEPROC_FLAGS_FOR_EXEC); in posix_spawn()
3825 if (imgp->ip_new_thread == NULL) { in posix_spawn()
3831 new_task = get_threadtask(imgp->ip_new_thread); in posix_spawn()
3835 p = (proc_t)get_bsdthreadtask_info(imgp->ip_new_thread); in posix_spawn()
3863 context.vc_thread = imgp->ip_new_thread; in posix_spawn()
4061 ml_thread_set_disable_user_jop(imgp->ip_new_thread, imgp->ip_flags & IMGPF_NOJOP ? TRUE : FALSE); in posix_spawn()
4062 ml_thread_set_jop_pid(imgp->ip_new_thread, new_task); in posix_spawn()
4086 p = proc_exec_switch_task(current_proc(), p, old_task, new_task, imgp->ip_new_thread, &inherit); in posix_spawn()
4102 thread_t child_thread = imgp->ip_new_thread; in posix_spawn()
4371 arcade_prepare(new_task, imgp->ip_new_thread); in posix_spawn()
4382 if (imgp && imgp->ip_new_thread) { in posix_spawn()
4383 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), TCRW_CLEAR_INITIAL_WAIT); in posix_spawn()
4398 error = exec_handle_spawnattr_policy(p, imgp->ip_new_thread, psa->psa_apptype, psa->psa_qos_clamp, in posix_spawn()
4404 task_transfer_turnstile_watchports(old_task, new_task, imgp->ip_new_thread); in posix_spawn()
4431 thread_t main_thread = imgp->ip_new_thread; in posix_spawn()
4462 psignal_vfork(p, proc_task(p), imgp->ip_new_thread, SIGTRAP); in posix_spawn()
4559 dtrace_thread_didexec(imgp->ip_new_thread); in posix_spawn()
4565 dtrace_thread_didexec(imgp->ip_new_thread); in posix_spawn()
4638 if (imgp != NULL && imgp->ip_new_thread) { in posix_spawn()
4640 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), TCRW_CLEAR_FINAL_WAIT); in posix_spawn()
4641 thread_deallocate(imgp->ip_new_thread); in posix_spawn()
4642 imgp->ip_new_thread = NULL; in posix_spawn()
4982 imgp->ip_new_thread = cloneproc(old_task, NULL, p, CLONEPROC_FLAGS_FOR_EXEC); in __mac_execve()
4984 if (imgp->ip_new_thread == NULL) { in __mac_execve()
4990 new_task = get_threadtask(imgp->ip_new_thread); in __mac_execve()
4993 p = (proc_t)get_bsdthreadtask_info(imgp->ip_new_thread); in __mac_execve()
4995 context.vc_thread = imgp->ip_new_thread; in __mac_execve()
5011 if (imgp->ip_new_thread != NULL) { in __mac_execve()
5016 new_task = get_threadtask(imgp->ip_new_thread); in __mac_execve()
5019 ml_thread_set_disable_user_jop(imgp->ip_new_thread, imgp->ip_flags & IMGPF_NOJOP ? TRUE : FALSE); in __mac_execve()
5024 p = proc_exec_switch_task(current_proc(), p, old_task, new_task, imgp->ip_new_thread, &inherit); in __mac_execve()
5033 assert(imgp->ip_new_thread != NULL); in __mac_execve()
5045 if (imgp->ip_new_thread && !error) { in __mac_execve()
5047 ml_thread_set_jop_pid(imgp->ip_new_thread, new_task); in __mac_execve()
5114 thread_t main_thread = imgp->ip_new_thread; in __mac_execve()
5127 arcade_prepare(new_task, imgp->ip_new_thread); in __mac_execve()
5149 dtrace_thread_didexec(imgp->ip_new_thread); in __mac_execve()
5178 if (imgp->ip_new_thread) { in __mac_execve()
5179 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), TCRW_CLEAR_INITIAL_WAIT); in __mac_execve()
5185 new_task, imgp->ip_new_thread); in __mac_execve()
5198 if (imgp->ip_new_thread) { in __mac_execve()
5200 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), TCRW_CLEAR_FINAL_WAIT); in __mac_execve()
5201 thread_deallocate(imgp->ip_new_thread); in __mac_execve()
5202 imgp->ip_new_thread = NULL; in __mac_execve()
6121 if ((new_thread = imgp->ip_new_thread) != THREAD_NULL) { in exec_add_apple_strings()
6501 ipc_task_reset((imgp->ip_new_thread != NULL) ? in exec_handle_sugid()
6502 get_threadtask(imgp->ip_new_thread) : proc_task(p)); in exec_handle_sugid()
6503 ipc_thread_reset((imgp->ip_new_thread != NULL) ? in exec_handle_sugid()
6504 imgp->ip_new_thread : current_thread()); in exec_handle_sugid()
6612 if (imgp->ip_new_thread != NULL) { in exec_handle_sugid()
6613 task = get_threadtask(imgp->ip_new_thread); in exec_handle_sugid()
7537 kr = thread_process_signature(imgp->ip_new_thread, proc_get_task_raw(p)); in process_signature()
7565 psignal_vfork_with_reason(p, proc_task(p), imgp->ip_new_thread, in process_signature()