hare

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

commit e2945c26c09fde2545bc91e9c35a908fa18a03ff
parent f07083a1e5f6ad80b5c50ab0063761b3f1491c55
Author: Mykyta Holubakha <hilobakho@gmail.com>
Date:   Sat, 13 Mar 2021 18:32:58 +0200

rt: add sigprocmask syscall

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

diff --git a/rt/+linux/syscalls.ha b/rt/+linux/syscalls.ha @@ -334,3 +334,13 @@ export fn signalfd(fd: int, mask: *const sigset, flags: int) (int | errno) = { fd: u64, mask: uintptr: u64, size(sigset): u64, flags: u64))?: int; }; + +export fn sigprocmask( + how: int, + set: *const sigset, + old: nullable *sigset +) (int | errno) = { + return wrap_return(syscall4(SYS_rt_sigprocmask, + how: u64, set: uintptr: u64, old: uintptr: u64, + size(sigset): u64))?: int; +};