mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-21 16:26:12 +08:00
* ioctl.cc (ioctl): Accommodate change in reported pty master device number.
* select.cc (peek_pipe): Ditto.
This commit is contained in:
parent
e73b03adcc
commit
c0ac34fda0
@ -1,3 +1,9 @@
|
|||||||
|
2006-06-04 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
|
* ioctl.cc (ioctl): Accommodate change in reported pty master device
|
||||||
|
number.
|
||||||
|
* select.cc (peek_pipe): Ditto.
|
||||||
|
|
||||||
2006-06-04 Christopher Faylor <cgf@timesys.com>
|
2006-06-04 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
* cygtls.h (CYGTLS_PADSIZE): Reset to a size that XP SP1 seems to like.
|
* cygtls.h (CYGTLS_PADSIZE): Reset to a size that XP SP1 seems to like.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* ioctl.cc: ioctl routines.
|
/* ioctl.cc: ioctl routines.
|
||||||
|
|
||||||
Copyright 1996, 1998, 1999, 2000, 2001, 2002, 2003 Red Hat, Inc.
|
Copyright 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2006 Red Hat, Inc.
|
||||||
|
|
||||||
Written by Doug Evans of Cygnus Support
|
Written by Doug Evans of Cygnus Support
|
||||||
dje@cygnus.com
|
dje@cygnus.com
|
||||||
@ -38,7 +38,10 @@ ioctl (int fd, int cmd, ...)
|
|||||||
|
|
||||||
debug_printf ("fd %d, cmd %x", fd, cmd);
|
debug_printf ("fd %d, cmd %x", fd, cmd);
|
||||||
int res;
|
int res;
|
||||||
if (cfd->is_tty () && cfd->get_device () != FH_PTYM)
|
/* FIXME: This stinks. There are collisions between cmd types
|
||||||
|
depending on whether fd is associated with a pty master or not.
|
||||||
|
Something to fix for Cygwin2. CGF 2006-06-04 */
|
||||||
|
if (cfd->is_tty () && cfd->get_major () != DEV_TTYM_MAJOR)
|
||||||
switch (cmd)
|
switch (cmd)
|
||||||
{
|
{
|
||||||
case TCGETA:
|
case TCGETA:
|
||||||
|
@ -457,10 +457,9 @@ peek_pipe (select_record *s, bool from_select)
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (fh->get_device ())
|
switch (fh->get_major ())
|
||||||
{
|
{
|
||||||
case FH_PTYM:
|
case DEV_TTYM_MAJOR:
|
||||||
case FH_TTYM:
|
|
||||||
if (((fhandler_pty_master *) fh)->need_nl)
|
if (((fhandler_pty_master *) fh)->need_nl)
|
||||||
{
|
{
|
||||||
gotone = s->read_ready = true;
|
gotone = s->read_ready = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user