* 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.
This commit is contained in:
@ -722,6 +722,7 @@ class fhandler_serial: public fhandler_base
|
||||
int tcdrain ();
|
||||
int tcflow (int);
|
||||
int ioctl (unsigned int cmd, void *);
|
||||
int switch_modem_lines (int set, int clr);
|
||||
int tcsetattr (int a, const struct termios *t);
|
||||
int tcgetattr (struct termios *t);
|
||||
_off64_t lseek (_off64_t, int) { return 0; }
|
||||
|
Reference in New Issue
Block a user