toaruos/libc/unistd/chdir.c

12 lines
205 B
C
Raw Normal View History

#include <unistd.h>
#include <syscall.h>
#include <syscall_nums.h>
2018-07-18 04:45:42 +03:00
#include <errno.h>
DEFN_SYSCALL1(chdir, SYS_CHDIR, char *);
int chdir(const char *path) {
2018-07-18 04:45:42 +03:00
__sets_errno(syscall_chdir((char*)path));
}