summaryrefslogtreecommitdiff
path: root/lib/libc/unistd/chown.c
blob: 50ce565ef44d0a339b66cc5b4253501b30950bfb (plain)
1
2
3
4
5
6
7
8
9
#include "asm/unistd_64.h" // for __NR_chown

#include <syscall.h> // for __syscall_3, syscall
#include <unistd.h>  // for chown, gid_t, uid_t

int chown(const char *path, uid_t owner, gid_t group)
{
	return syscall(chown, path, owner, group);
}