The getclientid callable service obtains the calling program's identifier.
Operation | Environment |
---|---|
Authorization: | Supervisor state or problem state, any PSW key |
Dispatchable unit mode: | Task |
Cross memory mode: | PASN = HASN |
AMODE (BPX1GCL): | 31-bit |
AMODE (BPX4GCL): | 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 BPX4GCL with the same parameters.
Specify a 1 to have the caller's name and task identifiers returned in the Clientid parameter. Specify a 2 to have the caller's process id returned in the Clientid parameter.
The name of a field that contains the communications domain in which the sockets are to be given and taken. See BPXYSOCK — Map SOCKADDR structure and constants for more information about the values defined for this field.
The name of a structure that is to be returned with information that identifies the calling program.
Return_code | Explanation |
---|---|
EFAULT | Using the Clientid parameter as specified would result in an attempt to access storage outside the caller's address space. |
The name of a fullword where the getclientid service stores the reason code. The getclientid service returns Reason_code only if Return_value is -1. Reason_code further qualifies the Return_code value. For the reason codes, see z/OS UNIX System Services Messages and Codes.
There are no restrictions on the use of the getclientid service.