getuid (BPX1GUI, BPX4GUI) — Get the real user ID
Function
The getuid callable service gets the real user ID (UID) of the calling process.
Requirements
Operation | Environment |
---|---|
Authorization: | Supervisor state or problem state, any PSW key |
Dispatchable unit mode: | Task |
Cross memory mode: | PASN = HASN |
AMODE (BPX1GUI): | 31-bit |
AMODE (BPX4GUI): | 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. |
Format
The syntax is as follows:
|
AMODE 64 callers use BPX4GUI.
Parameters
- User_ID
- Returned parameter
- Type:
- Integer
- Length:
- Fullword
The name of a fullword to which the getuid service returns the real user ID of the calling process.
Usage notes
If the getuid service fails, the process ends abnormally.
Related services
Characteristics and restrictions
There are no restrictions on the use of the getuid service.
Examples
For an example using this callable service, see BPX1GUI (getuid) example.