about summary refs log tree commit diff
path: root/src/stat/fchmod.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stat/fchmod.c')
-rw-r--r--src/stat/fchmod.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/stat/fchmod.c b/src/stat/fchmod.c
new file mode 100644
index 00000000..91897383
--- /dev/null
+++ b/src/stat/fchmod.c
@@ -0,0 +1,7 @@
+#include <sys/stat.h>
+#include "syscall.h"
+
+int fchmod(int fd, mode_t mode)
+{
+	return syscall2(__NR_fchmod, fd, mode);
+}