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) |
269a7923 | 9 | static char sccsid[] = "@(#)setgid.c 5.4 (Berkeley) %G%"; |
21fad3ef | 10 | #endif /* LIBC_SCCS and not lint */ |
cdd32460 SL |
11 | |
12 | /* | |
13 | * Backwards compatible setgid. | |
14 | */ | |
15 | setgid(gid) | |
16 | int gid; | |
17 | { | |
18 | ||
19 | return (setregid(gid, gid)); | |
20 | } |