hare

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

commit bff44508c89fab8bcef56e7ecc1db6b7452b58a4
parent 79c5a756c6242c6eec864221af966a485c5ad903
Author: Sebastian <sebastian@sebsite.pw>
Date:   Mon, 10 Oct 2022 17:26:41 -0400

rt+linux: add alarm

Signed-off-by: Sebastian <sebastian@sebsite.pw>

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 @@ -863,3 +863,7 @@ export fn tee(fd_in: int, fd_out: int, ln: size, flags: uint) (size | errno) = { fd_in: u64, fd_out: u64, ln: u64, flags: u64))?: size; }; + +export fn alarm(seconds: uint) uint = { + return syscall1(SYS_alarm, seconds: u64): uint; +};