tty__getspeed(): * Get the tty speed */
| 593 | * Get the tty speed |
| 594 | */ |
| 595 | private speed_t |
| 596 | tty__getspeed(struct termios *td) |
| 597 | { |
| 598 | speed_t spd; |
| 599 | |
| 600 | if ((spd = cfgetispeed(td)) == 0) |
| 601 | spd = cfgetospeed(td); |
| 602 | return spd; |
| 603 | } |
| 604 | |
| 605 | /* tty__getspeed(): |
| 606 | * Return the index of the asked char in the c_cc array |
no outgoing calls
no test coverage detected