This is the mail archive of the cygwin-cvs@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[newlib-cygwin] Cygwin: Drop definition and usage of _mode_t in favor of __mode_t


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=ea58e20c0e711591b3b4260a34aef69d8291bcb5

commit ea58e20c0e711591b3b4260a34aef69d8291bcb5
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Fri Apr 15 14:49:36 2016 +0200

    Cygwin: Drop definition and usage of _mode_t in favor of __mode_t
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/cygwin/devices.h | 3 +--
 winsup/cygwin/path.cc   | 4 ++--
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/winsup/cygwin/devices.h b/winsup/cygwin/devices.h
index 21120bd..991fd05 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);
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index a839c0a..250871d 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -97,7 +97,7 @@ struct symlink_info
   bool isdevice;
   _major_t major;
   _minor_t minor;
-  _mode_t mode;
+  __mode_t mode;
   int check (char *path, const suffix_info *suffixes, fs_info &fs,
 	     path_conv_handle &conv_hdl);
   int set (char *path);
@@ -2565,7 +2565,7 @@ symlink_info::parse_device (const char *contents)
   char *endptr;
   _major_t mymajor;
   _major_t myminor;
-  _mode_t mymode;
+  __mode_t mymode;
 
   mymajor = strtol (contents += 2, &endptr, 16);
   if (endptr == contents)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]