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
retire BIOS_SEG and umap_bios
[minix3.git]
/
lib
/
libc
/
sys-minix
/
chown.c
blob
cbaf2b27a22965fc32bc8f72c24e5af428935fbb
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
(
chown
,
_chown
)
10
#endif
11
12
int
chown
(
const char
*
name
,
uid_t owner
,
gid_t grp
)
13
{
14
message m
;
15
16
m
.
m1_i1
=
strlen
(
name
) +
1
;
17
m
.
m1_i2
=
owner
;
18
m
.
m1_i3
=
grp
;
19
m
.
m1_p1
= (
char
*)
__UNCONST
(
name
);
20
return
(
_syscall
(
VFS_PROC_NR
,
CHOWN
, &
m
));
21
}