Commit | Line | Data |
---|---|---|
b8f253e8 KM |
1 | /* |
2 | * Copyright (c) 1983 Regents of the University of California. | |
21fad3ef KB |
3 | * All rights reserved. |
4 | * | |
269a7923 | 5 | * %sccs.include.redist.c% |
b8f253e8 KM |
6 | */ |
7 | ||
2ce81398 | 8 | #if defined(LIBC_SCCS) && !defined(lint) |
c5980113 | 9 | static char sccsid[] = "@(#)setrgid.c 5.5 (Berkeley) %G%"; |
21fad3ef | 10 | #endif /* LIBC_SCCS and not lint */ |
c35c3920 | 11 | |
c5980113 DS |
12 | #include <unistd.h> |
13 | ||
14 | int | |
15 | #ifdef __STDC__ | |
16 | setrgid(gid_t rgid) | |
17 | #else | |
c35c3920 SL |
18 | setrgid(rgid) |
19 | int rgid; | |
c5980113 | 20 | #endif |
c35c3920 SL |
21 | { |
22 | ||
23 | return (setregid(rgid, -1)); | |
24 | } |