diff options
author | Christopher Faylor <me@cgf.cx> | 2012-04-03 00:41:46 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2012-04-03 00:41:46 +0400 |
commit | 17a61045ffe0acdbdb0f84ddfc34d3eb47666e57 (patch) | |
tree | 681d3d6a8826eb99dfb76d60207ef8b845bc0117 /winsup/cygwin/devices.h | |
parent | eb7729eb36da9c27121d17d088860079d4c64625 (diff) |
* devices.h (lives_in_dev): New field.
(dev_on_fs): Set bit size.
(is_dev_resident): Define new method.
* devices.in: Use different method for labelling requested name for dev
storage: prefix it with a ='. Use an actual ':' to denote an internal device.
(exists_console): Avoid repeated test.
(exists_ntdev_silent): Rename from the less-descriptive exists_ntdevs.
(dev_dev_storage): Delete unneeded define.
* gendevices: Add a flag to each line denoting whether the device lives in /dev
space.
(generate): Handle special ":" case here for internal devices. Parse
=something_dev as requiring a storage location. Tack the rest of the line back
onto the reformulated "$rest".
* devices.cc: Regenerate.
Diffstat (limited to 'winsup/cygwin/devices.h')
-rw-r--r-- | winsup/cygwin/devices.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/devices.h b/winsup/cygwin/devices.h index dca3e4584..b6255f089 100644 --- a/winsup/cygwin/devices.h +++ b/winsup/cygwin/devices.h @@ -275,7 +275,8 @@ struct device const char *native; int (*exists_func) (const device&); _mode_t mode; - bool dev_on_fs; + bool lives_in_dev:4; + bool dev_on_fs:4; static const device *lookup (const char *, unsigned int = UINT32_MAX); void parse (const char *); void parse (_major_t major, _minor_t minor); @@ -318,6 +319,7 @@ struct device inline void setfs (bool x) {dev_on_fs = x;} inline bool isfs () const {return dev_on_fs || d.devn == FH_FS;} inline bool is_fs_special () const {return dev_on_fs && d.devn != FH_FS;} + inline bool is_dev_resident () const {return lives_in_dev;} inline int exists () const {return exists_func (*this);} unsigned char type () const { |