diff options
Diffstat (limited to 'userland/libc/unistd/getcwd.c')
-rw-r--r-- | userland/libc/unistd/getcwd.c | 6 |
1 files changed, 6 insertions, 0 deletions
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 <syscall.h> +#include <unistd.h> + +char *getcwd(char *buf, size_t size) { + return syscall(SYS_GETCWD, buf, size, NULL, NULL, NULL); +} |