HP-UX Reference (11i v2 07/12) - 2 System Calls (vol 5)
s
sysconf(2) sysconf(2)
_CS_XBS5_LP64_OFF64_LINTFLAGS
are supported by confstr(3C). A return
value of -1 indicates they are not sup-
ported.
XBS5_LPBIG_
OFFBIG
_SC_XBS5_LPBIG_
OFFBIG
A flag which denotes whether
_CS_XBS5_LPBIG_OFFBIG_CFLAGS
,
_CS_XBS5_LPBIG_OFFBIG_LDFLAGS
,
_CS_XBS5_LPBIG_OFFBIG_LIBS
and
_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS
are supported by confstr(3C). A return
value of -1 indicates they are not sup-
ported.
Some of the variables in the table are defined as constants in
<limits.h> (see limits(5)). The associated
values of the name argument are defined in
<unistd.h> .
The possible values of the
CPU_VERSION variable returned by
sysconf(_SC_CPU_VERSION)
and
their meanings are:
Value Meaning
CPU_PA_RISC1_0 HP Precision Architecture RISC Version 1.0
CPU_PA_RISC1_1 HP Precision Architecture RISC Version 1.1
CPU_PA_RISC2_0 HP Precision Architecture RISC Version 2.0
CPU_IA64_ARCHREV_0
HP Itanium-based Architecture Version 0
The
CPU_IS_PA_RISC()
function classifies cpuvers, a value of the CPU_VERSION variable, as to its
processor family.
The availability of architecture specific instructions is indicated by the key bit data returned by
sysconf(_SC_CPU_KEYBITS1)
. Upon successful completion, the data returned will be the logical OR
of the defined values for the features supported.
The possible values returned by
sysconf(_SC_CPU_KEYBITS1)
and their meanings for PA-RISC
platforms are shown in the following table.
Return Value Instruction Supported
HARITH Halfword parallel add, subtract, and average
HSHIFT Halfword parallel shift-and-add
The format of the value returned by sysconf(_SC_LIBC_VERSION)
is as follows:
XXyyZZZZqN
where
XX HP-UX major release number
yy HP-UX minor release number
ZZZZ Library-specific number
q 0=32PA 1=64PA 2=32EM 3=64EM 4-9=Reserved
N 0 = archive library
1-9 = System V version of shared library
RETURN VALUE
Upon successful completion,
sysconf() returns the value of the named variable. If the value of name is
not recognized, sysconf() returns -1 and sets errno to [EINVAL]. If the value in name is defined but
is not supported in this environment, sysconf() returns -1, but does not change errno.
CPU_IS_PA_RISC() returns positive nonzero if cpuvers is an HP PA-RISC processor; zero if not.
ERRORS
If sysconf() fails, the value of errno (see errno(2)) is set to:
[EINVAL] The value of name is not valid.
470 Hewlett-Packard Company − 7 − HP-UX 11i Version 2: December 2007 Update