ape: provide bogus chroot implementation
This commit is contained in:
parent
8dd003eb04
commit
3b376b43af
3 changed files with 11 additions and 0 deletions
|
@ -121,6 +121,7 @@ extern pid_t setsid(void);
|
|||
|
||||
/* 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 *);
|
||||
|
|
9
sys/src/ape/lib/ap/plan9/chroot.c
Normal file
9
sys/src/ape/lib/ap/plan9/chroot.c
Normal file
|
@ -0,0 +1,9 @@
|
|||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
|
||||
int
|
||||
chroot(const char*)
|
||||
{
|
||||
errno = EIO;
|
||||
return -1;
|
||||
}
|
|
@ -22,6 +22,7 @@ OFILES=\
|
|||
brk.$O\
|
||||
cfgetospeed.$O\
|
||||
chdir.$O\
|
||||
chroot.$O\
|
||||
chmod.$O\
|
||||
chown.$O\
|
||||
close.$O\
|
||||
|
|
Loading…
Reference in a new issue