Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2023-07-12 14:27:04 +0300
committerCorinna Vinschen <corinna@vinschen.de>2023-07-26 16:19:59 +0300
commit38b8c322d4798cec04c56f79112b84a465a15d27 (patch)
tree710f00563176b57b2ac1fbe5a40d0f7bc38e2e46
parent26775886a3b4d3c858f40f6f42b61f866d9c1c2a (diff)
Define _AT_NULL_PATHNAME_ALLOWED
Cygwin needs an internal flag to allow specifying an empty pathname in utimesat (GLIBC extension). We define it in _default_fcntl.h to make sure we never introduce a value collision accidentally. While at it, define the values as 16 bit hex values. Reviewed-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
-rw-r--r--newlib/libc/include/sys/_default_fcntl.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/newlib/libc/include/sys/_default_fcntl.h b/newlib/libc/include/sys/_default_fcntl.h
index 48914c92e..ce721fa23 100644
--- a/newlib/libc/include/sys/_default_fcntl.h
+++ b/newlib/libc/include/sys/_default_fcntl.h
@@ -162,12 +162,13 @@ extern "C" {
#define AT_FDCWD -2
/* Flag values for faccessat2) et al. */
-#define AT_EACCESS 1
-#define AT_SYMLINK_NOFOLLOW 2
-#define AT_SYMLINK_FOLLOW 4
-#define AT_REMOVEDIR 8
+#define AT_EACCESS 0x0001
+#define AT_SYMLINK_NOFOLLOW 0x0002
+#define AT_SYMLINK_FOLLOW 0x0004
+#define AT_REMOVEDIR 0x0008
#if __GNU_VISIBLE
-#define AT_EMPTY_PATH 16
+#define AT_EMPTY_PATH 0x0010
+#define _AT_NULL_PATHNAME_ALLOWED 0x4000 /* Internal flag used by futimesat */
#endif
#endif