hare

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

commit 29b2431fc5d82dc075dfd54d6a252969b4f02636
parent b89a447af7a075857bfc4e6011d7a35bb3a7e3ad
Author: George Rose <george@1w1g.com>
Date:   Sun,  4 Sep 2022 18:26:33 +0430

Fix rt::accept4

Signed-off-by: George Rose <george@1w1g.com>

Diffstat:
Mrt/+freebsd/syscalls.ha | 2+-
Mrt/+linux/syscalls.ha | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/rt/+freebsd/syscalls.ha b/rt/+freebsd/syscalls.ha @@ -432,7 +432,7 @@ export fn accept(sockfd: int, addr: nullable *sockaddr, addrlen: nullable *u32) }; export fn accept4(sockfd: int, addr: nullable *sockaddr, addrlen: nullable *u32, flags: int) (int | errno) = { - return wrap_return(syscall4(SYS_accept, + return wrap_return(syscall4(SYS_accept4, sockfd: u64, addr: uintptr: u64, addrlen: uintptr: u64, flags: u64))?: int; }; diff --git a/rt/+linux/syscalls.ha b/rt/+linux/syscalls.ha @@ -584,7 +584,7 @@ export fn accept(sockfd: int, addr: nullable *sockaddr, addrlen: nullable *u32) }; export fn accept4(sockfd: int, addr: nullable *sockaddr, addrlen: nullable *u32, flags: int) (int | errno) = { - return wrap_return(syscall4(SYS_accept, + return wrap_return(syscall4(SYS_accept4, sockfd: u64, addr: uintptr: u64, addrlen: uintptr: u64, flags: u64))?: int; };