cfspeed(3C)cfspeed(3C)NAMEcfgetospeed(), cfsetospeed(), cfgetispeed(), cfsetispeed() - tty baud
rate functions
SYNOPSISDESCRIPTION
These functions set and get the input and output speed codes in the
termios structure referenced by termios_p. The termios structure con‐
tains these speed codes representing input and output baud rates as
well as other terminal related parameters. Setting the parameters on a
terminal file does not become effective until is successfully called.
returns the output speed code from the
termios structure referenced by termios_p.
sets the output speed code in the
termios structure referenced by termios_p to
speed. The speed code for a baud rate of
zero, is used to terminate the connection.
If is specified, the modem control lines are
no longer asserted, which normally discon‐
nects the line.
returns the input speed code from the
termios structure referenced by termios_p.
sets the input speed code in the
termios structure referenced by termios_p to
speed.
RETURN VALUE
returns the output speed code from the termios structure referenced by
termios_p.
returns the input speed code from the termios structure referenced by
termios_p.
and return zero upon successful completion. Otherwise, they return -1
and set to indicate the error.
ERRORS
and fail when the following condition is encountered:
[EINVAL] The value of speed is outside the range of possi‐
ble speed codes as specified in
WARNINGS
and can be used to set speed codes in the termios structure that are
not supported by the terminal hardware.
SEE ALSOtcattribute(3C), thread_safety(5), termio(7).
STANDARDS CONFORMANCEcfspeed(3C)