diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2005-08-02 09:17:15 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2005-08-02 09:17:15 +0000 |
commit | 723d64e6673c7871b7c26cdac005a862162cfa3e (patch) | |
tree | 7a423beade890d81b32b8a87c3f7adf30740920d /winsup/cygwin/include | |
parent | 88c5a50f9f1982b1ae8cc16350fbc9b60502d88a (diff) | |
download | cygnal-723d64e6673c7871b7c26cdac005a862162cfa3e.tar.gz cygnal-723d64e6673c7871b7c26cdac005a862162cfa3e.tar.bz2 cygnal-723d64e6673c7871b7c26cdac005a862162cfa3e.zip |
* include/sys/termios.h: Define TIOCMBIS and TIOCMBIC.
* fhandler.h (class fhandler_serial): Declare switch_modem_lines.
* fhandler_serial.cc (fhandler_serial::switch_modem_lines): New
static function to set or clear DTR and/or RTS.
(fhandler_serial::ioctl): Use switch_modem_lines for TIOCMSET
and new TIOCMBIS and TIOCMBIC.
* include/cygwin/version.h: Bump API minor number.
Diffstat (limited to 'winsup/cygwin/include')
-rw-r--r-- | winsup/cygwin/include/cygwin/version.h | 3 | ||||
-rw-r--r-- | winsup/cygwin/include/sys/termios.h | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/winsup/cygwin/include/cygwin/version.h b/winsup/cygwin/include/cygwin/version.h index 477195fe5..7e823cd6d 100644 --- a/winsup/cygwin/include/cygwin/version.h +++ b/winsup/cygwin/include/cygwin/version.h @@ -262,12 +262,13 @@ details. */ 133: Export __getline, __getdelim. 134: Export getline, getdelim. 135: Export pread, pwrite + 136: Add TIOCMBIS/TIOCMBIC ioctl codes. */ /* Note that we forgot to bump the api for ualarm, strtoll, strtoull */ #define CYGWIN_VERSION_API_MAJOR 0 -#define CYGWIN_VERSION_API_MINOR 135 +#define CYGWIN_VERSION_API_MINOR 136 /* There is also a compatibity version number associated with the shared memory regions. It is incremented when incompatible diff --git a/winsup/cygwin/include/sys/termios.h b/winsup/cygwin/include/sys/termios.h index 926e11ee7..589c91a57 100644 --- a/winsup/cygwin/include/sys/termios.h +++ b/winsup/cygwin/include/sys/termios.h @@ -1,6 +1,6 @@ /* sys/termios.h - Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003 Red Hat, Inc. + Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005 Red Hat, Inc. This file is part of Cygwin. @@ -14,6 +14,8 @@ details. */ #define _SYS_TERMIOS_H #define TIOCMGET 0x5415 +#define TIOCMBIS 0x5416 +#define TIOCMBIC 0x5417 #define TIOCMSET 0x5418 #define TIOCINQ 0x541B |