From ad2864f4c8dd5157dad2011483c4076416a80f4c Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 5 Mar 2002 08:15:28 +0000 Subject: * include/sys/termios.h: Define _POSIX_VDISABLE. Define CCEQ macro. * fhandler_termios.cc: Include . (line_edit): Recognize disabled c_cc[] chars. Ignore VDISCARD when not in ICANON mode. --- winsup/cygwin/include/sys/termios.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'winsup/cygwin/include/sys/termios.h') diff --git a/winsup/cygwin/include/sys/termios.h b/winsup/cygwin/include/sys/termios.h index a87f10627..c37776111 100644 --- a/winsup/cygwin/include/sys/termios.h +++ b/winsup/cygwin/include/sys/termios.h @@ -195,6 +195,14 @@ details. */ #define NCCS 18 +/* `c_cc' member of 'struct termios' structure can be disabled by + using the value _POSIX_VDISABLE. */ +#define _POSIX_VDISABLE '\0' + +/* Compare a character C to a value VAL from the `c_cc' array in a + `struct termios'. If VAL is _POSIX_VDISABLE, no character can match it. */ +#define CCEQ(val, c) ((c) == (val) && (val) != _POSIX_VDISABLE) + typedef unsigned char cc_t; typedef unsigned int tcflag_t; typedef unsigned int speed_t; -- cgit v1.2.3