Open System Services Library Calls Reference Manual (G06.28+, H06.05+)

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 native Guardian processes: implicit libraries
H-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 undened.
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-007 Hewlett-Packard Company 145