* 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.
This commit is contained in:
Christopher Faylor 2011-07-11 00:03:55 +00:00
parent 071bf81128
commit c57fc872f5
2 changed files with 6 additions and 15 deletions

View File

@ -1,3 +1,9 @@
2011-07-10 Christopher Faylor <me.cygwin2011@cgf.cx>
* 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.
2011-07-10 Corinna Vinschen <corinna@vinschen.de>
* include/netdb.h (gethostbyname2): Declare.

View File

@ -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 ();