Return to BSD News archive
Path: sserve!manuel.anu.edu.au!munnari.oz.au!sgiblab!darwin.sura.net!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!fuug!kiae!demos!newsserv From: "Andrew A. Chernov, Black Mage" <ache@astral.msk.su> Newsgroups: comp.unix.bsd Subject: [386BSD] Patch cgd's multiport driver for CRTSCTS definition Date: Thu, 03 Dec 92 17:20:27 +0300 Distribution: world Organization: Ha-oh-lahm Yetzirah Message-ID: <BGhUX7h4F0@astral.msk.su> Sender: news-service@newcom.kiae.su Reply-To: ache@astral.msk.su Lines: 35 Hi, Chris. Very many programs (f.e. stty) test modes in this form: (flags & mode) Now CRTSCRS is complex mode, and this expression becomes: (flags & mode1 | mode2) whitch is always true. This minor patch add brackets to CRTSCTS definition to correct this expression: (flags & (mode1 | mode2)) *** termios.h.was Thu Dec 3 06:24:50 1992 --- termios.h Thu Dec 3 17:06:32 1992 *************** *** 135,141 **** #ifndef _POSIX_SOURCE #define CCTS_OFLOW 0x00010000 /* CTS flow control of output */ #define CRTS_IFLOW 0x00020000 /* RTS flow control of input */ ! #define CRTSCTS CCTS_OFLOW|CRTS_IFLOW /* ??? */ #define MDMBUF 0x00100000 /* flow control output via Carrier */ #endif --- 135,141 ---- #ifndef _POSIX_SOURCE #define CCTS_OFLOW 0x00010000 /* CTS flow control of output */ #define CRTS_IFLOW 0x00020000 /* RTS flow control of input */ ! #define CRTSCTS (CCTS_OFLOW|CRTS_IFLOW) /* ??? */ #define MDMBUF 0x00100000 /* flow control output via Carrier */ #endif -- In-This-Life: Andrew A. Chernov | "Hay mas dicha, mas contento Internet: ache@astral.msk.su | "Que adorar una hermosura Organization: The RELCOM Corp., | "Brujuleada entre los lejos Moscow, Russia | "De lo imposible?!" (Calderon)