summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler.h
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2004-07-15 14:56:05 +0000
committerCorinna Vinschen <corinna@vinschen.de>2004-07-15 14:56:05 +0000
commit4243412aa5a9443a696cba6198a0daac3100ef3c (patch)
treed288baf81ad0ce74af97e257684d6538c78ae3d8 /winsup/cygwin/fhandler.h
parentfcedcf9488de0113b50d22fca94d6a72ed59d576 (diff)
downloadcygnal-4243412aa5a9443a696cba6198a0daac3100ef3c.tar.gz
cygnal-4243412aa5a9443a696cba6198a0daac3100ef3c.tar.bz2
cygnal-4243412aa5a9443a696cba6198a0daac3100ef3c.zip
* fhandler.h (class fhandler_dev_raw): Remove is_writing flag.
Remove declaration of writebuf. (class fhandler_dev_floppy): Remove declaration of close. * fhandler_floppy.cc (fhandler_dev_floppy::close): Delete. (fhandler_dev_floppy::lseek): Remove calls to writebuf. Set eom_detected to false after successful seek. * fhandler_raw.cc (fhandler_dev_raw::writebuf): Delete. (fhandler_dev_raw::raw_read): Remove calls to writebuf. (fhandler_dev_raw::raw_write): Always invalidate buffer.
Diffstat (limited to 'winsup/cygwin/fhandler.h')
-rw-r--r--winsup/cygwin/fhandler.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h
index c5f99f07a..3b7e6b4bc 100644
--- a/winsup/cygwin/fhandler.h
+++ b/winsup/cygwin/fhandler.h
@@ -482,22 +482,19 @@ class fhandler_dev_raw: public fhandler_base
unsigned eom_detected : 1;
unsigned eof_detected : 1;
unsigned lastblk_to_read : 1;
- unsigned is_writing : 1;
public:
status_flags () :
- eom_detected (0), eof_detected (0), lastblk_to_read (0), is_writing (0)
+ eom_detected (0), eof_detected (0), lastblk_to_read (0)
{}
} status;
IMPLEMENT_STATUS_FLAG (bool, eom_detected)
IMPLEMENT_STATUS_FLAG (bool, eof_detected)
IMPLEMENT_STATUS_FLAG (bool, lastblk_to_read)
- IMPLEMENT_STATUS_FLAG (bool, is_writing)
virtual BOOL write_file (const void *buf, DWORD to_write,
DWORD *written, int *err);
virtual BOOL read_file (void *buf, DWORD to_read, DWORD *read, int *err);
- virtual int writebuf (void);
/* returns not null, if `win_error' determines an end of media condition */
virtual int is_eom(int win_error);
@@ -535,7 +532,6 @@ class fhandler_dev_floppy: public fhandler_dev_raw
fhandler_dev_floppy ();
virtual int open (int flags, mode_t mode = 0);
- virtual int close (void);
virtual _off64_t lseek (_off64_t offset, int whence);