toaruos/libc/unistd/chmod.c
2018-07-18 10:25:01 +09:00

11 lines
199 B
C

#include <errno.h>
#include <syscall.h>
#include <sys/stat.h>
DEFN_SYSCALL2(chmod, 50, char *, int);
int chmod(const char *path, mode_t mode) {
__sets_errno(syscall_chmod((char *)path, mode));
}