HP-UX Reference (11i v1 05/09) - 1 User Commands A-M (vol 1)

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(3C), pathconf(2), and sysconf(2) library rou-
tines 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(),orsysconf() (in the
first table below). Use the second synopsis form, for inquiries involving
pathconf() (in the second table
below). For inquiries involving
pathconf()
the pathname operand should be specified.
Options
getconf recognizes the following option:
-v specification Return configuration variables corresponding to a particular compilation environ-
ment 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 internationali-
zation 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
Other supported inquiries include the following:
HP-UX 11i Version 1: September 2005 1 Hewlett-Packard Company Section 1339