Signed-off-by: Lennart Jablonka <humm@ljabl.com>
---
rt/+openbsd/syscalls.ha | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rt/+openbsd/syscalls.ha b/rt/+openbsd/syscalls.ha
index 10cc0e06..a5a52b45 100644
--- a/rt/+openbsd/syscalls.ha
+++ b/rt/+openbsd/syscalls.ha
@@ -938,7 +938,7 @@ export fn readv(fd: int, iov: const *[*]iovec, iovcnt: int) (size | errno) = {
// writev
-@symbol("readv") fn libc_writev(d: int, iov: const *[*]iovec, iovcnt: int) size;
+@symbol("writev") fn libc_writev(d: int, iov: const *[*]iovec, iovcnt: int) size;
export fn writev(fd: int, iov: const *[*]iovec, iovcnt: int) (size | errno) = {
let res: u64 = libc_writev(fd, iov, iovcnt);
--
2.44.0
thanks! this is actually the only mistake i made, just double checked
the whole file. sorry for the trouble, i guess it was no fun debugging
this ;-)
To ssh://git.sr.ht:/~sircmpwn/hare
37fb2f54..8164df02 master -> master
On Thu, Mar 28, 2024 at 12:58:46PM +0000, Lennart Jablonka wrote:
> Signed-off-by: Lennart Jablonka <humm@ljabl.com>
> ---
> rt/+openbsd/syscalls.ha | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/rt/+openbsd/syscalls.ha b/rt/+openbsd/syscalls.ha
> index 10cc0e06..a5a52b45 100644
> --- a/rt/+openbsd/syscalls.ha
> +++ b/rt/+openbsd/syscalls.ha
> @@ -938,7 +938,7 @@ export fn readv(fd: int, iov: const *[*]iovec, iovcnt: int) (size | errno) = {
>
> // writev
>
> -@symbol("readv") fn libc_writev(d: int, iov: const *[*]iovec, iovcnt: int) size;
> +@symbol("writev") fn libc_writev(d: int, iov: const *[*]iovec, iovcnt: int) size;
>
> export fn writev(fd: int, iov: const *[*]iovec, iovcnt: int) (size | errno) = {
> let res: u64 = libc_writev(fd, iov, iovcnt);
> --
> 2.44.0
>