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
libutil: add O_NOCTTY back to old pty open code
[minix.git]
/
lib
/
libc
/
sys-minix
/
chdir.c
blob
e514326abd9fc7452c8d134d448b5dec9fd746cf
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
(
chdir
,
_chdir
)
9
__weak_alias
(
fchdir
,
_fchdir
)
10
#endif
11
12
int
chdir
(
name
)
13
const char
*
name
;
14
{
15
message m
;
16
17
_loadname
(
name
, &
m
);
18
return
(
_syscall
(
VFS_PROC_NR
,
CHDIR
, &
m
));
19
}
20
21
int
fchdir
(
fd
)
22
int
fd
;
23
{
24
message m
;
25
26
m
.
m1_i1
=
fd
;
27
return
(
_syscall
(
VFS_PROC_NR
,
FCHDIR
, &
m
));
28
}