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
vm: include no-caching bits in PTF_ALLFLAGS for flags sanity check.
[minix.git]
/
lib
/
libc
/
posix
/
_chmod.c
blob
fe5dd802b733e56bef4227513cf5272a4d9a0660
1
#include <lib.h>
2
#define chmod _chmod
3
#include <sys/stat.h>
4
5
PUBLIC
int
chmod
(
const char
*
name
,
mode_t mode
)
6
{
7
message m
;
8
9
m
.
m3_i2
=
mode
;
10
_loadname
(
name
, &
m
);
11
return
(
_syscall
(
FS
,
CHMOD
, &
m
));
12
}