hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 412ec3a523f27d46fe8c37473d3f73c13fadaad9
parent 1f08b4bc493a65fcc5e68aef42d141e6c925fb3e
Author: Mykyta Holubakha <hilobakho@gmail.com>
Date:   Wed, 31 Mar 2021 03:05:30 +0300

rt: add umask syscall

Diffstat:
Mrt/+linux/syscalls.ha | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/rt/+linux/syscalls.ha b/rt/+linux/syscalls.ha @@ -545,3 +545,7 @@ export fn recvmsg(fd: int, msg: *const msghdr, flags: int) (int | errno) = { return wrap_return(syscall3(SYS_recvmsg, fd: u64, msg: uintptr: u64, flags: u64))?: int; }; + +export fn umask(mode: mode_t) (mode_t | errno) = { + return wrap_return(syscall1(SYS_umask, mode: u64))?: mode_t; +};