tty_getty(): * Wrapper for tcgetattr to handle EINTR */
| 468 | * Wrapper for tcgetattr to handle EINTR |
| 469 | */ |
| 470 | private int |
| 471 | tty_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 |
no outgoing calls
no test coverage detected