OSDN Git Service

* fhandler_tty.cc (fhandler_pty_master::process_slave_output):
authorcorinna <corinna>
Thu, 18 Sep 2003 18:54:46 +0000 (18:54 +0000)
committercorinna <corinna>
Thu, 18 Sep 2003 18:54:46 +0000 (18:54 +0000)
commitfb2611643cc7f5ff128f7dc5bb2f8604af3da89a
tree8ab0dabd66deaee52194e3e81d4cacdcfefd29b5
parent321a89135eefd4c8d6d5ed605213c6b753e10d1b
* fhandler_tty.cc (fhandler_pty_master::process_slave_output):
Handle buf == NULL as flushing the buffer.
(fhandler_tty_slave::read): Handle ptr == NULL as flushing the buffer.
(fhandler_tty_slave::tcflush): Implement input queue flushing by
calling read with NULL buffer.
(fhandler_pty_master::tcflush): Ditto, calling process_slave_output.
* termios.cc (tcflush): Check for legal `queue' value.  Return
EINVAL otherwise.
winsup/cygwin/ChangeLog
winsup/cygwin/fhandler_tty.cc
winsup/cygwin/termios.cc