Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
OSS Library Calls (a - d) cfgetospeed(3)
NAME
cfgetospeed - Gets the output baud rate for a terminal
LIBRARY
G-series native Guardian processes: system library
G-series native OSS processes: system library
H-series and J-series native Guardian processes: implicit libraries
H-series and J-series OSS processes: implicit libraries
SYNOPSIS
#include <termios.h>
speed_t cfgetospeed(
const struct termios *termios_p);
PARAMETERS
termios_p Points to a termios structure containing the output baud rate.
DESCRIPTION
The cfgetospeed( ) function extracts the output baud rate from the termios structure pointed to
by the termios_p parameter.
If the value in the termios structure was not obtained from a successful call to the tcgetattr( )
function, the behavior is undefined.
RETURN VALUES
Upon successful completion, the cfgetospeed( ) function returns a value of type speed_t
representing the output baud rate.
RELATED INFORMATION
Functions: cfgetispeed(3), cfsetispeed(3), cfsetospeed(3), tcgetattr(3).
Files: termios(4).
527187-017 Hewlett-Packard Company 1−107