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
libc, libutil: remove compat hacks
[minix.git]
/
lib
/
libc
/
sys-minix
/
setgid.c
blob
90fc6e40e16ecdf875a56727d3aee504ee44a208
1
#include <sys/cdefs.h>
2
#include <lib.h>
3
#include
"namespace.h"
4
5
#ifdef __weak_alias
6
__weak_alias
(
setgid
,
_setgid
)
7
__weak_alias
(
setegid
,
_setegid
)
8
#endif
9
10
#include <unistd.h>
11
12
int
setgid
(
gid_t grp
)
13
{
14
message m
;
15
16
m
.
m1_i1
= (
int
)
grp
;
17
return
(
_syscall
(
PM_PROC_NR
,
SETGID
, &
m
));
18
}
19
20
int
setegid
(
gid_t grp
)
21
{
22
message m
;
23
24
m
.
m1_i1
= (
int
)
grp
;
25
return
(
_syscall
(
PM_PROC_NR
,
SETEGID
, &
m
));
26
}