hare

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

commit fdb93e96bbf15259966be1adc72d464cd6fa44e6
parent b35f4bc1551bf561de2e0e1fcd7367c20fa21216
Author: Lorenz (xha) <me@xha.li>
Date:   Wed, 22 Nov 2023 17:20:02 +0100

rt+freebsd fix getpriority

Signed-off-by: Lorenz (xha) <me@xha.li>

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

diff --git a/rt/+freebsd/syscalls.ha b/rt/+freebsd/syscalls.ha @@ -309,7 +309,7 @@ export fn wifsignaled(status: int) bool = export fn getpid() int = syscall0(SYS_getpid): int; export fn getpriority(which: int, who: id_t) (int | errno) = { - return wrap_return(syscall2(SYS_setpriority, + return wrap_return(syscall2(SYS_getpriority, which: u64, who: u64))?: int; };