Commit | Line | Data |
---|---|---|
66a6884f KT |
1 | .th SETUID II 8/5/73 |
2 | .sh NAME | |
3 | setuid \*- set process user ID | |
4 | .sh SYNOPSIS | |
5 | (setuid = 23.) | |
6 | .br | |
7 | (user ID in r0) | |
8 | .ft B | |
9 | .br | |
10 | sys setuid | |
11 | .s3 | |
12 | setuid(uid) | |
13 | .ft R | |
14 | .sh DESCRIPTION | |
15 | The user ID of the current process is set to | |
16 | the argument. | |
17 | Both the effective and the real user ID are set. | |
18 | This call is only permitted to the super-user | |
19 | or if the argument is the real user ID. | |
20 | .sh "SEE ALSO" | |
21 | getuid(II) | |
22 | .sh DIAGNOSTICS | |
23 | Error bit | |
24 | (c-bit) is set as indicated; | |
25 | from C, a \*-1 value is returned. |