etc/services - sync with NetBSD-8
[minix.git] / minix / lib / libc / sys / fchown.c
blob19db6dd3a2d9eeb261747eee9d9cb39914b2d685
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(__posix_fchown, fchown)
10 #endif
12 int fchown(int fd, uid_t owner, gid_t grp)
14 message m;
16 memset(&m, 0, sizeof(m));
17 m.m_lc_vfs_chown.fd = fd;
18 m.m_lc_vfs_chown.owner = owner;
19 m.m_lc_vfs_chown.group = grp;
20 return(_syscall(VFS_PROC_NR, VFS_FCHOWN, &m));