From 0377bef5c34c3211082b6271a84a85266e23c133 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sat, 23 Feb 2019 16:25:33 -0500 Subject: update to new SYSCALL macro --- src/sys/stat/chmod.c | 8 +------- 1 file changed, 1 insertion(+), 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) -- cgit v1.2.1