etc/services - sync with NetBSD-8
[minix.git] / minix / lib / libc / sys / fchmod.c
blob7e0134daf7286ce633cfa762a8f11e0c2ea00370
1 #include <sys/cdefs.h>
2 #include "namespace.h"
3 #include <lib.h>
5 #include <string.h>
6 #include <sys/stat.h>
8 int fchmod(int fd, mode_t mode)
10 message m;
12 memset(&m, 0, sizeof(m));
13 m.m_lc_vfs_fchmod.fd = fd;
14 m.m_lc_vfs_fchmod.mode = mode;
15 return(_syscall(VFS_PROC_NR, VFS_FCHMOD, &m));