custom message type for VM_QUERY_EXIT
[minix3.git] / lib / libc / sys-minix / chmod.c
blobaf7e52741fdf0bda7aa7c60dba1525d56e18da32
1 #include <sys/cdefs.h>
2 #include "namespace.h"
3 #include <lib.h>
5 #include <string.h>
6 #include <sys/stat.h>
8 int chmod(const char *name, mode_t mode)
10 message m;
12 memset(&m, 0, sizeof(m));
13 m.m_lc_vfs_path.mode = mode;
14 _loadname(name, &m);
15 return(_syscall(VFS_PROC_NR, VFS_CHMOD, &m));