Lines Matching refs:d

107   struct hurd_fd *d = _hurd_fd_get (fd);  in get_dtable_port()  local
110 if (!d) in get_dtable_port()
115 dport = HURD_PORT_USE (&d->port, in get_dtable_port()
155 struct hurd_fd *d = _hurd_dtable[i]; in fork_child_dtable() local
156 if (d == NULL) in fork_child_dtable()
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()
210 struct hurd_fd *const d = _hurd_dtable[i]; in ctty_new_pgrp() local
214 if (d == NULL) in ctty_new_pgrp()
218 port = _hurd_port_get (&d->port, &ulink); in ctty_new_pgrp()
219 ctty = _hurd_port_get (&d->ctty, &ctty_ulink); in ctty_new_pgrp()
238 _hurd_port_set (&d->ctty, new); in ctty_new_pgrp()
241 _hurd_port_free (&d->port, &ulink, port); in ctty_new_pgrp()
242 _hurd_port_free (&d->ctty, &ctty_ulink, ctty); in ctty_new_pgrp()
265 struct hurd_fd *const d = _hurd_dtable[i]; in reauth_dtable() local
268 if (d == NULL) in reauth_dtable()
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()
289 if (d->ctty.port != MACH_PORT_NULL in reauth_dtable()
290 && ! __io_reauthenticate (d->ctty.port, in reauth_dtable()
296 _hurd_port_set (&d->ctty, newctty); in reauth_dtable()
298 _hurd_port_locked_set (&d->port, new); in reauth_dtable()
302 __spin_unlock (&d->port.lock); in reauth_dtable()