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
/
_setgid.c
blob
66270ad15134fab60618c8c4d683f2638ffb03d4
1
#include <lib.h>
2
#define setgid _setgid
3
#define setegid _setegid
4
#include <unistd.h>
5
6
PUBLIC
int
setgid
(
grp
)
7
gid_t grp
;
8
{
9
message m
;
10
11
m
.
m1_i1
= (
int
)
grp
;
12
return
(
_syscall
(
MM
,
SETGID
, &
m
));
13
}
14
15
PUBLIC
int
setegid
(
grp
)
16
gid_t grp
;
17
{
18
message m
;
19
20
m
.
m1_i1
= (
int
)
grp
;
21
return
(
_syscall
(
MM
,
SETEGID
, &
m
));
22
}