ref: 3b376b43af24f8013d330eb2eb9c3b78849bb7c3
parent: 8dd003eb04aacf13c4a3a3123269a980c03504f9
author: spew <devnull@localhost>
date: Wed Jun 20 18:19:37 EDT 2018
ape: provide bogus chroot implementation
--- a/sys/include/ape/unistd.h
+++ b/sys/include/ape/unistd.h
@@ -121,6 +121,7 @@
/* files and directories */
extern int chdir(const char *);
+extern int chroot(const char *);
extern int link(const char *, const char *);
extern char *getcwd(char *, size_t);
extern int unlink(const char *);
--- /dev/null
+++ b/sys/src/ape/lib/ap/plan9/chroot.c
@@ -1,0 +1,9 @@
+#include <unistd.h>
+#include <errno.h>
+
+int
+chroot(const char*)
+{
+ errno = EIO;
+ return -1;
+}
--- a/sys/src/ape/lib/ap/plan9/mkfile
+++ b/sys/src/ape/lib/ap/plan9/mkfile
@@ -22,6 +22,7 @@
brk.$O\
cfgetospeed.$O\
chdir.$O\
+ chroot.$O\
chmod.$O\
chown.$O\
close.$O\