summaryrefslogtreecommitdiff
path: root/lib/libc/stat/fchmod.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stat/fchmod.c')
-rw-r--r--lib/libc/stat/fchmod.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libc/stat/fchmod.c b/lib/libc/stat/fchmod.c
new file mode 100644
index 00000000..22593fd6
--- /dev/null
+++ b/lib/libc/stat/fchmod.c
@@ -0,0 +1,7 @@
+#include <sys/stat.h>
+#include <syscall.h>
+
+int fchmod(int fildes, mode_t mode)
+{
+ return syscall(fchmod, fildes, mode);
+}