HP-UX Reference (11i v2 07/12) - 2 System Calls (vol 5)

s
sysconf(2) sysconf(2)
Number of clock ticks per second for
clock() (see clock(3C)).
CLOCKS_PER_SEC _SC_CLOCKS_PER_SEC
COLL_WEIGHTS_
MAX
_SC_COLL_
WEIGHTS_MAX
Maximum number of weights that can be
assigned to an entry of the LC_COLLATE
order keyword in a localedef input file
(see localedef(1M)).
Itanium-based systems: CPUID Register
3 of the Itanium-based processor
identification registers. See the Itanium-
based architecture definition for this plat-
form for the meaning of each bit.
CPU_CHIP_TYPE _SC_CPU_CHIP_TYPE
Itanium-based systems: CPUID Register 4
of the Itanium-based processor identification
registers. See the Itanium-based architec-
ture definition for this platform for the
meaning of each bit. PA-RISC systems:
Processor Extensions (see below).
CPU_KEYBITS1 _SC_CPU_KEYBITS1
Version of CPU architecture (see below).CPU_VERSION _SC_CPU_VERSION
DELAYTIMER_MAX _SC_DELAYTIMER_MAX Maximum timer overrun count
Maximum parenthesis nesting level for
expr expressions (see expr(1)).
EXPR_NEST_MAX _SC_EXPR_NEST_MAX
Maximum getgrgid_r() ,
getgrnam_r() data buffer size.
GETGR_R_SIZE_MAX _SC_GETGR_R_SIZE_MAX
Maximum getpwuid_r() ,
getpwnam_r() data buffer size.
GETPW_R_SIZE_MAX _SC_GETPW_R_SIZE_MAX
Maximum length of a host name (not includ-
ing the terminating null) as retured from
the gethostname() function (see
gethostname(2)).
HOST_NAME_MAX _SC_HOST_NAME_MAX
Returns which kernel is supported on the
hardware. The value returned is an encod-
ing which may be interpreted using the
_SYSTEM_SUPPORTS_ILP32OS()
and
_SYSTEM_SUPPORTS_LP64OS()
mac-
ros defined in
unistd.h.Example:
long ret =
sysconf(_SC_HW_32_64_CAPABLE);
if (_SYSTEM_SUPPORTS_ILP32OS(ret)
!= 0) {
/*system supports 32-bit OS*/
}
if (_SYSTEM_SUPPORTS_LP64OS(ret)
!= 0) {
/*system supports 64-bit OS*/
}
HW_32_64_CAPABLE _SC_HW_32_64_CAPABLE
Type of I/O drivers the kernel supports,
currently, only the value IO_TYPE_CDIO .
IO_TYPE _SC_IO_TYPE
HP-UX 11i Version 2: December 2007 Update 2 Hewlett-Packard Company 465