The setgid callable service sets the real, effective, and saved set group IDs (GIDs) for the calling process.
Operation | Environment |
---|---|
Authorization: | Supervisor state or problem state, any PSW key |
Dispatchable unit mode: | Task |
Cross memory mode: | PASN = HASN |
AMODE (BPX1SGI): | 31-bit |
AMODE (BPX4SGI): | 64-bit |
ASC mode: | Primary mode |
Interrupt status: | Enabled for interrupts |
Locks: | Unlocked |
Control parameters: | All parameters must be addressable by the caller and in the primary address space. |
|
AMODE 64 callers use BPX4SGI with the same parameters.
The name of a fullword that contains the group ID that the calling process is to assume.
The name of a fullword in which the setgid service returns 0 if the request is successful, or -1 if it is not successful.
Return_code | Explanation |
---|---|
EINVAL | The Group_ID that was specified is incorrect. |
EPERM | The process does not have the appropriate privileges to set the group ID. Refer to Authorization for information about appropriate privileges. |
EMVSSAF2ERR | The SAF call IRRSSG00 incurred an error. |
RACF return code | RACF reason code | Explanation |
---|---|---|
8 | 4 | GID is not defined to RACF |
8 | 8 | User not authorized to change GID |
8 | 12 | Internal error during RACF processing |
8 | 16 | Unable to establish recovery |
For an example using this callable service, see BPX1SGI (setgid) example.