2018-05-10 16:23:46 +03:00
|
|
|
#include <errno.h>
|
|
|
|
#include <syscall.h>
|
2018-12-10 04:09:27 +03:00
|
|
|
#include <syscall_nums.h>
|
2018-05-10 16:23:46 +03:00
|
|
|
#include <sys/stat.h>
|
|
|
|
|
2018-12-10 04:09:27 +03:00
|
|
|
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
|
|
|
}
|
|
|
|
|