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
__aeabi_ldivmod: fix sign logic
[minix.git]
/
lib
/
libc
/
sys-minix
/
fchmod.c
blob
8a62a8bbfe650a575266e29d8a5f9ab004b06c6a
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
(
fchmod
,
_fchmod
)
9
#endif
10
11
int
fchmod
(
int
fd
,
mode_t mode
)
12
{
13
message m
;
14
15
m
.
m1_i1
=
fd
;
16
m
.
m1_i2
=
mode
;
17
return
(
_syscall
(
VFS_PROC_NR
,
FCHMOD
, &
m
));
18
}