Lines Matching refs:err
61 error_t err; in fioctl() local
68 err = ENOTTY; in fioctl()
74 err = HURD_DPORT_USE (fd, __io_readable (port, &navail)); in fioctl()
75 if (!err) in fioctl()
81 err = HURD_DPORT_USE (fd, (*arg in fioctl()
88 err = HURD_DPORT_USE (fd, (*arg 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()
103 return err ? __hurd_dfail (fd, err) : 0; in fioctl()
222 error_t err; in _hurd_setcttyid() local
228 if (err = __mach_port_mod_refs (__mach_task_self (), cttyid, in _hurd_setcttyid()
230 return err; in _hurd_setcttyid()
244 error_t err; in do_tiocsctty() local
251 err = __term_getctty (port, &cttyid); in do_tiocsctty()
252 if (err) in do_tiocsctty()
253 return err; in do_tiocsctty()
256 err = __tioctl_tiocspgrp (port, _hurd_pgrp); in do_tiocsctty()
257 if (err) in do_tiocsctty()
263 return err; in do_tiocsctty()
284 error_t err; in tiocnotty() local
286 if (err = HURD_DPORT_USE (fd, __term_getctty (port, &fd_cttyid))) in tiocnotty()
287 return __hurd_fail (err); in tiocnotty()
290 err = EINVAL; in tiocnotty()
294 if (err) in tiocnotty()
295 return __hurd_fail (err); in tiocnotty()
313 error_t err; in siocgifconf() local
320 err = HURD_DPORT_USE (fd, __pfinet_siocgifconf (port, ifc->ifc_len, in siocgifconf()
329 return err ? __hurd_dfail (fd, err) : 0; in siocgifconf()