From cc741e9174d0f40177b7de4ee191ec8bca2bc15c Mon Sep 17 00:00:00 2001
From: midipix <writeonce@midipix.org>
Date: Sun, 13 Aug 2017 18:58:56 -0400
Subject: fchmodat(2): implement as wrapper since AT_SYMLINK_NOFOLLOW is
 supported.

---
 src/stat/nt32/fchmodat.c | 8 ++++++++
 src/stat/nt64/fchmodat.c | 8 ++++++++
 2 files changed, 16 insertions(+)
 create mode 100644 src/stat/nt32/fchmodat.c
 create mode 100644 src/stat/nt64/fchmodat.c

(limited to 'src')

diff --git a/src/stat/nt32/fchmodat.c b/src/stat/nt32/fchmodat.c
new file mode 100644
index 0000000..788b59a
--- /dev/null
+++ b/src/stat/nt32/fchmodat.c
@@ -0,0 +1,8 @@
+#include <sys/stat.h>
+#include <fcntl.h>
+#include "syscall.h"
+
+int fchmodat(int fd, const char *path, mode_t mode, int flag)
+{
+	return syscall(SYS_fchmodat, fd, path, mode, flag);
+}
diff --git a/src/stat/nt64/fchmodat.c b/src/stat/nt64/fchmodat.c
new file mode 100644
index 0000000..788b59a
--- /dev/null
+++ b/src/stat/nt64/fchmodat.c
@@ -0,0 +1,8 @@
+#include <sys/stat.h>
+#include <fcntl.h>
+#include "syscall.h"
+
+int fchmodat(int fd, const char *path, mode_t mode, int flag)
+{
+	return syscall(SYS_fchmodat, fd, path, mode, flag);
+}
-- 
cgit v1.2.3