2005-04-21 16:53:53 +02:00
|
|
|
#include <lib.h>
|
|
|
|
#define chdir _chdir
|
2006-01-20 13:44:16 +01:00
|
|
|
#define fchdir _fchdir
|
2005-04-21 16:53:53 +02:00
|
|
|
#include <unistd.h>
|
|
|
|
|
|
|
|
PUBLIC int chdir(name)
|
|
|
|
_CONST char *name;
|
|
|
|
{
|
|
|
|
message m;
|
|
|
|
|
|
|
|
_loadname(name, &m);
|
2010-06-08 15:58:01 +02:00
|
|
|
return(_syscall(VFS_PROC_NR, CHDIR, &m));
|
2005-04-21 16:53:53 +02:00
|
|
|
}
|
2005-06-29 21:28:26 +02:00
|
|
|
|
|
|
|
PUBLIC int fchdir(fd)
|
|
|
|
int fd;
|
|
|
|
{
|
|
|
|
message m;
|
|
|
|
|
|
|
|
m.m1_i1 = fd;
|
2010-06-08 15:58:01 +02:00
|
|
|
return(_syscall(VFS_PROC_NR, FCHDIR, &m));
|
2005-06-29 21:28:26 +02:00
|
|
|
}
|