Standard C Library Functions cfgetispeed(3C)
NAME
cfgetispeed, cfgetospeed - get input and output baud rate
SYNOPSIS
#include
speedt cfgetispeed(const struct termios *termiosp);
speedt cfgetospeed(const struct termios *termiosp);
DESCRIPTION
The cfgetispeed() function extracts the input baud rate from
the termios structure to which the termiosp argument
points.
The cfgetospeed() function extracts the output baud rate
from the termios structure to which the termiosp argument
points.
These functions returns exactly the value in the termios
data structure, without interpretation.
RETURN VALUES
Upon successful completion, cfgetispeed() returns a value of
type speedt representing the input baud rate.
Upon successful completion, cfgetospeed() returns a value of
type speedt representing the output baud rate.
ERORS
No errors are defined.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
SunOS 5.11 Last change: 24 Jul 2002 1
Standard C Library Functions cfgetispeed(3C)
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Standard
MT-Level MT-Safe, and Async-Signal-Safe
SEE ALSO
cfgetospeed(3C), tcgetattr(3C), attributes(5), standards(5),
termio(7I)
SunOS 5.11 Last change: 24 Jul 2002 2
|