• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/kern/

Lines Matching defs:error

149 	int			error = EACCES;
165 error = ERESTART;
182 error = namei(&nd);
183 if (error)
185 error = vnode_setattr(nd.ni_vp, &va, ctx);
192 return(error);
220 int error = sysctl_io_number(req, ptmx_max, sizeof(int), &new_value, &changed);
225 error = EINVAL;
227 return(error);
377 /* Special error value so we know to redrive the open, we've been raced */
502 * XXX and an error code ("EAGAIN/ERESTART") or 0 as our
516 int error;
539 error = EBUSY;
547 error = ttysleep(tp, TSA_CARR_ON(tp), TTIPRI | PCATCH,
549 if (error)
552 error = (*linesw[tp->t_line].l_open)(dev, tp);
555 if (error == 0)
559 return (error);
613 int error = 0;
635 error = EIO;
640 error = EIO;
645 error = EIO;
651 error = ttysleep(tp, &lbolt, TTIPRI | PCATCH | PTTYBLOCK, "ptsd_bg",
653 if (error)
659 error = ttysleep(tp, TSA_PTS_READ(tp), TTIPRI | PCATCH,
661 if (error)
673 error = uiomove(buf, cc, uio);
674 if (error)
683 error = (*linesw[tp->t_line].l_read)(tp, uio, flag);
687 return (error);
700 int error;
713 error = EIO;
715 error = (*linesw[tp->t_line].l_write)(tp, uio, flag);
718 return (error);
781 int error = 0;
802 error = EBUSY;
815 return (error);
865 int error = 0, cc;
881 * then return the appropriate error instead.
886 error = ureadc((int)pti->pt_send, uio);
887 if (error)
899 error = ureadc((int)pti->pt_ucntl, uio);
900 if (error)
911 error = EWOULDBLOCK;
914 error = tsleep(TSA_PTC_READ(tp), TTIPRI | PCATCH, "ptmx_in", 0);
915 if (error)
919 error = ureadc(0, uio);
920 while (uio_resid(uio) > 0 && error == 0) {
924 error = uiomove(buf, cc, uio);
930 return (error);
1144 int error = 0;
1168 error = uiomove((caddr_t)cp, cc, uio);
1169 if (error)
1175 error = EIO;
1204 error = uiomove((caddr_t)cp, cc, uio);
1205 if (error)
1211 error = EIO;
1229 return (error);
1238 error = EIO;
1245 error = EWOULDBLOCK;
1248 error = tsleep(TSA_PTC_WRITE(tp), TTOPRI | PCATCH, "ptmx_out", 0);
1249 if (error) {
1264 int stop, error = 0;
1317 error = EINVAL;
1328 error = EINVAL;
1358 error = EINVAL;
1376 error = _devfs_setattr(pti->pt_devhandle, 0620, kauth_getuid(), GID_TTY);
1387 error = 0;
1395 error = 0;
1398 error = (*linesw[tp->t_line].l_ioctl)(tp, cmd, data, flag, p);
1399 if (error == ENOTTY) {
1400 error = ttioctl(tp, cmd, data, flag, p);
1401 if (error == ENOTTY) {
1408 error = 0;
1419 error = 0;
1469 return (error);