11 lines
199 B
C
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));
|
|
}
|
|
|