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
Remove building with NOCRYPTO option
[minix.git]
/
minix
/
lib
/
libc
/
sys
/
chdir.c
blob
01d8949a54f83adfa500c2ee2b4784422679082f
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
chdir
(
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_CHDIR
, &
m
));
16
}
17
18
int
fchdir
(
fd
)
19
int
fd
;
20
{
21
message m
;
22
23
memset
(&
m
,
0
,
sizeof
(
m
));
24
m
.
m_lc_vfs_fchdir
.
fd
=
fd
;
25
return
(
_syscall
(
VFS_PROC_NR
,
VFS_FCHDIR
, &
m
));
26
}