From 7e19d0f0c26abb2eb32b7067640c0897d7936e4a Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Wed, 15 Feb 2023 17:12:44 +0100 Subject: add add prompt script --- lib/sys/getcwd.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lib/sys/getcwd.h (limited to 'lib/sys') diff --git a/lib/sys/getcwd.h b/lib/sys/getcwd.h new file mode 100644 index 0000000..ee14c2f --- /dev/null +++ b/lib/sys/getcwd.h @@ -0,0 +1,11 @@ +#ifndef GETCWD_H +#define GETCWD_H + +#include "syscalls.h" + +static int getcwd(char *buf, unsigned long size) +{ + return syscall(GETCWD, buf, size); +} + +#endif -- cgit v1.2.3-70-g09d2