aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/fhandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/fhandler.h')
-rw-r--r--winsup/cygwin/fhandler.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h
index 4b19af2..2335484 100644
--- a/winsup/cygwin/fhandler.h
+++ b/winsup/cygwin/fhandler.h
@@ -476,14 +476,14 @@ protected:
public:
~fhandler_dev_raw (void);
+ int get_unit () { return unit; }
+
int open (path_conv *, int flags, mode_t mode = 0);
int close (void);
int raw_read (void *ptr, size_t ulen);
int raw_write (const void *ptr, size_t ulen);
- int __stdcall fstat (struct stat *buf, path_conv *) __attribute__ ((regparm (2)));
-
int dup (fhandler_base *child);
int ioctl (unsigned int cmd, void *buf);
@@ -511,9 +511,10 @@ public:
class fhandler_dev_tape: public fhandler_dev_raw
{
- int norewind;
int lasterr;
+ bool is_rewind_device () { return get_unit () < 128; }
+
protected:
virtual void clear (void);