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
isblank() implementation.
[minix.git]
/
lib
/
libc
/
posix
/
_chmod.c
blob
0f731b68fafc553fd4ce7b6d81187937ee51e82f
1
#include <lib.h>
2
#define chmod _chmod
3
#include <sys/stat.h>
4
5
PUBLIC
int
chmod
(
name
,
mode
)
6
_CONST
char
*
name
;
7
_mnx_Mode_t mode
;
8
{
9
message m
;
10
11
m
.
m3_i2
=
mode
;
12
_loadname
(
name
, &
m
);
13
return
(
_syscall
(
FS
,
CHMOD
, &
m
));
14
}