some coverity fixes.
[minix.git] / lib / libc / sys-minix / fchown.c
blob6949df98375205bc890c08121ff4c2bb83e46dfe
1 #include <sys/cdefs.h>
2 #include "namespace.h"
3 #include <lib.h>
5 #include <string.h>
6 #include <unistd.h>
8 #ifdef __weak_alias
9 __weak_alias(fchown, _fchown)
10 #endif
12 int fchown(int fd, uid_t owner, gid_t grp)
14 message m;
16 m.m1_i1 = fd;
17 m.m1_i2 = owner;
18 m.m1_i3 = grp;
19 return(_syscall(VFS_PROC_NR, FCHOWN, &m));