repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
etc/services - sync with NetBSD-8
[minix.git]
/
minix
/
lib
/
libc
/
sys
/
chmod.c
blob
af7e52741fdf0bda7aa7c60dba1525d56e18da32
1
#include <sys/cdefs.h>
2
#include
"namespace.h"
3
#include <lib.h>
4
5
#include <string.h>
6
#include <sys/stat.h>
7
8
int
chmod
(
const char
*
name
,
mode_t mode
)
9
{
10
message m
;
11
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
));
16
}