aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/sys/getcwd.h11
1 files changed, 11 insertions, 0 deletions
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