sysconf.2 (2010 09)

s
sysconf(2) sysconf(2)
Maximum parenthesis nesting level for expr expressions (see expr (1)).
EXTENDED_LOGIN_NAME
(_SC_EXTENDED_LOGIN_NAME
)
Equal to
1 if the optional Numeric User Group Name feature is installed
(see usergroupname(5));
0 otherwise.
GETGR_R_SIZE_MAX
(_SC_GETGR_R_SIZE_MAX
)
Maximum
getgrgid_r(), getgrnam_r() data buffer size.
GETPW_R_SIZE_MAX
(_SC_GETPW_R_SIZE_MAX
)
Maximum
getpwuid_r(), getpwnam_r() data buffer size.
HOST_NAME_MAX
(_SC_HOST_NAME_MAX
)
Maximum length of a host name (not including the terminating null) (see
gethostname (2)).
HT_CAPABLE (_SC_HT_CAPABLE
)
1 if the hardware is capable of HyperThreading.
0 if the hardware is not capable of HyperThreading. Note: The value
returned may change during the lifetime of the calling process, if the
system administrator changes the hardware configuration.
HT_ENABLED (_SC_HT_ENABLED)
1 if the hardware is HyperThreading enabled and OS supports
HyperThreading.
0 if the hardware is not HyperThreading enabled. Note: The value
returned may change during the lifetime of the calling process, if the
system administrator changes the hardware configuration.
HW_32_64_CAPABLE
(_SC_HW_32_64_CAPABLE)
Returns which kernel is supported on the hardware. The value returned
is an encoding that may be interpreted using the
_SYSTEM_SUPPORTS_ILP32OS()
and
_SYSTEM_SUPPORTS_LP64OS()
macros defined in <unistd.h>.
For 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*/
}
IO_TYPE (_SC_IO_TYPE)
Type of I/O drivers the kernel supports; currently, only the value
IO_TYPE_CDIO
KERNEL_BITS (_SC_KERNEL_BITS)
Returns the number of bits used by the kernel for pointer and long data
types. Current values include 32 and 64.
LIBC_VERSION (_SC_LIBC_VERSION)
The version of libc that is in use by the application that is requesting this
information.
The format of the value returned by
sysconf(_SC_LIBC_VERSION)
is XXyyZZZZqN,
where:
HP-UX 11i Version 3: September 2010 3 Hewlett-Packard Company 3