Lines Matching refs:port
69 _hurd_port_init (&new->port, MACH_PORT_NULL); in init_dtable()
115 dport = HURD_PORT_USE (&d->port, in get_dtable_port()
120 port, in get_dtable_port()
129 outport = port; in get_dtable_port()
160 d->port.users = d->ctty.users = NULL; in fork_child_dtable()
162 if (d->ctty.port != MACH_PORT_NULL) in fork_child_dtable()
166 __mach_port_deallocate (__mach_task_self (), d->ctty.port); in fork_child_dtable()
167 err = __term_open_ctty (d->port.port, _hurd_pid, _hurd_pgrp, in fork_child_dtable()
168 &d->ctty.port); in fork_child_dtable()
170 d->ctty.port = MACH_PORT_NULL; in fork_child_dtable()
194 if (__USEPORT (CTTYID, port == MACH_PORT_NULL)) in ctty_new_pgrp()
212 io_t port, ctty; in ctty_new_pgrp() local
218 port = _hurd_port_get (&d->port, &ulink); in ctty_new_pgrp()
227 if ((err = __term_open_ctty (port, _hurd_pid, _hurd_pgrp, &new))) in ctty_new_pgrp()
241 _hurd_port_free (&d->port, &ulink, port); in ctty_new_pgrp()
275 __spin_lock (&d->port.lock); in reauth_dtable()
278 if (d->port.port != MACH_PORT_NULL in reauth_dtable()
279 && ! __io_reauthenticate (d->port.port, in reauth_dtable()
282 (port, in reauth_dtable()
289 if (d->ctty.port != MACH_PORT_NULL in reauth_dtable()
290 && ! __io_reauthenticate (d->ctty.port, in reauth_dtable()
293 (port, in reauth_dtable()
298 _hurd_port_locked_set (&d->port, new); in reauth_dtable()
302 __spin_unlock (&d->port.lock); in reauth_dtable()