]> sourceware.org Git - newlib-cygwin.git/commit
* fhandler.h (fhandler_pty_common::bytes_available): Declare new function.
authorChristopher Faylor <me@cgf.cx>
Thu, 5 Apr 2012 02:54:51 +0000 (02:54 +0000)
committerChristopher Faylor <me@cgf.cx>
Thu, 5 Apr 2012 02:54:51 +0000 (02:54 +0000)
commit7b03b0d8cee0ab8ef442d0d1ed2031f77207557a
tree4cb0a3863b4e702b974fe86fe483c73ab3465dc6
parentffcd2c3f894413870b4431677d94044ca0336c1b
* fhandler.h (fhandler_pty_common::bytes_available): Declare new function.
(fhandler_pty_master::flush_to_slave): Ditto.
* fhandler_tty.cc (bytes_available): Define new function.
(fhandler_pty_common::bytes_available): Ditto.
(handler_pty_master::flush_to_slave): Ditto.
(fhandler_pty_master::process_slave_output): Call flush_to_slave () here.  Use
bytes_available () rather than PeekNamedPipe.  Cleanup sloppy logic.
(fhandler_pty_slave::read): Use bytes_available () rather than PeekNamedPipe.
(fhandler_pty_slave::ioctl): Ditto.
(fhandler_pty_master::ioctl): Ditto.
(fhandler_pty_master::cleanup): Remove ancient #if 0.
* select.cc (peek_pipe): Call flush_to_slave whenever we're checking for a pty
master.
winsup/cygwin/ChangeLog
winsup/cygwin/fhandler.h
winsup/cygwin/fhandler_tty.cc
winsup/cygwin/select.cc
This page took 0.030912 seconds and 5 git commands to generate.