toaruos/libc/unistd/chown.c
2018-07-18 12:37:21 +09:00

12 lines
262 B
C

#include <unistd.h>
#include <errno.h>
#include <syscall.h>
#include <syscall_nums.h>
DEFN_SYSCALL3(chown, SYS_CHOWN, char *, int, int);
int chown(const char * pathname, uid_t owner, gid_t group) {
__sets_errno(syscall_chown((char*)pathname,owner,group));
}