hare

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

commit 16b238a08a3db4a9f671425c864ccbf5c45c613d
parent e663fb3eb78feb1ad8eadb3c0ba06227a3f742dd
Author: Drew DeVault <sir@cmpwn.com>
Date:   Wed,  1 Dec 2021 15:38:21 +0000

rt: use eventfd2 rather than eventfd

SYS_eventfd is not available on +aarch64 or on +riscv64.

Diffstat:
Mrt/+linux/syscalls.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rt/+linux/syscalls.ha b/rt/+linux/syscalls.ha @@ -448,7 +448,7 @@ export fn timerfd_create(clock_id: int, flags: int) (int | errno) = { }; export fn eventfd(initval: uint, flags: int) (int | errno) = { - return wrap_return(syscall2(SYS_eventfd, + return wrap_return(syscall2(SYS_eventfd2, initval: u64, flags: u64))?: int; };