chown.c 262 B

1234567891011
  1. #include <unistd.h>
  2. #include <errno.h>
  3. #include <syscall.h>
  4. #include <syscall_nums.h>
  5. DEFN_SYSCALL3(chown, SYS_CHOWN, char *, int, int);
  6. int chown(const char * pathname, uid_t owner, gid_t group) {
  7. __sets_errno(syscall_chown((char*)pathname,owner,group));
  8. }