122106Smckusick /* 222106Smckusick * 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. 1622106Smckusick */ 1713505Ssam 1826586Sdonn #if defined(LIBC_SCCS) && !defined(lint) 19*35311Sbostic static char sccsid[] = "@(#)setgid.c 5.3 (Berkeley) 08/03/88"; 20*35311Sbostic #endif /* LIBC_SCCS and not lint */ 2122106Smckusick 2213505Ssam /* 2313505Ssam * Backwards compatible setgid. 2413505Ssam */ 2513505Ssam setgid(gid) 2613505Ssam int gid; 2713505Ssam { 2813505Ssam 2913505Ssam return (setregid(gid, gid)); 3013505Ssam } 31