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
/
_chown.c
blob
2baf966e6f4b69fe8ec695298e2a5447dd68309b
1
#include <lib.h>
2
#define chown _chown
3
#include <string.h>
4
#include <unistd.h>
5
6
PUBLIC
int
chown
(
name
,
owner
,
grp
)
7
_CONST
char
*
name
;
8
_mnx_Uid_t owner
;
9
_mnx_Gid_t grp
;
10
{
11
message m
;
12
13
m
.
m1_i1
=
strlen
(
name
) +
1
;
14
m
.
m1_i2
=
owner
;
15
m
.
m1_i3
=
grp
;
16
m
.
m1_p1
= (
char
*)
name
;
17
return
(
_syscall
(
FS
,
CHOWN
, &
m
));
18
}