]> sourceware.org Git - newlib-cygwin.git/commit
TIOCPKT mode of PTY is broken if ONLCR bit is cleared.
authorTakashi Yano <takashi.yano@nifty.ne.jp>
Wed, 25 Mar 2015 11:42:38 +0000 (20:42 +0900)
committerCorinna Vinschen <corinna@vinschen.de>
Thu, 23 Apr 2015 19:57:07 +0000 (21:57 +0200)
commit8c1a778e7ddf137420de2407a96977f3281c3775
treec35486a94f7038eab6e5823637465bb35906a4c6
parent4f3f09ad7238b6afb8d4052fec65d3ee1572f615
TIOCPKT mode of PTY is broken if ONLCR bit is cleared.

* tty.h (class tty_min): Remove variable "write_error" to which any
errors are not currently set at anywhere.
(class tty): Add variable "column" for handling ONOCR.
* tty.cc (tty::init): Add initialization code for variable "column".
* fhandler.h (class fhandler_pty_master): Remove variable "need_nl"
which is not necessary any more. "need_nl" was needed by OPOST process
in fhandler_pty_master::process_slave_output().
(class fhandler_pty_common): Add function process_opost_output() for
handling post processing for OPOST in write process.
* fhandler_tty.cc (fhandler_pty_master::process_slave_output): Count
TIOCPKT control byte into length to be read in TIOCPKT mode. Move
post processing for OPOST to write process. Remove code related to
variable "write_error". Return with EIO error if slave is already
closed.
(fhandler_pty_master::fhandler_pty_master): Remove initialization
code for variable "need_nl".
(fhandler_pty_common::process_opost_output): Add this function for
handling of OPOST in write process. Add code to avoid blocking in
non-blocking mode when output is suspended by ^S.
(fhandler_pty_slave::write): Call fhandler_pty_common::
process_opost_output() instead of WriteFile(). Remove code related to
variable "write_error".
(fhandler_pty_master::doecho): Call fhandler_pty_common::
 process_opost_output() instead of WriteFile().
* select.cc (peek_pipe): Remove code related to variable "need_nl".

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/ChangeLog
winsup/cygwin/fhandler.h
winsup/cygwin/fhandler_tty.cc
winsup/cygwin/release/1.7.36
winsup/cygwin/select.cc
winsup/cygwin/tty.cc
winsup/cygwin/tty.h
This page took 0.03031 seconds and 5 git commands to generate.