summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2017-08-13 18:58:56 -0400
committermidipix <writeonce@midipix.org>2017-08-13 18:58:56 -0400
commitcc741e9174d0f40177b7de4ee191ec8bca2bc15c (patch)
treec6af6150446ef17d522cd8710638296878115ea1 /src
parent21510613e08a41ac3ca3ef499d0020539fc7a8d2 (diff)
downloadmmglue-cc741e9174d0f40177b7de4ee191ec8bca2bc15c.tar.bz2
mmglue-cc741e9174d0f40177b7de4ee191ec8bca2bc15c.tar.xz
fchmodat(2): implement as wrapper since AT_SYMLINK_NOFOLLOW is supported.
Diffstat (limited to 'src')
-rw-r--r--src/stat/nt32/fchmodat.c8
-rw-r--r--src/stat/nt64/fchmodat.c8
2 files changed, 16 insertions, 0 deletions
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);
+}