diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2004-04-09 12:09:45 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2004-04-09 12:09:45 +0000 |
commit | 7aa88267c1df43b50cd3236e3e06747e1830d27b (patch) | |
tree | d06c953ba04d4c2d38dcd4eb5665ab5595c1d638 /winsup/cygwin/fhandler_termios.cc | |
parent | b79f85c28b63ccc3326ac78654c8171c3f8a5706 (diff) | |
download | cygnal-7aa88267c1df43b50cd3236e3e06747e1830d27b.tar.gz cygnal-7aa88267c1df43b50cd3236e3e06747e1830d27b.tar.bz2 cygnal-7aa88267c1df43b50cd3236e3e06747e1830d27b.zip |
* fhandler.h (fhandler_base::status): Declare private.
(fhandler_base::open_status): Ditto.
(class fhandler_socket): Move status bits into private bitfield struct
type status_flags. Change accessor methods appropriately.
* fhandler_socket.cc (fhandler_socket::fhandler_socket): Accomodate
above status bit changes.
* tty.h: Remove status bit enumerator.
(TTYISSETF): Remove.
(TTYSETF): Remove.
(TTYCLEARF): Remove.
(TTYCONDSETF): Remove.
(tty_min::status): Define as private bitfield struct type status_flags.
Add appropriate accessor methods.
* fhandler_console.cc: Use tty_min::status accessor methods throughout.
* fhandler_termios.cc: Ditto.
* winsup.h (__ISSETF): Remove.
(__SETF): Remove.
(__CLEARF): Remove.
(__CONDSETF): Remove.
Diffstat (limited to 'winsup/cygwin/fhandler_termios.cc')
-rw-r--r-- | winsup/cygwin/fhandler_termios.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler_termios.cc b/winsup/cygwin/fhandler_termios.cc index ed8d3b27f..636f7822f 100644 --- a/winsup/cygwin/fhandler_termios.cc +++ b/winsup/cygwin/fhandler_termios.cc @@ -31,7 +31,7 @@ fhandler_termios::tcinit (tty_min *this_tc, bool force) tc = this_tc; - if (force || !TTYISSETF (INITIALIZED)) + if (force || !tc->is_initialized ()) { tc->ti.c_iflag = BRKINT | ICRNL | IXON; tc->ti.c_oflag = OPOST | ONLCR; @@ -58,7 +58,7 @@ fhandler_termios::tcinit (tty_min *this_tc, bool force) tc->ti.c_ispeed = tc->ti.c_ospeed = B38400; tc->pgid = myself->pgid; - TTYSETF (INITIALIZED); + tc->initialize (); } } |