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