From dd4d7e713290d9cecbebc6933e41d027bac63c8f Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Fri, 22 Nov 2019 11:28:31 +0100 Subject: Add fchownat/fchmodat mockups to libcompat for Windows Not pretty, but definitely prettier than #ifdef hell. Signed-off-by: David Oberhollenzer --- include/compat.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') diff --git a/include/compat.h b/include/compat.h index fae9d92..53c2e93 100644 --- a/include/compat.h +++ b/include/compat.h @@ -98,6 +98,13 @@ struct stat { (((x)&0x00000fffULL) << 8) | \ (((y)&0xffffff00ULL) << 12) | \ (((y)&0x000000ffULL)) ) + +#define AT_FDCWD (0xDEADBEEF) +#define AT_SYMLINK_NOFOLLOW (0x01) + +int fchownat(int dirfd, const char *path, int uid, int gid, int flags); + +int fchmodat(int dirfd, const char *path, int mode, int flags); #else #include #include -- cgit v1.2.3