Home
last modified time | relevance | path

Searched refs:rdidx2 (Results 1 – 2 of 2) sorted by relevance

/busybox-1.35.0/networking/
Dtelnetd.ctrlSQ.patch122 + control = TS_BUF2[ts->rdidx2];
138 + memmove(TS_BUF2 + ts->rdidx2,
139 + TS_BUF2 + ts->rdidx2 + 1, count);
158 + TS_BUF2[ts->rdidx2++] = *p++;
159 + if (ts->rdidx2 >= BUFSIZE)
160 + ts->rdidx2 = 0;
168 ts->rdidx2 += count;
169 if (ts->rdidx2 >= BUFSIZE) /* actually == BUFSIZE */
Dtelnetd.c151 int rdidx2, wridx2, size2; member
294 ts->rdidx2 = ts->size2 = 2; in safe_write_to_pty_decode_iac()
860 ts->rdidx2 = 0; in telnetd_main()
889 count = MIN(BUFSIZE - ts->rdidx2, BUFSIZE - ts->size2); in telnetd_main()
890 count = safe_read(ts->ptyfd, TS_BUF2(ts) + ts->rdidx2, count); in telnetd_main()
909 ts->rdidx2 += count; in telnetd_main()
910 if (ts->rdidx2 >= BUFSIZE) /* actually == BUFSIZE */ in telnetd_main()
911 ts->rdidx2 = 0; in telnetd_main()