xref: /csrg-svn/lib/libc/compat-43/setruid.c (revision 35311)
122108Smckusick /*
222108Smckusick  * 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.
1622108Smckusick  */
1713506Ssam 
1826588Sdonn #if defined(LIBC_SCCS) && !defined(lint)
19*35311Sbostic static char sccsid[] = "@(#)setruid.c	5.3 (Berkeley) 08/03/88";
20*35311Sbostic #endif /* LIBC_SCCS and not lint */
2122108Smckusick 
2213506Ssam setruid(ruid)
2313506Ssam 	int ruid;
2413506Ssam {
2513506Ssam 
2613506Ssam 	return (setreuid(ruid, -1));
2713506Ssam }
28