source: trunk/minix/lib/posix/_chdir.c@ 11

Last change on this file since 11 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 301 bytes
Line 
1#include <lib.h>
2#define chdir _chdir
3#define fchdir _fchdir
4#include <unistd.h>
5
6PUBLIC int chdir(name)
7_CONST char *name;
8{
9 message m;
10
11 _loadname(name, &m);
12 return(_syscall(FS, CHDIR, &m));
13}
14
15PUBLIC int fchdir(fd)
16int 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.