delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/11/30/16:26:46

From: corinna DOT vinschen AT cityweb DOT de (Corinna Vinschen)
Subject: B20 patch: ioctl modes for fhandler_tty_slave
30 Nov 1998 16:26:46 -0800 :
Message-ID: <366331B1.6D36972A.cygnus.cygwin32.developers@cityweb.de>
Mime-Version: 1.0
To: cygwin32-developers AT cygnus DOT com

Hello,

As in the last patch to fhandler_console, I've added missing
ioctl commands by calling the correspondig tcsetattr() calls.

Bye,
Corinna


ChangeLog:
----------

	* fhandler_tty.cc (fhandler_tty_slave::ioctl):
	Added ioctl commands TCSETAW, TCSETAF.

Index: fhandler_tty.cc
===================================================================
RCS file: /src/cvsroot/winsup-981126/fhandler_tty.cc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- fhandler_tty.cc     1998/11/26 22:14:35     1.1
+++ fhandler_tty.cc     1998/11/30 23:54:55     1.2
@@ -1028,6 +1028,10 @@ fhandler_tty_slave::ioctl (unsigned int
       return tcgetattr ((struct termios *) arg);
     case TCSETA:
       return tcsetattr (TCSANOW, (struct termios *) arg);
+    case TCSETAW:
+      return tcsetattr (TCSADRAIN, (struct termios *) arg);
+    case TCSETAF:
+      return tcsetattr (TCSAFLUSH, (struct termios *) arg);
     case FIONBIO:
       if (* (int *) arg)
        set_flags (get_flags () | O_NONBLOCK);

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019