Lines Matching defs:task

125 #include <mach/task.h>
135 #include <kern/task.h>
178 task_t task);
192 #include <kern/task.h>
697 task_t task;
738 task = current_task();
745 * creating the backing task, thread, and uthread for the child
801 * operation; in this case, we know that our task, thread, and
808 imgp->ip_new_thread = fork_create_child(task, p, FALSE, (imgp->ip_flags & IMGPF_IS_64BIT));
815 /* reset local idea of thread, uthread, task */
818 task = new_task = get_threadtask(thread);
819 map = get_task_map(task);
828 task_set_dyld_info(task, MACH_VM_MIN_ADDRESS, 0);
830 task_set_64bit(task, TRUE);
833 task_set_64bit(task, FALSE);
855 vm_map_set_user_wire_limit(get_task_map(task), p->p_rlimit[RLIMIT_MEMLOCK].rlim_cur);
881 vm_map_exec(get_task_map(task),
882 task,
905 create_unix_stack(get_task_map(task),
913 old_map = vm_map_switch(get_task_map(task));
947 task_set_dyld_info(task, load_result.all_image_info_addr,
1003 pal_dbg_set_task_name( p->task );
1081 (void) task_suspend(p->task);
1086 * Apply the apptype state (which primes the task for importance donation)
1331 * Description: Decode and apply the posix_spawn apptype to the task.
1369 proc_set_task_apptype(p->task, apptype);
1384 * and/or audit_session_spawnjoin for the current task.
1399 task_t task = p->task;
1422 else if (task_set_special_port(task,
1431 else if (task_set_exception_ports(task,
2017 * Allocate a place to store the ports we want to bind to the new task
2181 * Activate the CPU usage monitor, if requested. This is done via a task-wide, per-thread CPU
2198 error = proc_set_task_ruse_cpu(p->task,
2211 * Mark the ports as destined to be handed off to the new task, and
2212 * transfer any boosts to the new task.
2222 task_add_importance_watchport(p->task, p->p_pid, port, &boost);
2234 task_hold_multiple_assertion(p->task, needboost);
2316 psignal_vfork(p, p->task, imgp->ip_new_thread, SIGTRAP);
2419 * task/thread references to the newly spawned
3397 * mach task port to revoke it, set the P_SUGID bit,
3411 * <task port> Potentially revoked
3528 mac_task_label_update_cred(my_cred, p->task);
3544 * Have mach reset the task and thread ports.
3547 * task/thread after.
3549 ipc_task_reset(p->task);
3823 * So that mach_init task is set with uid,gid 0 token
4159 vm_map_switch_protect(get_task_map(p->task), TRUE);
4168 kr = task_get_task_access_port(p->task, &port);