repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
etc/services - sync with NetBSD-8
[minix.git]
/
minix
/
lib
/
libc
/
sys
/
chroot.c
blob
3ce90705d6e6159c49327c944763bc85cb8e177d
1
#include <sys/cdefs.h>
2
#include
"namespace.h"
3
#include <lib.h>
4
5
#include <string.h>
6
#include <unistd.h>
7
8
int
chroot
(
name
)
9
const char
*
name
;
10
{
11
message m
;
12
13
memset
(&
m
,
0
,
sizeof
(
m
));
14
_loadname
(
name
, &
m
);
15
return
(
_syscall
(
VFS_PROC_NR
,
VFS_CHROOT
, &
m
));
16
}