Remove building with NOCRYPTO option
[minix.git] / minix / lib / libc / sys / chdir.c
blob01d8949a54f83adfa500c2ee2b4784422679082f
1 #include <sys/cdefs.h>
2 #include "namespace.h"
3 #include <lib.h>
5 #include <string.h>
6 #include <unistd.h>
8 int chdir(name)
9 const char *name;
11 message m;
13 memset(&m, 0, sizeof(m));
14 _loadname(name, &m);
15 return(_syscall(VFS_PROC_NR, VFS_CHDIR, &m));
18 int fchdir(fd)
19 int fd;
21 message m;
23 memset(&m, 0, sizeof(m));
24 m.m_lc_vfs_fchdir.fd = fd;
25 return(_syscall(VFS_PROC_NR, VFS_FCHDIR, &m));