Lines Matching refs:clp
49 CL_PRIVATE *clp; in cl_event() local
60 clp = CLP(sp); in cl_event()
61 retest: if (LF_ISSET(EC_INTERRUPT) || F_ISSET(clp, CL_SIGINT)) { in cl_event()
62 if (F_ISSET(clp, CL_SIGINT)) { in cl_event()
63 F_CLR(clp, CL_SIGINT); in cl_event()
69 if (F_ISSET(clp, CL_SIGHUP | CL_SIGTERM | CL_SIGWINCH)) { in cl_event()
70 if (F_ISSET(clp, CL_SIGHUP)) { in cl_event()
74 if (F_ISSET(clp, CL_SIGTERM)) { in cl_event()
78 if (F_ISSET(clp, CL_SIGWINCH)) { in cl_event()
79 F_CLR(clp, CL_SIGWINCH); in cl_event()
103 clp->ibuf + clp->skip, SIZE(clp->ibuf) - clp->skip, &nr, tp)) { in cl_event()
105 rc = INPUT2INT5(sp, clp->cw, clp->ibuf, nr + clp->skip, in cl_event()
112 memmove(clp->ibuf, clp->ibuf + nr + clp->skip - n, n); in cl_event()
113 clp->skip = n; in cl_event()
117 clp->skip = 0; in cl_event()
147 CL_PRIVATE *clp; in cl_read() local
154 clp = CLP(sp); in cl_read()
163 if (!F_ISSET(clp, CL_STDIN_TTY)) { in cl_read()
213 TCSASOFT | TCSADRAIN, &clp->vi_enter); in cl_read()
273 if (++clp->eof_count < 50) { in cl_read()
274 bp[0] = clp->orig.c_cc[VEOF]; in cl_read()
291 bp[nr++] = clp->orig.c_cc[VEOF]; in cl_read()
293 clp->eof_count = 0; in cl_read()