~sircmpwn/hare-dev

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
2 2

[PATCH hare] Fix rt::accept4

George Rose <george@1w1g.com>
Details
Message ID
<20220904135632.7974-1-george@1w1g.com>
DKIM signature
pass
Download raw message
Patch: +2 -2
Signed-off-by: George Rose <george@1w1g.com>
---
 rt/+freebsd/syscalls.ha | 2 +-
 rt/+linux/syscalls.ha   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/rt/+freebsd/syscalls.ha b/rt/+freebsd/syscalls.ha
index 3b7971a8..bcbd65a3 100644
--- 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
index fe87f478..fe36a85f 100644
--- 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;
};

-- 
2.37.1

[hare/patches] build success

builds.sr.ht <builds@sr.ht>
Details
Message ID
<CMNO5ILTXAG9.1NGV5RUKOH4MZ@cirno>
In-Reply-To
<20220904135632.7974-1-george@1w1g.com> (view parent)
DKIM signature
missing
Download raw message
hare/patches: SUCCESS in 1m31s

[Fix rt::accept4][0] from [George Rose][1]

[0]: https://lists.sr.ht/~sircmpwn/hare-dev/patches/35117
[1]: george@1w1g.com

✓ #838256 SUCCESS hare/patches/freebsd.yml https://builds.sr.ht/~sircmpwn/job/838256
✓ #838255 SUCCESS hare/patches/alpine.yml  https://builds.sr.ht/~sircmpwn/job/838255
Details
Message ID
<CN2TGL2PWYQP.2YD0AFBGG99IN@taiga>
In-Reply-To
<20220904135632.7974-1-george@1w1g.com> (view parent)
DKIM signature
pass
Download raw message
Thanks!

To git@git.sr.ht:~sircmpwn/hare
   27fd53f7..10cf8c9d  master -> master
Reply to thread Export thread (mbox)