summaryrefslogtreecommitdiff
path: root/sys/src/ape/lib/ap
diff options
context:
space:
mode:
authorspew <devnull@localhost>2018-06-20 22:19:37 -0400
committerspew <devnull@localhost>2018-06-20 22:19:37 -0400
commit3b376b43af24f8013d330eb2eb9c3b78849bb7c3 (patch)
tree27c03c0459a26d942d97f11142569d7ea4f4a88d /sys/src/ape/lib/ap
parent8dd003eb04aacf13c4a3a3123269a980c03504f9 (diff)
ape: provide bogus chroot implementation
Diffstat (limited to 'sys/src/ape/lib/ap')
-rw-r--r--sys/src/ape/lib/ap/plan9/chroot.c9
-rw-r--r--sys/src/ape/lib/ap/plan9/mkfile1
2 files changed, 10 insertions, 0 deletions
diff --git a/sys/src/ape/lib/ap/plan9/chroot.c b/sys/src/ape/lib/ap/plan9/chroot.c
new file mode 100644
index 000000000..ed270ec81
--- /dev/null
+++ b/sys/src/ape/lib/ap/plan9/chroot.c
@@ -0,0 +1,9 @@
+#include <unistd.h>
+#include <errno.h>
+
+int
+chroot(const char*)
+{
+ errno = EIO;
+ return -1;
+}
diff --git a/sys/src/ape/lib/ap/plan9/mkfile b/sys/src/ape/lib/ap/plan9/mkfile
index 1da4318a4..8f9099e22 100644
--- a/sys/src/ape/lib/ap/plan9/mkfile
+++ b/sys/src/ape/lib/ap/plan9/mkfile
@@ -22,6 +22,7 @@ OFILES=\
brk.$O\
cfgetospeed.$O\
chdir.$O\
+ chroot.$O\
chmod.$O\
chown.$O\
close.$O\