122109Smckusick /* 222109Smckusick * 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. 1622109Smckusick */ 1713504Ssam 1826589Sdonn #if defined(LIBC_SCCS) && !defined(lint) 19*35311Sbostic static char sccsid[] = "@(#)setuid.c 5.3 (Berkeley) 08/03/88"; 20*35311Sbostic #endif /* LIBC_SCCS and not lint */ 2122109Smckusick 2213504Ssam /* 2313504Ssam * Backwards compatible setuid. 2413504Ssam */ 2513504Ssam setuid(uid) 2613504Ssam int uid; 2713504Ssam { 2813504Ssam 2913504Ssam return (setreuid(uid, uid)); 3013504Ssam } 31