From 780c42b43aa89a9f54c05c3c6b53e2c8b27b8bad Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 22 Jul 2002 09:11:45 +0000 Subject: * fhandler.h (class fhandler_serial): Add new members of the class - rts,dtr and method ioctl(). Variables rts and dtr important for Win 9x only. * fhandler_serial.cc (fhandler_serial::open): Add initial setting of dtr and rts. Important for Win 9x only. (fhandler_serial::ioctl): New function. Implements commands TIOCMGET, TIOCMSET and TIOCINQ. (fhandler_serial::tcflush): Fixed found error. (fhandler_serial::tcsetattr): Add settings of rts and dtr. Important for Win 9x only. * termios.h: Add new defines as a support for ioctl() function on serial device. --- winsup/cygwin/fhandler.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'winsup/cygwin/fhandler.h') diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h index 164a892d1..17390bdc3 100644 --- a/winsup/cygwin/fhandler.h +++ b/winsup/cygwin/fhandler.h @@ -629,6 +629,8 @@ class fhandler_serial: public fhandler_base unsigned int vmin_; /* from termios */ unsigned int vtime_; /* from termios */ pid_t pgrp_; + int rts; /* for Windows 9x purposes only */ + int dtr; /* for Windows 9x purposes only */ public: int overlapped_armed; @@ -648,6 +650,7 @@ class fhandler_serial: public fhandler_base int tcsendbreak (int); int tcdrain (); int tcflow (int); + int ioctl (unsigned int cmd, void *); int tcsetattr (int a, const struct termios *t); int tcgetattr (struct termios *t); __off64_t lseek (__off64_t, int) { return 0; } -- cgit v1.2.3