OSDN Git Service

* fhandler.h (class fhandler_dev_raw): Move status bits into protected
authorcorinna <corinna>
Fri, 9 Apr 2004 20:39:18 +0000 (20:39 +0000)
committercorinna <corinna>
Fri, 9 Apr 2004 20:39:18 +0000 (20:39 +0000)
commite134bd27f8fd9833deba23f0cb50705927cbd826
treeea54cf9b405ebee3f70a43fd04b2db517ee6f819
parentbd183f89a989f03572621a0c4a281f46ec0aa9c2
* fhandler.h (class fhandler_dev_raw): Move status bits into protected
bitfield struct type status_flags.  Drop unused has_written bit.
Add accessor methods.
(fhandler_dev_raw::clear): Remove.
(fhandler_dev_raw::reset_devbuf): Remove.
* fhandler_floppy.cc (fhandler_dev_floppy::lseek): Use accessor method
for is_writing.
* fhandler_raw.cc: Use status accessor methods throughout.
(fhandler_dev_raw::clear): Remove.
(fhandler_dev_raw::fhandler_dev_raw): Drop clear call.
(fhandler_dev_raw::~fhandler_dev_raw): Ditto.
* fhandler_tape.cc: Use mtinfo::status accessor methods throughout.
(mtinfo_drive::close): Fix conditional to enable BSD semantics
correctly.
(mtinfo_drive::get_status): Rename from mtinfo_drive::status.
* mtinfo.h (class mtinfo_drive): Move status bits into private bitfield
struct type status_flags.  Add accessor methods.
Rename status method to get_status.
winsup/cygwin/ChangeLog
winsup/cygwin/fhandler.h
winsup/cygwin/fhandler_floppy.cc
winsup/cygwin/fhandler_raw.cc
winsup/cygwin/fhandler_tape.cc
winsup/cygwin/mtinfo.h