MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / tty_getty

Function tty_getty

extern/editline/src/tty.c:470–477  ·  view source on GitHub ↗

tty_getty(): * Wrapper for tcgetattr to handle EINTR */

Source from the content-addressed store, hash-verified

468 * Wrapper for tcgetattr to handle EINTR
469 */
470private int
471tty_getty(EditLine *el, struct termios *t)
472{
473 int rv;
474 while ((rv = tcgetattr(el->el_infd, t)) == -1 && errno == EINTR)
475 continue;
476 return rv;
477}
478
479/* tty_setty():
480 * Wrapper for tcsetattr to handle EINTR

Callers 2

tty_setupFunction · 0.85
tty_rawmodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected