Lines Matching refs:readptr
498 if (readptr == &readstk[0]) { in commnds()
501 if (*readptr != 0) in commnds()
502 release(*readptr); in commnds()
503 readptr--; in commnds()
507 if (readptr <= &readstk[1]) in commnds()
509 if (*readptr != 0) in commnds()
510 release(*readptr); in commnds()
511 readptr--; in commnds()
512 if (*readptr != 0) in commnds()
513 release(*readptr); in commnds()
514 readptr--; in commnds()
720 if ((readptr != &readstk[0]) && (*readptr != 0)) { in commnds()
721 if ((*readptr)->rd == (*readptr)->wt) in commnds()
722 release(*readptr); in commnds()
724 if (readptr++ == &readstk[RDSKSZ]) { in commnds()
730 readptr++; in commnds()
731 *readptr = p; in commnds()
740 if (++readptr == &readstk[RDSKSZ]) { in commnds()
743 *readptr = 0; in commnds()
756 *readptr = p; in commnds()
1203 readptr = &readstk[0]; in init()
1219 while (readptr != &readstk[0]) { in onintr()
1220 if (*readptr != 0) in onintr()
1221 release(*readptr); in onintr()
1222 readptr--; in onintr()
1435 if ((readptr != &readstk[0]) && (*readptr != 0)) { in readc()
1436 if (sfeof(*readptr) == 0) in readc()
1437 return (lastchar = sgetc(*readptr)); in readc()
1438 release(*readptr); in readc()
1439 readptr--; in readc()
1445 if (readptr != &readptr[0]) { in readc()
1446 readptr--; in readc()
1447 if (*readptr == 0) in readc()
1463 if ((readptr != &readstk[0]) && (*readptr != 0)) { in unreadc()
1464 sungetc(*readptr, c); in unreadc()