mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-19 12:59:21 +08:00
* 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:
parent
071bf81128
commit
c57fc872f5
@ -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.
|
||||
|
@ -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 ();
|
||||
|
Loading…
x
Reference in New Issue
Block a user