commit db101ad0e84bd70e8d60c4196062410c4e7c9f3e parent fbfd565d48f5a0d990702d8812c43a9310566533 Author: Drew DeVault <sir@cmpwn.com> Date: Tue, 9 Mar 2021 20:29:35 -0500 rt: add second parameter for getcwd Diffstat:
M | rt/+linux/syscalls.ha | | | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/rt/+linux/syscalls.ha b/rt/+linux/syscalls.ha @@ -273,6 +273,8 @@ export fn uname(uts: *utsname) (void | errno) = { // calling getcwd again. export fn getcwd() (*const char | errno) = { static let pathbuf: [PATH_MAX + 1]u8 = [0...]; - wrap_return(syscall1(SYS_getcwd, &pathbuf: *[*]u8: uintptr: u64))?; + wrap_return(syscall2(SYS_getcwd, + &pathbuf: *[*]u8: uintptr: u64, + PATH_MAX + 1))?; return &pathbuf: *const char; };