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
secondary cache feature in vm.
[minix.git]
/
lib
/
libc
/
posix
/
_fchown.c
blob
6d8603d41dacfb7ad3fad46713d6fcedff269660
1
#include <lib.h>
2
#define fchown _fchown
3
#include <string.h>
4
#include <unistd.h>
5
6
PUBLIC
int
fchown
(
int
fd
,
uid_t owner
,
gid_t grp
)
7
{
8
message m
;
9
10
m
.
m1_i1
=
fd
;
11
m
.
m1_i2
=
owner
;
12
m
.
m1_i3
=
grp
;
13
return
(
_syscall
(
FS
,
FCHOWN
, &
m
));
14
}