xref: /csrg-svn/lib/libc/gen/setuid.c (revision 26589)
122109Smckusick /*
222109Smckusick  * Copyright (c) 1983 Regents of the University of California.
322109Smckusick  * All rights reserved.  The Berkeley software License Agreement
422109Smckusick  * specifies the terms and conditions for redistribution.
522109Smckusick  */
613504Ssam 
7*26589Sdonn #if defined(LIBC_SCCS) && !defined(lint)
8*26589Sdonn static char sccsid[] = "@(#)setuid.c	5.2 (Berkeley) 03/09/86";
9*26589Sdonn #endif LIBC_SCCS and not lint
1022109Smckusick 
1113504Ssam /*
1213504Ssam  * Backwards compatible setuid.
1313504Ssam  */
1413504Ssam setuid(uid)
1513504Ssam 	int uid;
1613504Ssam {
1713504Ssam 
1813504Ssam 	return (setreuid(uid, uid));
1913504Ssam }
20