RTS/CTS flow control (AIX V3)

Peter Jeffe 512.823.4091 jeffe at sandino.austin.ibm.com
Fri Aug 17 04:35:21 AEST 1990


In article <1352 at msa3b.UUCP> kevin at msa3b.UUCP (Kevin P. Kleinfelter) writes:
>How does one enable/disable RTS/CTS flow control on a tty line using
>AIX V3, from a C program?  The only info provided by "info" is that
>"stty add rts" can be issued from the shell level.

This is esentially what an "stty add rts" does:

#include <sys/ioctl.h>
main()
{
    if (ioctl(0, TXADDCD, "rts"))
	perror("ioctl");
}

Substitute TXDELCD if you want to "stty del rts".
-------------------------------------------------------------------------------
Peter Jeffe   ...uunet!cs.utexas.edu!ibmaus!auschs!sandino.austin.ibm.com!jeffe
        first they want a disclaimer, then they make you pee in a jar,
                   then they come for you in the night



More information about the Comp.unix.aix mailing list