1 CFGETISPEED(3C) Standard C Library Functions CFGETISPEED(3C) 2 3 NAME 4 cfgetispeed, cfgetospeed - get input and output baud rate 5 6 SYNOPSIS 7 #include <termios.h> 8 9 speed_t 10 cfgetispeed(const struct termios *termios_p); 11 12 speed_t 13 cfgetospeed(const struct termios *termios_p); 14 15 DESCRIPTION 16 The cfgetispeed() function extracts the input baud rate from the termios 17 structure to which the termios_p argument points. 18 19 The cfgetospeed() function extracts the output baud rate from the termios 20 structure to which the termios_p argument points. 21 22 These functions return exactly the value in the termios data structure, 23 without interpretation. 24 25 RETURN VALUES 26 Upon successful completion, cfgetispeed() returns a value of type speed_t 27 representing the input baud rate. 28 29 Upon successful completion, cfgetospeed() returns a value of type speed_t 30 representing the output baud rate. 31 32 ERRORS 33 No errors are defined. 34 35 INTERFACE STABILITY 36 Standard 37 38 MT-LEVEL 39 MT-Safe 40 41 Async-Signal-Safe 42 43 SEE ALSO 44 cfsetispeed(3C), tcgetattr(3C), attributes(5), standards(5), termio(7I) 45 46 illumos January 20, 2019 illumos