The uname callable service obtains information about the z/OS UNIX system the caller is running on.
Operation | Environment |
---|---|
Authorization: | Supervisor or problem state, any PSW key |
Dispatchable unit mode: | Task |
Cross memory mode: | PASN = HASN |
AMODE (BPX1UNA): | 31-bit |
AMODE (BPX4UNA): | 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 BPX4UNA with the same parameters. The Data_area_address parameter is a doubleword.
The name of a fullword that contains the length of the data area that is pointed to by Data_area_address. The area must be at least the length of UTSN#LENGTH. For a mapping of this data area, refer to BPXYUTSN — Map the response structure for uname.
The name of a fullword (doubleword) that contains the address of the area in which the system information is to be returned. For a mapping of this data area, refer to BPXYUTSN — Map the response structure for uname.
The name of a fullword in which the uname service returns a nonnegative value if the request is successful, or -1 if it is not successful.
Return_code | Explanation |
---|---|
EFAULT | The pointer to the UTSN from the invoker is bad. The following reason code can accompany the return code: JRBadAddress. |
EINVAL | The passed length of the invoker UTSN is not valid. The following reason code can accompany the return code: JROK. |
The name of a fullword in which the uname service stores the reason code. The uname 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 uname service.
For an example using this callable service, see BPX1UNA (uname) example.