HP-UX Reference (11i v2 04/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 variable name, the associated value for the name argument
that is used in the
sysconf() call and the value returned:
Variable Value for name Value Returned
Version number of OSF/AES OSC sup-
ported
AES_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
AIO_PRIO_DELTA_
MAX
_SC_AIO_PRIO_
DELTA_MAX
Maximum slowdown factor that can be
specified in the aio_reqprio field of
a aiocb structure (see aio(5))
Maximum total length of the argu-
ments for exec() in bytes, including
environment data (see exec(2))
ARG_MAX _SC_ARG_MAX
ASYNCHRONOUS_IO _SC_ASYNCHRONOUS_IO Not supported
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
Positive if the implementation supports
multiple locality domains; -1 other-
wise (see mpctl (2))
CCNUMA_SUPPORT _SC_CCNUMA_SUPPORT
Maximum number of simultaneous
processes per user ID (see fork(2))
CHILD_MAX _SC_CHILD_MAX
Section 2−−426 Hewlett-Packard Company − 1 − HP-UX 11i Version 2: September 2004