diff options
author | bde <bde@FreeBSD.org> | 1995-04-30 14:56:30 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-04-30 14:56:30 +0000 |
commit | 842728512148d19d2e8e020150941744f5f41eac (patch) | |
tree | 8c69d9c1d86f2d8bec8d340ae20fd59308f1494e /sys | |
parent | df9d0d25763387881fa358fb59b5e19ec5060a70 (diff) | |
download | FreeBSD-src-842728512148d19d2e8e020150941744f5f41eac.zip FreeBSD-src-842728512148d19d2e8e020150941744f5f41eac.tar.gz |
Define CDTR_IFLOW and CDSR_OFLOW which are now required for compiling
bin/stty. Define alias CCAR_OFLOW for MDMBUF.
Declare speeds as having type speed_t instead of long. speed_t is
long, which is wrong (POSIX specifies it to be unsigned integral),
but fixing it might introduce more serious bugs.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/termios.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/sys/termios.h b/sys/sys/termios.h index 5abe2d9..f4b19a4 100644 --- a/sys/sys/termios.h +++ b/sys/sys/termios.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)termios.h 8.3 (Berkeley) 3/28/94 - * $Id$ + * $Id: termios.h,v 1.3 1994/08/02 07:53:46 davidg Exp $ */ #ifndef _SYS_TERMIOS_H_ @@ -134,8 +134,10 @@ #define CCTS_OFLOW 0x00010000 /* CTS flow control of output */ #define CRTSCTS (CCTS_OFLOW | CRTS_IFLOW) #define CRTS_IFLOW 0x00020000 /* RTS flow control of input */ +#define CDTR_IFLOW 0x00040000 /* DTR flow control of input */ #define CDSR_OFLOW 0x00080000 /* DSR flow control of output */ -#define MDMBUF 0x00100000 /* flow control output via Carrier */ +#define CCAR_OFLOW 0x00100000 /* DCD flow control of output */ +#define MDMBUF 0x00100000 /* old name for CCAR_OFLOW */ #endif @@ -175,7 +177,7 @@ typedef unsigned long tcflag_t; typedef unsigned char cc_t; -typedef long speed_t; +typedef long speed_t; /* XXX should be unsigned long */ struct termios { tcflag_t c_iflag; /* input flags */ @@ -183,8 +185,8 @@ struct termios { tcflag_t c_cflag; /* control flags */ tcflag_t c_lflag; /* local flags */ cc_t c_cc[NCCS]; /* control chars */ - long c_ispeed; /* input speed */ - long c_ospeed; /* output speed */ + speed_t c_ispeed; /* input speed */ + speed_t c_ospeed; /* output speed */ }; /* |