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

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1/!!!intro.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 invalidor 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:
ARG_MAX _BC_BASE_MAX BC_DIM_MAX
Section 1328 1 HP-UX Release 11i: December 2000
___
___