diff options
author | Christopher Faylor <me@cgf.cx> | 2011-06-12 20:15:26 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2011-06-12 20:15:26 +0000 |
commit | c3a9063f838124aa2a00600ad040dacd53a96cb5 (patch) | |
tree | 2a69a2cbb828f8fcd7aa32a0fbba5eec05be61dc /winsup/cygwin/fhandler_procnet.cc | |
parent | 38e356f0e4277cd9804fcbcef1c3300154e19f90 (diff) | |
download | cygnal-c3a9063f838124aa2a00600ad040dacd53a96cb5.tar.gz cygnal-c3a9063f838124aa2a00600ad040dacd53a96cb5.tar.bz2 cygnal-c3a9063f838124aa2a00600ad040dacd53a96cb5.zip |
Rename FH_BAD to FH_NADA throughout.
* devices.h (FH_ERROR): New value.
(iscons_dev): Extend to detect all the console device types.
* devices.in: Set aside storage for FH_ERROR.
* dtable.cc (dtable::init_std_file_from_handle): Use iscons_dev to detect when
device is a console.
(fh_alloc): Pass device to console constructor.
(build_fh_pc): Short circuit when we detect that the constructor saw an error.
* fhandler.h (fhandler_console::fhandler_console): Accept fh_devices parameter.
(get_tty_stuff): Change to void.
* fhandler_console (fhandler_console::set_unit): Set device to FH_ERROR on
attempt to access anything other than the current console.
(fhandler_console::get_tty_stuff): Change to void return.
(fhandler_console::open): Return EPERM on FH_ERROR device type.
(fhandler_console::fhandler_console): Set the device type appropriately before
calling get_tty_stuff and rely on that function to reset it if necessary.
Diffstat (limited to 'winsup/cygwin/fhandler_procnet.cc')
-rw-r--r-- | winsup/cygwin/fhandler_procnet.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_procnet.cc b/winsup/cygwin/fhandler_procnet.cc index eede6f2c8..cda0a65dd 100644 --- a/winsup/cygwin/fhandler_procnet.cc +++ b/winsup/cygwin/fhandler_procnet.cc @@ -42,7 +42,7 @@ static const virt_tab_t procnet_tab[] = { _VN ("."), FH_PROCNET, virt_directory, NULL }, { _VN (".."), FH_PROCNET, virt_directory, NULL }, { _VN ("if_inet6"), FH_PROCNET, virt_file, format_procnet_ifinet6 }, - { NULL, 0, FH_BAD, virt_none, NULL } + { NULL, 0, FH_NADA, virt_none, NULL } }; static const int PROCNET_LINK_COUNT = |