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
__aeabi_ldivmod: fix sign logic
[minix.git]
/
lib
/
libc
/
sys-minix
/
chroot.c
blob
decd519b25c7fee44a0b59ab857d827ccedb963f
1
#include <sys/cdefs.h>
2
#include
"namespace.h"
3
#include <lib.h>
4
5
#include <unistd.h>
6
7
#ifdef __weak_alias
8
__weak_alias
(
chroot
,
_chroot
)
9
#endif
10
11
int
chroot
(
name
)
12
const char
*
name
;
13
{
14
message m
;
15
16
_loadname
(
name
, &
m
);
17
return
(
_syscall
(
VFS_PROC_NR
,
CHROOT
, &
m
));
18
}