libc, libutil: remove compat hacks
[minix.git] / lib / libc / sys-minix / chown.c
blobcbaf2b27a22965fc32bc8f72c24e5af428935fbb
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(chown, _chown)
10 #endif
12 int chown(const char *name, uid_t owner, gid_t grp)
14 message m;
16 m.m1_i1 = strlen(name) + 1;
17 m.m1_i2 = owner;
18 m.m1_i3 = grp;
19 m.m1_p1 = (char *) __UNCONST(name);
20 return(_syscall(VFS_PROC_NR, CHOWN, &m));