Lines Matching refs:newtask
79 task_t newtask; in _Fork() local
124 newtask = MACH_PORT_NULL; in _Fork()
171 1, &newtask); in _Fork()
201 newtask, &newproc)) in _Fork()
212 if (err = __mach_port_allocate_name (newtask, in _Fork()
228 if (err = __mach_port_extract_right (newtask, in _Fork()
249 __task_set_special_port (newtask, in _Fork()
254 (newtask, EXC_MASK_ALL & ~(EXC_MASK_SYSCALL in _Fork()
264 if (err = __mach_port_insert_right (newtask, in _Fork()
270 && (err = __mach_port_mod_refs (newtask, in _Fork()
283 (newtask, in _Fork()
289 (newtask, in _Fork()
303 if (portnames[i] == newtask || portnames[i] == newproc) in _Fork()
309 insert = newtask; in _Fork()
328 (newtask, MACH_PORT_RIGHT_DEAD_NAME, portnames[i])) in _Fork()
340 (newtask, MACH_PORT_RIGHT_DEAD_NAME, portnames[i])) in _Fork()
370 err = __mach_port_allocate_name (newtask, in _Fork()
375 err = __mach_port_insert_right (newtask, in _Fork()
388 assert (__mach_port_extract_right (newtask, portnames[i], in _Fork()
410 && (err = __mach_port_mod_refs (newtask, in _Fork()
430 if ((err = __thread_create (newtask, &thread)) in _Fork()
431 || (err = __thread_create (newtask, &sigthread))) in _Fork()
438 if ((err = __mach_port_deallocate (newtask, ss->thread)) in _Fork()
439 || (err = __mach_port_insert_right (newtask, ss->thread, in _Fork()
445 && (err = __mach_port_mod_refs (newtask, ss->thread, in _Fork()
450 && ((err = __mach_port_deallocate (newtask, _hurd_msgport_thread)) in _Fork()
451 || (err = __mach_port_insert_right (newtask, in _Fork()
457 && (err = __mach_port_mod_refs (newtask, _hurd_msgport_thread, in _Fork()
532 if (err = __USEPORT (PROC, __proc_task2pid (port, newtask, &pid))) in _Fork()
541 if (err = __USEPORT (PROC, __proc_child (port, newtask))) in _Fork()
558 if (newtask != MACH_PORT_NULL) in _Fork()
561 __task_terminate (newtask); in _Fork()
562 __mach_port_deallocate (__mach_task_self (), newtask); in _Fork()