Lines Matching refs:port
74 err = HURD_DPORT_USE (fd, __io_readable (port, &navail)); in fioctl()
84 (port, O_NONBLOCK)); in fioctl()
91 (port, O_ASYNC)); in fioctl()
95 err = HURD_DPORT_USE (fd, __io_mod_owner (port, *arg)); in fioctl()
99 err = HURD_DPORT_USE (fd, __io_get_owner (port, arg)); in fioctl()
141 struct hurd_port *const port = &_hurd_ports[INIT_PORT_CTTYID]; in _hurd_locked_install_cttyid() local
163 __spin_lock (&port->lock); in _hurd_locked_install_cttyid()
164 old = _hurd_userlink_clear (&port->users) ? port->port : MACH_PORT_NULL; in _hurd_locked_install_cttyid()
165 port->port = cttyid; in _hurd_locked_install_cttyid()
166 cttyid = _hurd_port_locked_get (port, &ulink); in _hurd_locked_install_cttyid()
179 HURD_PORT_USE (&d->port, in _hurd_locked_install_cttyid()
182 if (! __term_getctty (port, &id)) in _hurd_locked_install_cttyid()
186 && __term_open_ctty (port, in _hurd_locked_install_cttyid()
204 _hurd_port_free (port, &ulink, cttyid); in _hurd_locked_install_cttyid()
241 do_tiocsctty (io_t port, io_t ctty) in do_tiocsctty() argument
251 err = __term_getctty (port, &cttyid); in do_tiocsctty()
256 err = __tioctl_tiocspgrp (port, _hurd_pgrp); in do_tiocsctty()
273 return __hurd_fail (HURD_DPORT_USE (fd, do_tiocsctty (port, ctty))); in tiocsctty()
286 if (err = HURD_DPORT_USE (fd, __term_getctty (port, &fd_cttyid))) in tiocnotty()
289 if (__USEPORT (CTTYID, port != fd_cttyid)) in tiocnotty()
320 err = HURD_DPORT_USE (fd, __pfinet_siocgifconf (port, ifc->ifc_len, in siocgifconf()