repo.or.cz
/
minix3.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
. pci driver now returns devices, even when they have been pci_reserve()d
[minix3.git]
/
lib
/
posix
/
_fchown.c
blob
49f4e7b7798b7d59bc57334f7e43a7469c764788
1
#include <lib.h>
2
#define fchown _fchown
3
#include <string.h>
4
#include <unistd.h>
5
6
PUBLIC
int
fchown
(
fd
,
owner
,
grp
)
7
int
fd
;
8
_mnx_Uid_t owner
;
9
_mnx_Gid_t grp
;
10
{
11
message m
;
12
13
m
.
m1_i1
=
fd
;
14
m
.
m1_i2
=
owner
;
15
m
.
m1_i3
=
grp
;
16
return
(
_syscall
(
FS
,
FCHOWN
, &
m
));
17
}