The getpwuid callable service gets information about a user. You specify the user by user ID (UID).
Operation | Environment |
---|---|
Authorization: | Supervisor state or problem state, any PSW key |
Dispatchable unit mode: | Task |
Cross memory mode: | PASN = HASN |
AMODE (BPX1GPU): | 31-bit |
AMODE (BPX4GPU): | 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 BPX4GPU with the same parameter.
The name of a fullword that contains the user ID of the user you want information about.
The name of a fullword to which the getpwuid returns an address, or 0. If no entry for the specified user ID is found, Return_value is set to 0. If an entry is found, Return_value is set to the address of the BPXYGIDN mapping macro. See BPXYGIDN — Map data returned for getpwnam and getpwuid.
Return_code | Explanation |
---|---|
EMVSSAF2ERR | The system authorization facility (SAF) or RACF® Get GMAP or Get UMAP service had an error. |
EMVSSAFEXTRERR | The SAF or RACF RACROUTE EXTRACT call had an error. |
The name of a fullword in which the getpwuid service stores the reason code. The getpwuid service returns Reason_code only if Return_value is 0. Reason_code further qualifies the Return_code value. For the reason codes, see z/OS UNIX System Services Messages and Codes. The reason code for EMVSSAF2ERR or EMVSSAFEXTRERR contains the RACF return and reason codes, respectively, in the two low-order bytes.
RACF return code | RACF reason code | Explanation |
---|---|---|
8 | 4 | For a search by GID: the GID is not defined. For a search by group name: the current group is not defined. |
8 | 8 | The group name is not defined. |
8 | 12 | There was an internal error during RACF processing. |
8 | 16 | Recovery could not be established. |
8 | 20 | The current group is incompletely defined. |
RACF return code | RACF reason code | Explanation |
---|---|---|
8 | 4 | For a search by UID: the UID is not defined. For a search by user ID: The user is not defined. |
8 | 8 | The user ID is not defined. |
8 | 12 | An internal error occurred during RACF processing. |
8 | 16 | Unable to establish recovery. |
8 | 20 | The user is incompletely defined. |
There are no restrictions on the use of the getpwuid service.
For an example using this callable service, see BPX1GPU (getpwuid) example.