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

Lines Matching defs:error

827 	int error = 0;
868 error = EIO;
873 error = EIO;
886 error = EINTR;
928 error = EBUSY;
931 if ( (error = suser(kauth_cred_get(), &p->p_acflag)) )
947 error = ttywait(tp);
948 if (error)
968 error = ENOTTY;
1000 error = EINVAL;
1008 error = ttywait(tp);
1009 if (error) {
1019 if (tp->t_param && (error = (*tp->t_param)(tp, t))) {
1091 error = ENXIO;
1096 error = (*linesw[t].l_open)(device, tp);
1097 if (error) {
1115 error = EPERM;
1119 error = EACCES;
1147 error = EPERM;
1178 error = ENOTTY;
1184 error = EINVAL;
1190 error = EPERM;
1215 error = suser(kauth_cred_get(), &p->p_acflag);
1216 if (error) {
1228 error = ttcompat(tp, cmd, data, flag, p);
1230 error = ENOTTY;
1235 error = 0;
1237 return(error);
1299 int error;
1301 error = 0;
1308 error = ttysleep(tp, TSA_OCOMPLETE(tp),
1311 if (error) {
1312 if (error == EWOULDBLOCK)
1313 error = EIO;
1319 if (!error && (tp->t_outq.c_cc || ISSET(tp->t_state, TS_BUSY)))
1320 error = EIO;
1321 return (error);
1336 int error;
1338 if ((error = ttywait(tp)) == 0)
1340 return (error);
1592 int first, error = 0;
1766 error = ttysleep(tp, TSA_HUP_OR_INPUT(tp), TTIPRI | PCATCH,
1769 if (error == EWOULDBLOCK)
1770 error = 0;
1771 else if (error) {
1773 return (error);
1803 error = uiomove(ibuf, icc, uio);
1805 * XXX if there was an error then we should ungetc() the
1808 if (error)
1830 error = ttysleep(tp, &lbolt, TTIPRI | PCATCH,
1832 if (error)
1846 error = ureadc(c, uio);
1847 if (error)
1871 return (error);
1915 int i, hiwat, count, error;
1927 error = 0;
1932 error = EIO;
1937 error = EWOULDBLOCK;
1940 error = ttysleep(tp, TSA_CARR_ON(tp), TTIPRI | PCATCH,
1942 if (error) {
1957 error = EIO;
1962 error = EIO;
1973 error = EINTR;
1996 error = uiomove(cp, cc, uio);
1997 if (error) {
2067 return (error);
2094 error = ttysleep(tp, TSA_OLOWAT(tp), TTOPRI | PCATCH, "ttywri",
2096 if (error == EWOULDBLOCK)
2097 error = EIO;
2098 if (error)
2541 int error;
2545 error = tsleep(chan, pri, wmesg, timo);
2546 if (error)
2547 return (error);