blob: f8f29106183ba018f7cc4022d4adee363858eb15 [file] [log] [blame]
#include <unistd.h>
#include <fcntl.h>
#include "syscall.h"
int chown(const char* path, uid_t uid, gid_t gid) {
#ifdef SYS_chown
return syscall(SYS_chown, path, uid, gid);
#else
return syscall(SYS_fchownat, AT_FDCWD, path, uid, gid, 0);
#endif
}