diff options
| author | Jakob Kaivo <jkk@ung.org> | 2019-02-23 16:25:33 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2019-02-23 16:25:33 -0500 |
| commit | 0377bef5c34c3211082b6271a84a85266e23c133 (patch) | |
| tree | ffba2296d5e1a9cb2f65bd1ba7b103a6ec52ec2e | |
| parent | 0b300d1e2669b02dc8b409908c48965fc2a2b6e5 (diff) | |
update to new SYSCALL macro
| -rw-r--r-- | src/sys/stat/chmod.c | 8 |
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) |
