1*433d6423SLionel Sambuc #include <sys/cdefs.h> 2*433d6423SLionel Sambuc #include "namespace.h" 3*433d6423SLionel Sambuc #include <lib.h> 4*433d6423SLionel Sambuc 5*433d6423SLionel Sambuc #include <string.h> 6*433d6423SLionel Sambuc #include <unistd.h> 7*433d6423SLionel Sambuc chdir(name)8*433d6423SLionel Sambucint chdir(name) 9*433d6423SLionel Sambuc const char *name; 10*433d6423SLionel Sambuc { 11*433d6423SLionel Sambuc message m; 12*433d6423SLionel Sambuc 13*433d6423SLionel Sambuc memset(&m, 0, sizeof(m)); 14*433d6423SLionel Sambuc _loadname(name, &m); 15*433d6423SLionel Sambuc return(_syscall(VFS_PROC_NR, VFS_CHDIR, &m)); 16*433d6423SLionel Sambuc } 17*433d6423SLionel Sambuc fchdir(fd)18*433d6423SLionel Sambucint fchdir(fd) 19*433d6423SLionel Sambuc int fd; 20*433d6423SLionel Sambuc { 21*433d6423SLionel Sambuc message m; 22*433d6423SLionel Sambuc 23*433d6423SLionel Sambuc memset(&m, 0, sizeof(m)); 24*433d6423SLionel Sambuc m.m_lc_vfs_fchdir.fd = fd; 25*433d6423SLionel Sambuc return(_syscall(VFS_PROC_NR, VFS_FCHDIR, &m)); 26*433d6423SLionel Sambuc } 27