hare

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

commit c806fa4f13ef5c047de8df274bad569e0e8d6580
parent 53a227d5093beb51c27cfd29189b6f72beb40109
Author: Sebastian <sebastian@sebsite.pw>
Date:   Tue, 10 Jan 2023 23:40:01 -0500

rt: use path type for more syscalls

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

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

diff --git a/rt/+linux/syscalls.ha b/rt/+linux/syscalls.ha @@ -106,9 +106,9 @@ export fn unlinkat(dirfd: int, path: path, flags: int) (void | errno) = { export fn linkat( olddirfd: int, - oldpath: str, + oldpath: path, newdirfd: int, - newpath: str, + newpath: path, flags: int, ) (void | errno) = { let oldpath = kpath(oldpath)?; @@ -120,9 +120,9 @@ export fn linkat( }; export fn symlinkat( - target: str, + target: path, newdirfd: int, - linkpath: str, + linkpath: path, ) (void | errno) = { let target = kpath(target)?; static let linkpathbuf: [PATH_MAX + 1]u8 = [0...]; @@ -168,9 +168,9 @@ export fn fchownat(dirfd: int, path: path, uid: uint, gid: uint, flags: int) (vo export fn renameat( olddirfd: int, - oldpath: str, + oldpath: path, newdirfd: int, - newpath: str, + newpath: path, flags: uint, ) (void | errno) = { let oldpath = kpath(oldpath)?;