Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getconf(1) — HP-UX 8.07

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

confstr(3C)

pathconf(2)

sysconf(2)

getconf(1)

NAME

getconf − get system configuration values

SYNOPSIS

getconf [parameter_name] [pathname]

DESCRIPTION

getconf provides a program interface to the confstr(3C), pathconf(2), and sysconf(2) libraries.

The parameter_name argument specifies the configuration value desired in confstr(), pathconf(), or sysconf(). For parameter_name, operand values listed in the table with pathconf() as the underlying function, the pathname operand must also be supplied; otherwise, the pathname operand must not be supplied. 

RETURN VALUE

The error codes returned by getconf are:

0 Success.  A value corresponding to the operand was returned;

1 One or more missing or extra operands;

2 Operand was not recognized. 

3 Pathname could not be accessed. 

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

Some other supported inquiries include:

ARG_MAX LINE_MAX _POSIX2_C_BIND
BC_BASE_MAX NGROUPS_MAX _POSIX2_C_DEV
BC_DIM_MAX OPEN_MAX _POSIX2_FORT_DEV
BC_SCALE_MAX PASTE_FILES_MAX _POSIX2_SW_DEV
CHILD_MAX RE_DUP_MAX _POSIX2_VERSION
CLK_TCK SC_PASS_MAX _POSIX_JOB_CONTROL
COLL_ELEM_MAX SC_XOPEN_VERSION _POSIX_SAVED_IDS
CS_PATH SED_PATTERN_MAX _POSIX_VERSION
EXPR_NEST_MAX SENDTO_MAX

Some other supported inquires, which require the second parameter:

LINK_MAX NAME_MAX _POSIX_CHOWN_RESTRICTED
MAX_CANON PATH_MAX _POSIX_NO_TRUNC
MAX_INPUT PIPE_BUF _POSIX_VDISABLE

AUTHOR

getconf was developed by HP and POSIX. 

SEE ALSO

confstr(3C), pathconf(2), sysconf(2). 

STANDARDS CONFORMANCE

getconf: proposed POSIX.2 FIPS (June 1990)

Hewlett-Packard Company  —  HP-UX Release 8.05: June 1991

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026