repo.or.cz
/
AROS.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
tools/adflib: build only host variant which is used by Sam440 target
[AROS.git]
/
workbench
/
network
/
stacks
/
AROSTCP
/
netlib
/
setegid.c
blob
19739eb68deff65833e408fd6d65b739903d1b6b
1
/* $Id$
2
*
3
* setegid() - set effective group
4
*
5
* Copyright © 1994 AmiTCP/IP Group,
6
* Network Solutions Development Inc.
7
* All rights reserved.
8
*/
9
10
#include <sys/types.h>
11
#include <unistd.h>
12
13
#include <proto/usergroup.h>
14
15
#ifdef setegid
16
#undef setegid
17
#endif
18
19
int
20
setegid
(
gid_t g
)
21
{
22
return
setregid
(-
1
,
g
);
23
}