Lines Matching refs:ip_new_thread

1327 	thread = imgp->ip_new_thread;  in exec_mach_imgact()
1622 psa != NULL ? psa->psa_flags : 0, imgp->ip_new_thread, exec); in exec_mach_imgact()
1685 if (imgp->ip_new_thread == NULL) { in exec_mach_imgact()
2568 task_t task = get_threadtask(imgp->ip_new_thread); in exec_handle_port_actions()
2754 task_t task = get_threadtask(imgp->ip_new_thread); in exec_handle_exception_port_actions()
3964 error = fork1(p, &imgp->ip_new_thread, PROC_CREATE_SPAWN, coal); in posix_spawn()
3968 new_task = get_threadtask(imgp->ip_new_thread); in posix_spawn()
4013 imgp->ip_new_thread = cloneproc(old_task, NULL, p, CLONEPROC_EXEC); in posix_spawn()
4016 if (imgp->ip_new_thread == NULL) { in posix_spawn()
4022 new_task = get_threadtask(imgp->ip_new_thread); in posix_spawn()
4026 p = (proc_t)get_bsdthreadtask_info(imgp->ip_new_thread); in posix_spawn()
4054 context.vc_thread = imgp->ip_new_thread; in posix_spawn()
4255 ml_thread_set_disable_user_jop(imgp->ip_new_thread, disable_user_jop); in posix_spawn()
4256 ml_thread_set_jop_pid(imgp->ip_new_thread, new_task); in posix_spawn()
4304 thread_t child_thread = imgp->ip_new_thread; in posix_spawn()
4599 arcade_prepare(new_task, imgp->ip_new_thread); in posix_spawn()
4608 if (imgp && imgp->ip_new_thread) { in posix_spawn()
4609 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), TCRW_CLEAR_INITIAL_WAIT); in posix_spawn()
4624 error = exec_handle_spawnattr_policy(p, imgp->ip_new_thread, psa->psa_apptype, psa->psa_qos_clamp, in posix_spawn()
4630 task_transfer_turnstile_watchports(old_task, new_task, imgp->ip_new_thread); in posix_spawn()
4660 thread_t main_thread = imgp->ip_new_thread; in posix_spawn()
4686 psignal_vfork(p, proc_task(p), imgp->ip_new_thread, SIGTRAP); in posix_spawn()
4787 dtrace_thread_didexec(imgp->ip_new_thread); in posix_spawn()
4793 dtrace_thread_didexec(imgp->ip_new_thread); in posix_spawn()
4871 if (imgp != NULL && imgp->ip_new_thread) { in posix_spawn()
4878 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), clearwait_flags); in posix_spawn()
4879 thread_deallocate(imgp->ip_new_thread); in posix_spawn()
4880 imgp->ip_new_thread = NULL; in posix_spawn()
4940 thread_t new_thread = imgp->ip_new_thread; in proc_exec_switch_task()
5233 imgp->ip_new_thread = cloneproc(old_task, NULL, p, CLONEPROC_EXEC); in __mac_execve()
5235 if (imgp->ip_new_thread == NULL) { in __mac_execve()
5241 new_task = get_threadtask(imgp->ip_new_thread); in __mac_execve()
5244 p = (proc_t)get_bsdthreadtask_info(imgp->ip_new_thread); in __mac_execve()
5246 context.vc_thread = imgp->ip_new_thread; in __mac_execve()
5263 if (imgp->ip_new_thread != NULL) { in __mac_execve()
5268 new_task = get_threadtask(imgp->ip_new_thread); in __mac_execve()
5271 ml_thread_set_disable_user_jop(imgp->ip_new_thread, imgp->ip_flags & IMGPF_NOJOP ? TRUE : FALSE); in __mac_execve()
5285 assert(imgp->ip_new_thread != NULL); in __mac_execve()
5299 if (imgp->ip_new_thread && !error) { in __mac_execve()
5301 ml_thread_set_jop_pid(imgp->ip_new_thread, new_task); in __mac_execve()
5372 thread_t main_thread = imgp->ip_new_thread; in __mac_execve()
5386 arcade_prepare(new_task, imgp->ip_new_thread); in __mac_execve()
5401 dtrace_thread_didexec(imgp->ip_new_thread); in __mac_execve()
5430 if (imgp->ip_new_thread) { in __mac_execve()
5431 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), TCRW_CLEAR_INITIAL_WAIT); in __mac_execve()
5437 new_task, imgp->ip_new_thread); in __mac_execve()
5450 if (imgp->ip_new_thread) { in __mac_execve()
5457 task_clear_return_wait(get_threadtask(imgp->ip_new_thread), clearwait_flags); in __mac_execve()
5458 thread_deallocate(imgp->ip_new_thread); in __mac_execve()
5459 imgp->ip_new_thread = NULL; in __mac_execve()
6377 if ((new_thread = imgp->ip_new_thread) != THREAD_NULL) { in exec_add_apple_strings()
6771 ipc_task_reset((imgp->ip_new_thread != NULL) ? in exec_handle_sugid()
6772 get_threadtask(imgp->ip_new_thread) : proc_task(p)); in exec_handle_sugid()
6773 ipc_thread_reset((imgp->ip_new_thread != NULL) ? in exec_handle_sugid()
6774 imgp->ip_new_thread : current_thread()); in exec_handle_sugid()
7807 kr = thread_process_signature(imgp->ip_new_thread, proc_get_task_raw(p)); in process_signature()
7835 psignal_vfork_with_reason(p, proc_task(p), imgp->ip_new_thread, in process_signature()