getconf.1 (2010 09)

g
getconf(1) getconf(1)
NAME
getconf - get system configuration values
SYNOPSIS
getconf [-v specification ] system_var
getconf [-v specification ] system_var pathname
DESCRIPTION
The
getconf command provides an interface to the
confstr(), pathconf(), and sysconf()
library routines and system calls.
The system_var argument specifies the configuration value desired in
confstr(), pathconf(),or
sysconf(). Use the first synopsis form for inquiries involving
confstr() or sysconf(). Refer to
Table for Inquiries for confstr() or sysconf() in this manpage. Use the second synopsis form for inquiries
involving
pathconf(). Refer to Table for Inquiries for pathconf() in this manpage. For inquiries
involving
pathconf() the pathname operand should be specified.
For a complete list of parameters supported by
getconf, see sysconf (2), pathconf (2), and confstr (3C).
Options
getconf recognizes the following option:
-v specification Return configuration variables corresponding to a particular compilation
environment supported by HP-UX. If the -v option is not specified, specification
defaults to XBS5_ILP32_OFF32. See table below for possible specifications and
meanings.
Specification int long pointer off_t
XBS5_ILP32_OFF32 32 32 32 32
XBS5_ILP32_OFFBIG 32 32 32 >=64
XBS5_LP64_OFF64 32 64 64 64
XBS5_LPBIG_OFFBIG >=32 >=64 >=64 >=64
EXTERNAL INFLUENCES
Environment Variables
LC_MESSAGES determines the language in which messages are displayed.
If
LC_MESSAGES is not specified in the environment or is set to the empty string, the value of
LANG is
used as a default for each unspecified or empty variable. If
LANG is not specified or is set to the empty
string, a default of "C" (see lang (5)) is used instead of LANG.
If any internationalization variable contains an invalid setting,
getconf behaves as if all international-
ization variables are set to "C". See environ (5).
International Code Set Support
Single-byte and multi-byte character code sets are supported.
RETURN VALUE
The error codes returned by
getconf are:
0 Success. A value corresponding to the operand was returned.
1 One or more missing operands.
2 Operand was not recognized.
3 pathname either invalid or inaccessible.
EXAMPLES
Request the number of intervals per second:
getconf CLK_TCK
Request the maximum value of a file’s link count:
getconf LINK_MAX /etc/passwd
Inquire if the implementation supports multiple locality domains:
getconf CCNUMA_SUPPORT
HP-UX 11i Version 3: September 2010 1 Hewlett-Packard Company 1

Summary of content (4 pages)