toaruos/libc/unistd/chmod.c

12 lines
232 B
C
Raw Normal View History

2018-05-10 16:23:46 +03:00
#include <errno.h>
#include <syscall.h>
#include <syscall_nums.h>
2018-05-10 16:23:46 +03:00
#include <sys/stat.h>
DEFN_SYSCALL2(chmod, SYS_CHMOD, char *, int);
2018-05-10 16:23:46 +03:00
int chmod(const char *path, mode_t mode) {
2018-07-18 04:25:01 +03:00
__sets_errno(syscall_chmod((char *)path, mode));
2018-05-10 16:23:46 +03:00
}