Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2011-07-11 04:03:55 +0400
committerChristopher Faylor <me@cgf.cx>2011-07-11 04:03:55 +0400
commitc57fc872f5e99317d32e9605205ee0f3a54d51e5 (patch)
treec572a05b7741601dd2e084684f1fa5dabd77ed2a /winsup/cygwin/fhandler_tty.cc
parent071bf811289ff4c73dbbce14ca9ccc90a4e0c658 (diff)
* fhandler_tty.cc (fhandler_pty_slave::ioctl): Remove erroneous support for
TIOCLINUX for pty. Get rid of unneeded EINVAL handling in wake of tty removal. Remove now-unneeded variable.
Diffstat (limited to 'winsup/cygwin/fhandler_tty.cc')
-rw-r--r--winsup/cygwin/fhandler_tty.cc15
1 files changed, 0 insertions, 15 deletions
diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc
index 3a08ca357..b1dd96275 100644
--- a/winsup/cygwin/fhandler_tty.cc
+++ b/winsup/cygwin/fhandler_tty.cc
@@ -959,9 +959,6 @@ fhandler_pty_slave::ioctl (unsigned int cmd, void *arg)
{
case TIOCGWINSZ:
case TIOCSWINSZ:
- case TIOCLINUX:
- case KDGKBMETA:
- case KDSKBMETA:
break;
case FIONBIO:
set_nonblocking (*(int *) arg);
@@ -991,7 +988,6 @@ fhandler_pty_slave::ioctl (unsigned int cmd, void *arg)
get_ttyp ()->cmd = cmd;
get_ttyp ()->ioctl_retval = 0;
- int val;
switch (cmd)
{
case TIOCGWINSZ:
@@ -1008,17 +1004,6 @@ fhandler_pty_slave::ioctl (unsigned int cmd, void *arg)
killsys (-get_ttyp ()->getpgid (), SIGWINCH);
}
break;
- case TIOCLINUX:
- val = *(unsigned char *) arg;
- if (val != 6)
- get_ttyp ()->ioctl_retval = -EINVAL;
- break;
- case KDGKBMETA:
- get_ttyp ()->ioctl_retval = -EINVAL;
- break;
- case KDSKBMETA:
- get_ttyp ()->ioctl_retval = -EINVAL;
- break;
}
release_output_mutex ();