HP-UX Reference (11i v1 05/09) - 2 System Calls (vol 5)

s
sysconf(2) sysconf(2)
NAME
sysconf(), CPU_IS_PA_RISC() - get configurable system variables
SYNOPSIS
#include <unistd.h>
long sysconf(int name);
int CPU_IS_PA_RISC(long cpuvers);
DESCRIPTION
The sysconf() system call provides a way for applications to determine the current value of a
configurable limit or variable.
The name argument represents the system variable being queried.
The following table lists the configuration variables whose values can be determined by calling
sys-
conf()
, and for each variable, the associated value of the name argument and the value returned:
Variable Value for name Value Returned
Version number of OSF/AES OSC supportedAES_OS_VERSION _SC_AES_OS_VERSION
Maximum number of aio operations that can
be specified in a
lio_listio() call (see
lio_listio(2))
AIO_LISTIO_MAX _SC_AIO_LISTIO_MAX
Maximum number of aio operations that can
be queued at any time (see aio(5))
AIO_MAX _SC_AIO_MAX
Maximum slowdown factor that can be
specified in the aio_reqprio field of a
aiocb structure (see aio(5))
AIO_PRIO_DELTA_MAX _SC_AIO_PRIO_DELTA_MAX
Maximum total length of the arguments for
exec() in bytes, including environment
data (see exec(2))
ARG_MAX _SC_ARG_MAX
Maximum number of functions that can be
registered with atexit() (see atexit(3))
ATEXIT_MAX _SC_ATEXIT_MAX
Maximum ibase (input number radix) and
obase (output number radix) allowed by bc
(see bc(1))
BC_BASE_MAX _SC_BC_BASE_MAX
Maximum number of elements in an array
permitted by bc (see bc(1))
BC_DIM_MAX _SC_BC_DIM_MAX
Maximum scale factor (number of digits to
the right of the decimal point) allowed by
bc (see bc(1))
BC_SCALE_MAX _SC_BC_SCALE_MAX
Maximum length of strings allowed by bc
(see bc(1))
BC_STRING_MAX _SC_BC_STRING_MAX
Maximum number of simultaneous
processes per user ID (see fork(2))
CHILD_MAX _SC_CHILD_MAX
Number of clock intervals per second for
times() (see times(2))
CLK_TCK _SC_CLK_TCK
Number of clock ticks per second for
clock() (see clock(3C))
CLOCKS_PER_SEC _SC_CLOCKS_PER_SEC
Maximum number of weights that can be
assigned to an entry of the LC_COLLATE
order
keyword in a localedef input
COLL_WEIGHTS_MAX _SC_COLL_WEIGHTS_MAX
Section 2418 Hewlett-Packard Company 1 HP-UX 11i Version 1: September 2005