commit 196c7cb8377bc343c12d7761b5b71df3ea5bbab5
parent 3cd784e00b3c8829240b95d7049376708bb7d1d6
Author: Drew DeVault <sir@cmpwn.com>
Date: Mon, 8 Mar 2021 17:36:30 -0500
rt: fix docs for getcwd
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rt/+linux/syscalls.ha b/rt/+linux/syscalls.ha
@@ -256,7 +256,7 @@ export fn uname(uts: *utsname) (void | errno) = {
};
// The return value is statically allocated and must be duplicated before
-// calling any other syscall.
+// 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))?;