summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-02-23 16:25:33 -0500
committerJakob Kaivo <jkk@ung.org>2019-02-23 16:25:33 -0500
commit0377bef5c34c3211082b6271a84a85266e23c133 (patch)
treeffba2296d5e1a9cb2f65bd1ba7b103a6ec52ec2e
parent0b300d1e2669b02dc8b409908c48965fc2a2b6e5 (diff)
update to new SYSCALL macro
-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)