>From d93bcfff5a73a15025723c4b8f76cac5f4145c0e Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Mon, 12 Aug 2019 18:21:47 +0000 Subject: [PATCH 3/7] fcntl.h: add existing linux specific AT_ definitions AT_NO_AUTOMOUNT: suppress terminal automount traversal AT_EMPTY_PATH: allow empty relative pathname AT_STATX_SYNC_TYPE: statx sync flag AT_STATX_SYNC_AS_STAT: statx sync flag AT_STATX_FORCE_SYNC: statx sync flag AT_STATX_DONT_SYNC: statx sync flag follow glibc which exposes these under _GNU_SOURCE. --- include/fcntl.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/fcntl.h b/include/fcntl.h index af293405..51ec7efa 100644 --- a/include/fcntl.h +++ b/include/fcntl.h @@ -63,6 +63,15 @@ int posix_fallocate(int, off_t, off_t); #define AT_SYMLINK_FOLLOW 0x400 #define AT_EACCESS 0x200 +#ifdef _GNU_SOURCE +#define AT_NO_AUTOMOUNT 0x800 +#define AT_EMPTY_PATH 0x1000 +#define AT_STATX_SYNC_TYPE 0x6000 +#define AT_STATX_SYNC_AS_STAT 0x0000 +#define AT_STATX_FORCE_SYNC 0x2000 +#define AT_STATX_DONT_SYNC 0x4000 +#endif + #define POSIX_FADV_NORMAL 0 #define POSIX_FADV_RANDOM 1 #define POSIX_FADV_SEQUENTIAL 2 -- 2.21.0