summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/devices.h
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2016-04-15 14:49:36 +0200
committerCorinna Vinschen <corinna@vinschen.de>2016-04-15 14:51:40 +0200
commitea58e20c0e711591b3b4260a34aef69d8291bcb5 (patch)
tree94341b630d8a2ff9b0ee7acf865b45bccb647a39 /winsup/cygwin/devices.h
parent78c9002201775c93e1a2fd54ccf464d37c2c767e (diff)
downloadcygnal-ea58e20c0e711591b3b4260a34aef69d8291bcb5.tar.gz
cygnal-ea58e20c0e711591b3b4260a34aef69d8291bcb5.tar.bz2
cygnal-ea58e20c0e711591b3b4260a34aef69d8291bcb5.zip
Cygwin: Drop definition and usage of _mode_t in favor of __mode_t
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/devices.h')
-rw-r--r--winsup/cygwin/devices.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/devices.h b/winsup/cygwin/devices.h
index 21120bdfc..991fd0538 100644
--- a/winsup/cygwin/devices.h
+++ b/winsup/cygwin/devices.h
@@ -13,7 +13,6 @@ details. */
typedef unsigned short _major_t;
typedef unsigned short _minor_t;
-typedef mode_t _mode_t;
#define FHDEV(maj, min) ((((unsigned) (maj)) << (sizeof (_major_t) * 8)) | (unsigned) (min))
#define _minor(dev) ((dev) & ((1 << (sizeof (_minor_t) * 8)) - 1))
@@ -271,7 +270,7 @@ struct device
} d;
const char *native;
int (*exists_func) (const device&);
- _mode_t mode;
+ __mode_t mode;
bool lives_in_dev:4;
bool dev_on_fs:4;
static const device *lookup (const char *, unsigned int = UINT32_MAX);