aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/sys/chdir.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/sys/chdir.h b/lib/sys/chdir.h
new file mode 100644
index 0000000..497698f
--- /dev/null
+++ b/lib/sys/chdir.h
@@ -0,0 +1,11 @@
+#ifndef CHDIR_H
+#define CHDIR_H
+
+#include "syscalls.h"
+
+static int chdir(const char *filename)
+{
+ return syscall(CHDIR, filename);
+}
+
+#endif