2018-05-10 16:23:46 +03:00
|
|
|
#include <errno.h>
|
|
|
|
#include <syscall.h>
|
|
|
|
#include <sys/stat.h>
|
|
|
|
|
|
|
|
DEFN_SYSCALL2(chmod, 50, char *, int);
|
|
|
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|