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

Function tty__getspeed

extern/editline/src/tty.c:595–603  ·  view source on GitHub ↗

tty__getspeed(): * Get the tty speed */

Source from the content-addressed store, hash-verified

593 * Get the tty speed
594 */
595private speed_t
596tty__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

Callers 2

tty_setupFunction · 0.85
tty_rawmodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected