hare

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

commit 9ee8fe809269a3c3c0973a75559ef7e952a7cd3b
parent 8be9728f71ac0fbc66339d8975e86c7b1ddc44a9
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sun, 14 Mar 2021 16:19:11 -0400

rt+linux: use mkdirat for mkdir syscall

The non-at version is not available on aarch64

Diffstat:
Mrt/+linux/syscalls.ha | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/rt/+linux/syscalls.ha b/rt/+linux/syscalls.ha @@ -109,7 +109,8 @@ export fn chroot(path: path) (void | errno) = { export fn mkdir(path: path, mode: uint) (void | errno) = { let path = kpath(path)?; - wrap_return(syscall2(SYS_mkdir, path: uintptr: u64, mode: u64))?; + wrap_return(syscall3(SYS_mkdirat, AT_FDCWD: u64, + path: uintptr: u64, mode: u64))?; return; };