122107Smckusick /* 222107Smckusick * Copyright (c) 1983 Regents of the University of California. 3*35311Sbostic * All rights reserved. 4*35311Sbostic * 5*35311Sbostic * Redistribution and use in source and binary forms are permitted 6*35311Sbostic * provided that the above copyright notice and this paragraph are 7*35311Sbostic * duplicated in all such forms and that any documentation, 8*35311Sbostic * advertising materials, and other materials related to such 9*35311Sbostic * distribution and use acknowledge that the software was developed 10*35311Sbostic * by the University of California, Berkeley. The name of the 11*35311Sbostic * University may not be used to endorse or promote products derived 12*35311Sbostic * from this software without specific prior written permission. 13*35311Sbostic * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 14*35311Sbostic * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 15*35311Sbostic * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 1622107Smckusick */ 1713507Ssam 1826587Sdonn #if defined(LIBC_SCCS) && !defined(lint) 19*35311Sbostic static char sccsid[] = "@(#)setrgid.c 5.3 (Berkeley) 08/03/88"; 20*35311Sbostic #endif /* LIBC_SCCS and not lint */ 2122107Smckusick 2213507Ssam setrgid(rgid) 2313507Ssam int rgid; 2413507Ssam { 2513507Ssam 2613507Ssam return (setregid(rgid, -1)); 2713507Ssam } 28