summaryrefslogtreecommitdiff
path: root/src/sys/stat
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys/stat')
-rw-r--r--src/sys/stat/chmod.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/sys/stat/chmod.c b/src/sys/stat/chmod.c
index f061e1a8..6f77e75e 100644
--- a/src/sys/stat/chmod.c
+++ b/src/sys/stat/chmod.c
@@ -4,13 +4,7 @@
int chmod(const char *path, mode_t mode)
{
- SCNO(scno, "chmod", -1);
- int r = __libc.syscall(scno, path, mode);
- if (r < 0) {
- errno = -r;
- return -1;
- }
- return 0;
+ SYSCALL("chmod", int, -1, path, mode, 0, 0, 0, 0);
}
/*
POSIX(1)