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
some coverity fixes.
[minix.git]
/
lib
/
libc
/
sys-minix
/
chmod.c
blob
e19979dd9e5b4f7b047a26731cee5f9312089df2
1
#include <sys/cdefs.h>
2
#include
"namespace.h"
3
#include <lib.h>
4
5
#include <sys/stat.h>
6
7
#ifdef __weak_alias
8
__weak_alias
(
chmod
,
_chmod
)
9
#endif
10
11
int
chmod
(
const char
*
name
,
mode_t mode
)
12
{
13
message m
;
14
15
m
.
m3_i2
=
mode
;
16
_loadname
(
name
, &
m
);
17
return
(
_syscall
(
VFS_PROC_NR
,
CHMOD
, &
m
));
18
}