toaruos/libc/unistd/chown.c

12 lines
262 B
C
Raw Normal View History

2018-07-18 06:37:21 +03:00
#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));
}