Commit | Line | Data |
---|---|---|
b8f253e8 KM |
1 | /* |
2 | * Copyright (c) 1983 Regents of the University of California. | |
21fad3ef KB |
3 | * All rights reserved. |
4 | * | |
269a7923 | 5 | * %sccs.include.redist.c% |
b8f253e8 KM |
6 | */ |
7 | ||
2ce81398 | 8 | #if defined(LIBC_SCCS) && !defined(lint) |
269a7923 | 9 | static char sccsid[] = "@(#)setuid.c 5.4 (Berkeley) %G%"; |
21fad3ef | 10 | #endif /* LIBC_SCCS and not lint */ |
7c30e276 SL |
11 | |
12 | /* | |
13 | * Backwards compatible setuid. | |
14 | */ | |
15 | setuid(uid) | |
16 | int uid; | |
17 | { | |
18 | ||
19 | return (setreuid(uid, uid)); | |
20 | } |