geteuid (BPX1GEU, BPX4GEU) — Get the effective user ID

Function

The geteuid callable service gets the effective 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 (BPX1GEU): 31-bit
AMODE (BPX4GEU): 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

CALL BPX1GEU,(Effective_user_ID)

AMODE 64 callers use BPX4GEU with the same parameter.

Parameters

Effective_user_ID
Returned parameter
Type:
Integer
Length:
Fullword

The name of a fullword in which the geteuid service places the effective user ID of the calling process.

Usage notes

If this service fails, the process ends abnormally.

Related services

Characteristics and restrictions

There are no restrictions on the use of the geteuid service.

Examples

For an example using this callable service, see BPX1GEU (geteuid) example.