diff options
author | Jason Downs <downsj@cvs.openbsd.org> | 1996-09-09 23:35:18 +0000 |
---|---|---|
committer | Jason Downs <downsj@cvs.openbsd.org> | 1996-09-09 23:35:18 +0000 |
commit | f5adeb93aa2c202ee2af1b649f0f78d64491cce9 (patch) | |
tree | 8fbc8b05135a6424fd26617c635f0e63436994c7 | |
parent | e8b1b71b2e9214109440a45d8791559d5e46145c (diff) |
TIOCMOD{G,S} -> TIOCM{GET,SET}. NetBSD PR#2741, Greg-Lindahl@deshaw.com
-rw-r--r-- | sys/sys/ttycom.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/sys/ttycom.h b/sys/sys/ttycom.h index 51c9b11a4e7..4f72bd4fcaf 100644 --- a/sys/sys/ttycom.h +++ b/sys/sys/ttycom.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ttycom.h,v 1.3 1996/05/22 11:54:28 deraadt Exp $ */ +/* $OpenBSD: ttycom.h,v 1.4 1996/09/09 23:35:17 downsj Exp $ */ /* $NetBSD: ttycom.h,v 1.4 1996/05/19 17:17:53 jonathan Exp $ */ /*- @@ -62,8 +62,6 @@ struct winsize { unsigned short ws_ypixel; /* vertical size, pixels */ }; -#define TIOCMODG _IOR('t', 3, int) /* get modem control state */ -#define TIOCMODS _IOW('t', 4, int) /* set modem control state */ #define TIOCM_LE 0001 /* line enable */ #define TIOCM_DTR 0002 /* data terminal ready */ #define TIOCM_RTS 0004 /* request to send */ @@ -131,6 +129,10 @@ struct winsize { #define TIOCFLAG_CRTSCTS 0x04 /* set crtscts on open */ #define TIOCFLAG_MDMBUF 0x08 /* set mdmbuf on open */ +/* Backwards compatibility */ +#define TIOCMODG TIOCMGET +#define TIOCMODS TIOCMSET + #define TTYDISC 0 /* termios tty line discipline */ #define TABLDISC 3 /* tablet discipline */ #define SLIPDISC 4 /* serial IP discipline */ |