122108Smckusick /* 2*60986Sbostic * Copyright (c) 1983, 1993 3*60986Sbostic * The Regents of the University of California. All rights reserved. 435311Sbostic * 542626Sbostic * %sccs.include.redist.c% 622108Smckusick */ 713506Ssam 826588Sdonn #if defined(LIBC_SCCS) && !defined(lint) 9*60986Sbostic static char sccsid[] = "@(#)setruid.c 8.1 (Berkeley) 06/02/93"; 1035311Sbostic #endif /* LIBC_SCCS and not lint */ 1122108Smckusick 1246597Sdonn #include <unistd.h> 1346597Sdonn 1446597Sdonn int 1546597Sdonn #ifdef __STDC__ setruid(uid_t ruid)1646597Sdonnsetruid(uid_t ruid) 1746597Sdonn #else 1813506Ssam setruid(ruid) 1913506Ssam int ruid; 2046597Sdonn #endif 2113506Ssam { 2213506Ssam 2313506Ssam return (setreuid(ruid, -1)); 2413506Ssam } 25