MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / ttydisc_rint_simple

Function ttydisc_rint_simple

components/lwp/terminal/freebsd/tty_ttydisc.c:1294–1308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1292}
1293
1294size_t ttydisc_rint_simple(struct lwp_tty *tp, const void *buf, size_t len)
1295{
1296 const char *cbuf;
1297
1298 if (ttydisc_can_bypass(tp))
1299 return (ttydisc_rint_bypass(tp, buf, len));
1300
1301 for (cbuf = buf; len-- > 0; cbuf++)
1302 {
1303 if (ttydisc_rint(tp, *cbuf, 0) != 0)
1304 break;
1305 }
1306
1307 return (cbuf - (const char *)buf);
1308}
1309
1310size_t ttydisc_rint_bypass(struct lwp_tty *tp, const void *buf, size_t len)
1311{

Callers 1

ptsdev_writeFunction · 0.85

Calls 2

ttydisc_rint_bypassFunction · 0.85
ttydisc_rintFunction · 0.85

Tested by

no test coverage detected