Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ cfgetispeed(3P) — A/UX 3.0.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

tcgetattr(3P)

termios(7P)




cfgetospeed(3P) cfgetospeed(3P)
NAME cfgetospeed, cfgetispeed, cfsetospeed, cfsetispeed - get or set the value of the output and input baud rate SYNOPSIS #include <termios.h> speed_t cfgetospeed(termio_p) struct termios *termio_p; speed_t cfgetispeed(termio_p) struct termios *termio_p; cfsetospeed(termio_p,speed) struct termios *termio_p; speed_t speed; cfsetispeed(termio_p,speed) struct termios *termio_p; speed_t speed; DESCRIPTION These routines are used for getting and setting the input and output baud rate. A/UX does not support different values for the input and output baud rate; cfsetispeed and cfsetospeed change both the input and output baud rate. cfgetospeed returns the output baud rate stored in the c_cflag that is referenced by termio_p. cfgetispeed returns the input baud rate stored in the c_cflag that is referenced by termio_p. The following baud- rate values are supported for the value of speed: B0 Hang up B50 50 baud B75 75 baud B110 110 baud B134 134 baud B150 150 baud B200 200 baud B300 300 baud B600 600 baud B1200 1200 baud B1800 1800 baud B2400 2400 baud B4800 4800 baud B9600 9600 baud B19200 19200 baud B38400 38400 baud January 1992 1



cfgetospeed(3P) cfgetospeed(3P)
cfsetospeed sets the baud rate stored in c_cflag that is referenced by termio_p to speed. B0 is used to terminate the connection. If B0 is specified, the modem control lines are no longer asserted. cfsetispeed sets the baud rate stored in c_cflag that is referenced by termio_p to speed. If speed is 0, the baud- rate is not changed. For any particular hardware, unsupported baud rate changes are ignored. cfsetispeed and cfsetospeed only modify the termios structure. For the baud rate changes to take place, tcsetattr(3P) must be called with the modified structure as an argument. STATUS MESSAGES AND VALUES cfgetispeed and cfgetospeed return the appropriate baud rate. On successful completion, cfsetispeed and cfsetospeed return 0. If an error is detected, cfsetospeed and cfsetispeed return -1 and set errno to indicate the error. If the following condition occurs, cfsetispeed and cfsetospeed return -1 and set errno to the corresponding value: EINVAL speed specifies an invalid baud rate. SEE ALSO tcgetattr(3P) termios(7P) in A/UX System Administrator's Reference 2 January 1992

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026