122107Smckusick /* 2*60986Sbostic * Copyright (c) 1983, 1993 3*60986Sbostic * The Regents of the University of California. All rights reserved. 435311Sbostic * 542626Sbostic * %sccs.include.redist.c% 622107Smckusick */ 713507Ssam 826587Sdonn #if defined(LIBC_SCCS) && !defined(lint) 9*60986Sbostic static char sccsid[] = "@(#)setrgid.c 8.1 (Berkeley) 06/02/93"; 1035311Sbostic #endif /* LIBC_SCCS and not lint */ 1122107Smckusick 1246597Sdonn #include <unistd.h> 1346597Sdonn 1446597Sdonn int 1546597Sdonn #ifdef __STDC__ setrgid(gid_t rgid)1646597Sdonnsetrgid(gid_t rgid) 1746597Sdonn #else 1813507Ssam setrgid(rgid) 1913507Ssam int rgid; 2046597Sdonn #endif 2113507Ssam { 2213507Ssam 2313507Ssam return (setregid(rgid, -1)); 2413507Ssam } 25