From 835101f96e7c9fca00940e967c471c33e4e4dae9 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Wed, 15 Nov 2023 21:13:36 +0100 Subject: VFS/LibC: Add getcwd() --- userland/libc/unistd/getcwd.c | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 userland/libc/unistd/getcwd.c (limited to 'userland/libc/unistd/getcwd.c') diff --git a/userland/libc/unistd/getcwd.c b/userland/libc/unistd/getcwd.c new file mode 100644 index 0000000..6050c95 --- /dev/null +++ b/userland/libc/unistd/getcwd.c @@ -0,0 +1,6 @@ +#include +#include + +char *getcwd(char *buf, size_t size) { + return syscall(SYS_GETCWD, buf, size, NULL, NULL, NULL); +} -- cgit v1.2.3