HP-UX Reference (11i v2 03/08) - 2 System Calls (vol 5)
s
sysconf(2) sysconf(2)
XBS5_ILP32_
OFFBIG
_SC_XBS5_ILP32_
OFFBIG
A flag which denotes whether
_CS_XBS5_ILP32_OFFBIG_CFLAGS
,
_CS_XBS5_ILP32_OFFBIG_LDFLAGS
,
_CS_XBS5_ILP32_OFFBIG_LIBS
and
_CS_XBS5_ILP32_OFFBIG_LINTFLAGS
are supported by confstr (3C). A return
value of -1 indicates they are not sup-
ported.
XBS5_LP64_
OFF64
_SC_XBS5_LP64_
OFF64
A flag which denotes whether
_CS_XBS5_LP64_OFF64_CFLAGS
,
_CS_XBS5_LP64_OFF64_LDFLAGS
,
_CS_XBS5_LP64_OFF64_LIBS
and
_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 associ-
ated 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 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
HP-UX 11i Version 2: August 2003 − 7 − Hewlett-Packard Company Section 2−−427