cfgetospeed

cfgetispeed is a Linux standard interface to get output baud rate.

See Library Functions on the Linux man-pages project for more information.