The sysconf callable service gets the value of a configurable system variable.
Operation | Environment |
---|---|
Authorization: | Supervisor state or problem state, any PSW key |
Dispatchable unit mode: | Task |
Cross memory mode: | PASN = HASN |
AMODE (BPX1SYC): | 31-bit |
AMODE (BPX4SYC): | 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 BPX4SYC with the same parameters.
Constant | Configurable system variable returned |
---|---|
SC_ARG_MAX | For ARG_MAX |
SC_CHILD_MAX | For CHILD_MAX |
SC_CLK_TCK | For CLK_TCK |
SC_JOB_CONTROL | For _POSIX_JOB_CONTROL |
SC_NGROUPS_MAX | For NGROUPS_MAX |
SC_OPEN_MAX | For OPEN_MAX |
SC_SAVED_IDS | For _POSIX_SAVED_IDS |
SC_MMAP_MEM_MAX_NP | For MMAP_MEM_MAX_NP |
SC_TTY_GROUP | For TTY GROUP |
SC_THREADS_MAX_NP | For _THREADS_MAX_NP |
SC_THREAD_TASKS_MAX_NP | For _THREAD_TASKS_MAX_NP |
SC_TZNAME_MAX | For TZNAME_MAX |
SC_VERSION | For _POSIX_VERSION |
SC_2_CHAR_TERM | For CHAR_TERM |
SC_PAGESIZE | For PAGESIZE |
SC_PAGE_SIZE | For PAGE_SIZE |
The name of a fullword in which the sysconf service returns the actual value of the configurable system variable if the request is successful, or -1 if it is not successful.
Return_code | Explanation |
---|---|
EINVAL | The value of the Sysconf_name argument is not valid. |
The name of a fullword in which the sysconf service stores the reason code. The sysconf 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.
For an example using this callable service, see BPX1SYC (sysconf) example.