diff options
author | Christopher Faylor <me@cgf.cx> | 2001-04-24 02:07:58 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-04-24 02:07:58 +0000 |
commit | f3ea62a847c523db2437aee6f17d852e3765bf86 (patch) | |
tree | f9b8e50ed93f6ca269a06d46449b86e29506cbb7 /winsup/cygwin/fhandler_zero.cc | |
parent | 9cf9c146685aaf111b9bf267db771d8905072deb (diff) | |
download | newlib-f3ea62a847c523db2437aee6f17d852e3765bf86.zip newlib-f3ea62a847c523db2437aee6f17d852e3765bf86.tar.gz newlib-f3ea62a847c523db2437aee6f17d852e3765bf86.tar.bz2 |
Remove trailing underscore from fhandler_base and friends, throughout.
* fhandler.h (fhandler_base::set_open_status): New method. Stores original
open status.
(fhandler_base::get_open_status): New method. Retrieves original open status.
(fhandler_base::reset_to_open_binmode): New method.
* fhandler.cc (fhandler_base::open): Save open status.
(fhandler_base::init): Ditto.
* fhandler_clipboard.cc (fhandler_clipboard::open): Ditto.
* fhandler_console.cc (fhandler_console::open): Ditto.
* fhandler_dsp.cc (fhandler_dsp::open): Ditto.
* fhandler_dev_mem.cc (fhandler_dev_mem::open): Ditto.
* fhandler_dev_random.cc (fhandler_dev_random::open): Ditto.
* fhandler_serial.cc (fhandler_serial::open): Ditto.
* fhandler_tty_slave.cc (fhandler_tty_slave::open): Ditto.
* fhandler_tty_master.cc (fhandler_tty_master::open): Ditto.
* fhandler_dev_zero.cc (fhandler_dev_zero::open): Ditto.
* syscalls.cc (setmode): Rework so that 0 mode value causes reversion to open
state.
* fhandler_tty_slave.cc (fhandler_tty_slave::read): Use correct multiplier when
converting from deciseconds to milliseconds.
Diffstat (limited to 'winsup/cygwin/fhandler_zero.cc')
-rw-r--r-- | winsup/cygwin/fhandler_zero.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler_zero.cc b/winsup/cygwin/fhandler_zero.cc index 4c74abc..bef73f0 100644 --- a/winsup/cygwin/fhandler_zero.cc +++ b/winsup/cygwin/fhandler_zero.cc @@ -24,6 +24,7 @@ int fhandler_dev_zero::open (const char *, int flags, mode_t) { set_flags (flags); + set_open_status (); return 1; } |