chmod.c 199 B

12345678910
  1. #include <errno.h>
  2. #include <syscall.h>
  3. #include <sys/stat.h>
  4. DEFN_SYSCALL2(chmod, 50, char *, int);
  5. int chmod(const char *path, mode_t mode) {
  6. __sets_errno(syscall_chmod((char *)path, mode));
  7. }