* include/sys/termios.h (CBRK): Define as alias of CEOL.

(CREPRINT): Define as alias of CRPRNT.
	(CDISCARD): Define as alias of CFLUSH.
	(TTYDEF_*): Define.
This commit is contained in:
Yaakov Selkowitz 2012-11-05 03:19:28 +00:00
parent 5ec30f78e3
commit 650dc73fa5
2 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2012-11-04 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
* include/sys/termios.h (CBRK): Define as alias of CEOL.
(CREPRINT): Define as alias of CRPRNT.
(CDISCARD): Define as alias of CFLUSH.
(TTYDEF_*): Define.
2012-10-31 Corinna Vinschen <corinna@vinschen.de>
* include/sys/param.h: Include stddef.h to define NULL.

View File

@ -85,6 +85,7 @@ POSIX commands */
#define CEOT CTRL('D')
#define CEOL 0
#define CEOL2 0
#define CBRK CEOL
#define CEOF CTRL('D')
#define CSTART CTRL('Q')
#define CSTOP CTRL('S')
@ -93,7 +94,9 @@ POSIX commands */
#define CSUSP CTRL('Z')
#define CDSUSP CTRL('Y')
#define CRPRNT CTRL('R')
#define CREPRINT CRPRNT
#define CFLUSH CTRL('O')
#define CDISCARD CFLUSH
#define CWERASE CTRL('W')
#define CLNEXT CTRL('V')
@ -241,6 +244,12 @@ POSIX commands */
`struct termios'. If VAL is _POSIX_VDISABLE, no character can match it. */
#define CCEQ(val, c) ((c) == (val) && (val) != _POSIX_VDISABLE)
#define TTYDEF_IFLAG (BRKINT | ICRNL | IMAXBEL | IXON | IXANY)
#define TTYDEF_OFLAG (OPOST | ONLCR)
#define TTYDEF_LFLAG (ICANON | ISIG | IEXTEN | ECHO | ECHOE | ECHOKE | ECHOCTL)
#define TTYDEF_CFLAG (CREAD | CS8 | HUPCL)
#define TTYDEF_SPEED (B9600)
typedef unsigned char cc_t;
typedef unsigned int tcflag_t;
typedef unsigned int speed_t;