]> sourceware.org Git - newlib-cygwin.git/commitdiff
Add _PC_CASE_INSENSITIVE to [f]pathconf
authorKen Brown <kbrown@cornell.edu>
Thu, 20 Oct 2016 19:35:54 +0000 (15:35 -0400)
committerCorinna Vinschen <corinna@vinschen.de>
Fri, 21 Oct 2016 11:39:02 +0000 (13:39 +0200)
Update the getconf utility to support the new flag as well as
_PC_POSIX_PERMISSIONS and _PC_POSIX_SECURITY.  These were previously
unsupported, probably as an oversight.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
newlib/libc/include/sys/unistd.h
winsup/cygwin/fhandler.cc
winsup/cygwin/include/cygwin/version.h
winsup/cygwin/release/2.6.1
winsup/utils/getconf.c

index 05b4f9d8eabc20b4e6e7ff74abc43bb3c18750cd..143147d16e0bb62c419ddf563f5047df336b898d 100644 (file)
@@ -490,6 +490,7 @@ int _EXFUN(unlinkat, (int, const char *, int));
 #define _PC_POSIX_PERMISSIONS            90
 /* Ask for full POSIX permission support including uid/gid settings. */
 #define _PC_POSIX_SECURITY               91
+#define _PC_CASE_INSENSITIVE             92
 #endif
 
 /*
index d77ccd35fe53f9ed59856f1db8522a1db3a79e34..9ab52ad07a00e5bc53f03797c3d97347e0d1392c 100644 (file)
@@ -1891,6 +1891,8 @@ fhandler_base::fpathconf (int v)
        return pc.has_acls () || pc.fs_is_nfs ();
       set_errno (EINVAL);
       break;
+    case _PC_CASE_INSENSITIVE:
+      return !!pc.objcaseinsensitive ();
     default:
       set_errno (EINVAL);
       break;
index 1c1402c2e03e1d909ad648e3bce65bebdd92cef6..6ba602efb2ee25b0defbf52647d70ffd57990917 100644 (file)
@@ -469,12 +469,13 @@ details. */
   302: Export nl_langinfo_l.
   303: Export pthread_getname_np, pthread_setname_np.
   304: Export strerror_l, strptime_l, wcsftime_l.
+  305: [f]pathconf flag _PC_CASE_INSENSITIVE added.
 
   Note that we forgot to bump the api for ualarm, strtoll, strtoull,
   sigaltstack, sethostname. */
 
 #define CYGWIN_VERSION_API_MAJOR 0
-#define CYGWIN_VERSION_API_MINOR 304
+#define CYGWIN_VERSION_API_MINOR 305
 
 /* There is also a compatibity version number associated with the shared memory
    regions.  It is incremented when incompatible changes are made to the shared
index 61ce2de64a819919eca5fb5bb40475e54b808b1b..7ced3c4e3399f8a69ca63841e4cf8e80fde50ab8 100644 (file)
@@ -1,6 +1,8 @@
 What's new:
 -----------
 
+- Add _PC_CASE_INSENSITIVE flag to [f]pathconf(3).
+
 
 What changed:
 -------------
index 85392339c0f487a80d5d3bc07187b0ba8ba9a42a..e6b319e21bf3feba76aac0e6ff1e3ee0205228ed 100644 (file)
@@ -186,6 +186,7 @@ static const struct conf_variable conf_table[] =
   { "POSIX2_RE_DUP_MAX",               CONSTANT,       _POSIX2_RE_DUP_MAX      },
 
   /* Variables from fpathconf() */
+  { "CASE_INSENSITIVE",                        PATHCONF,       _PC_CASE_INSENSITIVE    },
   { "FILESIZEBITS",                    PATHCONF,       _PC_FILESIZEBITS        },
   { "LINK_MAX",                                PATHCONF,       _PC_LINK_MAX            },
   { "MAX_CANON",                       PATHCONF,       _PC_MAX_CANON           },
@@ -195,10 +196,12 @@ static const struct conf_variable conf_table[] =
   { "PIPE_BUF",                                PATHCONF,       _PC_PIPE_BUF            },
   { "POSIX2_SYMLINKS",                 PATHCONF,       _PC_2_SYMLINKS          },
   { "POSIX_ALLOC_SIZE_MIN",            PATHCONF,       _PC_ALLOC_SIZE_MIN      },
+  { "POSIX_PERMISSIONS",               PATHCONF,       _PC_POSIX_PERMISSIONS   },
   { "POSIX_REC_INCR_XFER_SIZE",                PATHCONF,       _PC_REC_INCR_XFER_SIZE  },
   { "POSIX_REC_MAX_XFER_SIZE",         PATHCONF,       _PC_REC_MAX_XFER_SIZE   },
   { "POSIX_REC_MIN_XFER_SIZE",         PATHCONF,       _PC_REC_MIN_XFER_SIZE   },
   { "POSIX_REC_XFER_ALIGN",            PATHCONF,       _PC_REC_XFER_ALIGN      },
+  { "POSIX_SECURITY",                  PATHCONF,       _PC_POSIX_SECURITY      },
   { "SYMLINK_MAX",                     PATHCONF,       _PC_SYMLINK_MAX         },
   { "_POSIX_CHOWN_RESTRICTED",         PATHCONF,       _PC_CHOWN_RESTRICTED    },
   { "_POSIX_NO_TRUNC",                 PATHCONF,       _PC_NO_TRUNC            },
This page took 0.039824 seconds and 5 git commands to generate.