Searched refs:ttyoring (Results 1 – 4 of 4) sorted by relevance
54 *ttyoring.supply = c; \55 ttyoring.supply = \56 (ttyoring.supply+1 < ttyoring.top)? \57 ttyoring.supply+1 : \58 ttyoring.supply+1-ttyoring.size; \59 ttyoring.supplytime = ++ring_clock; \61 #define TTYBYTES() (ring_full_count(&ttyoring))62 #define TTYROOM() (ring_empty_count(&ttyoring))
56 Ring ttyoring; variable77 if (ring_init(&ttyoring, ttyobuf, sizeof (ttyobuf)) != 1) { in init_terminal()107 n0 = ring_full_count(&ttyoring);108 if ((n1 = n = ring_full_consecutive(&ttyoring)) > 0) {113 n = TerminalWrite((char *)ttyoring.consume, n);120 Dump('>', ttyoring.consume, n);130 n1 = TerminalWrite((char *)ttyoring.bottom, n1);139 ring_consumed(&ttyoring, n);
393 extern Ring ttyoring;
2162 ttyout = ring_full_count(&ttyoring);