chdir.c 172 B

12345678910
  1. #include <unistd.h>
  2. #include <syscall.h>
  3. #include <errno.h>
  4. DEFN_SYSCALL1(chdir, 28, char *);
  5. int chdir(const char *path) {
  6. __sets_errno(syscall_chdir((char*)path));
  7. }