aboutsummaryrefslogtreecommitdiff
path: root/chdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'chdir.c')
-rw-r--r--chdir.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/chdir.c b/chdir.c
new file mode 100644
index 00000000..29f0afc3
--- /dev/null
+++ b/chdir.c
@@ -0,0 +1,10 @@
+#include "defs.h"
+
+int
+sys_chdir(struct tcb *tcp)
+{
+ if (entering(tcp)) {
+ printpath(tcp, tcp->u_arg[0]);
+ }
+ return 0;
+}