summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_floppy.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2004-04-09 20:39:19 +0000
committerCorinna Vinschen <corinna@vinschen.de>2004-04-09 20:39:19 +0000
commitff0843433a4597a55a31bad84f82886ce9943612 (patch)
tree0a7c30e18e8414f19b15082e403f3a0b49f4858a /winsup/cygwin/fhandler_floppy.cc
parent535309a6e303db4a6bf38eb202eee08136efb2cf (diff)
downloadcygnal-ff0843433a4597a55a31bad84f82886ce9943612.tar.gz
cygnal-ff0843433a4597a55a31bad84f82886ce9943612.tar.bz2
cygnal-ff0843433a4597a55a31bad84f82886ce9943612.zip
* 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.
Diffstat (limited to 'winsup/cygwin/fhandler_floppy.cc')
-rw-r--r--winsup/cygwin/fhandler_floppy.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_floppy.cc b/winsup/cygwin/fhandler_floppy.cc
index 5d715adc7..2d17d99e6 100644
--- a/winsup/cygwin/fhandler_floppy.cc
+++ b/winsup/cygwin/fhandler_floppy.cc
@@ -144,7 +144,7 @@ fhandler_dev_floppy::lseek (_off64_t offset, int whence)
return -1;
}
current_position = low + ((_off64_t) high << 32);
- if (is_writing)
+ if (is_writing ())
current_position += devbufend - devbufstart;
else
current_position -= devbufend - devbufstart;