source:
trunk/minix/lib/posix/_chdir.c@
12
Last change on this file since 12 was 9, checked in by , 14 years ago | |
---|---|
File size: 301 bytes |
Rev | Line | |
---|---|---|
[9] | 1 | #include <lib.h> |
2 | #define chdir _chdir | |
3 | #define fchdir _fchdir | |
4 | #include <unistd.h> | |
5 | ||
6 | PUBLIC int chdir(name) | |
7 | _CONST char *name; | |
8 | { | |
9 | message m; | |
10 | ||
11 | _loadname(name, &m); | |
12 | return(_syscall(FS, CHDIR, &m)); | |
13 | } | |
14 | ||
15 | PUBLIC int fchdir(fd) | |
16 | int fd; | |
17 | { | |
18 | message m; | |
19 | ||
20 | m.m1_i1 = fd; | |
21 | return(_syscall(FS, FCHDIR, &m)); | |
22 | } |
Note:
See TracBrowser
for help on using the repository browser.