hare

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

commit 1869493083551f615c9490910d79aff0e07277bc
parent 96380fddf943e2ce2c04f412b986de72d7ce12f8
Author: Sebastian <sebastian@sebsite.pw>
Date:   Tue, 10 Jan 2023 23:39:34 -0500

rt: fix mknodat syscall

Previously, dirfd wasn't passed into the syscall, so the function would
always return EFAULT.

Signed-off-by: Sebastian <sebastian@sebsite.pw>

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

diff --git a/rt/+linux/syscalls.ha b/rt/+linux/syscalls.ha @@ -138,8 +138,8 @@ export fn mknodat( dev: dev_t, ) (void | errno) = { let path = kpath(path)?; - wrap_return(syscall3(SYS_mknodat, - path: uintptr: u64, mode: u64, dev: u64))?; + wrap_return(syscall4(SYS_mknodat, + dirfd: u64, path: uintptr: u64, mode: u64, dev: u64))?; }; export fn chmod(path: path, mode: uint) (void | errno) = {