Sign in
cobalt
/
cobalt
/
97b64f26fb12c9eab352139c26f0b01d1cb6d0b9
/
.
/
third_party
/
musl
/
src
/
unistd
/
chown.c
blob: 14b032550d675e6594302a6107c13a599d57443a [
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
}