summaryrefslogtreecommitdiff
path: root/src/sys/stat/umask.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-08-13 11:13:14 -0400
committerJakob Kaivo <jkk@ung.org>2020-08-13 11:13:14 -0400
commitea6629608487ef59074636ca32bd80bcd40368ff (patch)
treea73b7c4dc5eb190191aade3754e2cc6ca722a60a /src/sys/stat/umask.c
parentf7b930d5218b09c7fcd61436dc815ca4987f9d7b (diff)
implement as syscall
Diffstat (limited to 'src/sys/stat/umask.c')
-rw-r--r--src/sys/stat/umask.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sys/stat/umask.c b/src/sys/stat/umask.c
index ca038bad..601f67f2 100644
--- a/src/sys/stat/umask.c
+++ b/src/sys/stat/umask.c
@@ -1,9 +1,10 @@
#include "sys/types.h"
#include <sys/stat.h>
+#include "../../_syscall.h"
mode_t umask(mode_t cmask)
{
- return cmask;
+ SYSCALL(umask, mode_t, -1, cmask, 0, 0, 0, 0, 0);
}
/*