hare

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

commit 9582c908639c2724dfe0837fe2491532a67efcbd
parent ab06de6477d8306f0a0b87fea688100bddf3b226
Author: Lorenz (xha) <me@xha.li>
Date:   Sat,  2 Dec 2023 12:11:47 +0000

OpenBSD: rt:: fix readlinkat, renameat

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

Diffstat:
Mrt/+openbsd/syscalls.ha | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rt/+openbsd/syscalls.ha b/rt/+openbsd/syscalls.ha @@ -1201,7 +1201,7 @@ export fn readlinkat( path: path, buf: []u8, ) (size | errno) = { - let res = libc_readlinkat(dirfd, cpath(path)?, &buf: *u8, len(buf)); + let res = libc_readlinkat(dirfd, cpath(path)?, buf: *[*]u8: *u8, len(buf)); if (res == -1) { return *__errno(): errno; }; @@ -1227,7 +1227,7 @@ export fn renameat( let newpath = copy_cpath(newpath, newpathbuf)?; let res = libc_renameat(olddirfd, cpath(oldpath)?, newdirfd, - &newpathbuf: *u8); + newpath); if (res == -1) { return *__errno(): errno; };