Developer Guide and Reference

ID 767251
Date 10/31/2024
Public
Document Table of Contents

PXFSYSCONF

POSIX Subroutine: Gets values for system limits or options.

Module

USE IFPOSIX

CALL PXFSYSCONF (name,ival,ierror)

name

(Input) INTEGER(4). The system option you want information about.

ival

(Output) INTEGER(4). The returned value.

ierror

(Output) INTEGER(4). The error status.

If successful, ierror is set to zero; otherwise, an error code.

PXFSYSCONF lets you determine values for system limits or system options at runtime.

The value for name can be any of the following constants:

Constant

Description

_SC_ARG_MAX1

Indicates the maximum length of the arguments to the PXFEXEC family of routines.

_SC_CHILD_MAX1

Indicates the number of simultaneous processes per user ID.

_SC_CLK_TCK

Indicates the number of clock ticks per second.

_SC_STREAM_MAX2

Indicates the maximum number of streams that a process can have open at any time.

_SC_TZNAME_MAX

Indicates the maximum number of bytes in a timezone name.

The corresponding macros are defined in <bits/confname.h> on Linux* systems. The values for argument name can be obtained by using PXFCONST or IPXFCONST when passing the string names of predefined macros in the appropriate .h file.

See Also