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
/
fchown.c
blob
6949df98375205bc890c08121ff4c2bb83e46dfe
1
#include <sys/cdefs.h>
2
#include
"namespace.h"
3
#include <lib.h>
4
5
#include <string.h>
6
#include <unistd.h>
7
8
#ifdef __weak_alias
9
__weak_alias
(
fchown
,
_fchown
)
10
#endif
11
12
int
fchown
(
int
fd
,
uid_t owner
,
gid_t grp
)
13
{
14
message m
;
15
16
m
.
m1_i1
=
fd
;
17
m
.
m1_i2
=
owner
;
18
m
.
m1_i3
=
grp
;
19
return
(
_syscall
(
VFS_PROC_NR
,
FCHOWN
, &
m
));
20
}