getconf(1)

getconf - get configuration variables (XPG4)

As shipped in IRIX 6.5.5. Unchanged since IRIX 6.5.

NAME
     getconf - get configuration variables (XPG4)

SYNOPSIS
     getconf system_var

     getconf path_var path_name

DESCRIPTION
     getconf provides a method to determine the current values of certain
     configurable system limits, options and parameters.

     If the system_var argument is given, getconf(1) will print the value of
     each requested system parameter, one per line.

     If the path_var and pathname arguments are given, getconf(1) will print
     the value of the requested variable specified by the path_var argument
     for the path specified by the pathname operand.

STDOUT
     If the specified variable is defined on the system and its value is
     described to be available, its value will be written in the following
     format:

          "%s\n", <value>

     Otherwise, if the specified variable is defined on the system, its value
     will be written in the following format:

          "%d\n", <value>

     If the specified variable is valid, but is undefined on the system,
     getconf will write using the following format:

          "undefined\n"

     If the variable name is invalid or an error occurs, nothing will be
     written to standard output.

OPERANDS
     The following operands are supported:

     path_var

               A name of a configuration variable whose value is available
               from the pathconf() function.  All of the values in the
               following table are supported in addition to others described
               in pathconf(1):

     LINK_MAX            NAME_MAX              _POSIX_CHOWN_RESTRICTED
     MAX_CANON           PATH_MAX              _POSIX_NO_TRUNC
     MAX_INPUT           PIPE_BUF              _POSIX_VDISABLE
     pathname

               A pathname for which the variable specified by path_var is to
               be determined.

     system_var

               A name of a configuration variable whose value is available
               from the sysconf() function.  All of the values in the
               following table are supported:

     ARG_MAX             NL_TEXTMAX            POSIX2_C_DEV
     BC_BASE_MAX         OPEN_MAX              POSIX2_C_VERSION
     BC_DIM_MAX          _POSIX_ARG_MAX        POSIX2_EXPR_NEST_MAX
     BC_SCALE_MAX        _POSIX_CHILD_MAX      POSIX2_FORT_DEV
     BC_STRING_MAX       _POSIX_JOB_CONTROL    POSIX2_FORT_RUN
     CHAR_BIT            _POSIX_LINK_MAX       POSIX2_LINE_MAX
     CHAR_MAX            _POSIX_MAX_CANON      POSIX2_LOCALEDEF
     CHAR_MIN            _POSIX_MAX_INPUT      POSIX2_RE_DUP_MAX
     CHILD_MAX           _POSIX_NAME_MAX       POSIX2_SW_DEV
     CLK_TCK             _POSIX_NGROUPS_MAX    POSIX2_UPE
     COLL_WEIGHTS_MAX    _POSIX_OPEN_MAX       POSIX2_VERSION
     CS_PATH             _POSIX_PATH_MAX       RE_DUP_MAX
     EXPR_NEST_MAX       _POSIX_PIPE_BUF       SCHAR_MAX
     INT_MAX             _POSIX_SAVED_IDS      SCHAR_MIN
     LINE_MAX            _POSIX_STREAM_MAX     SHRT_MIN
     LONG_MAX            _POSIX_TZNAME_MAX     SSIZE_MAX
     LONG_MIN            _POSIX_VERSION        STREAM_MAX
     MB_LEN_MAX          POSIX2_BC_BASE_MAX    TZNAME_MAX
     NGROUPS_MAX         POSIX2_BC_DIM_MAX     UCHAR_MAX
     NL_ARGMAX           POSIX2_BC_SCALE_MAX   UINT_MAX
     NL_LANGMAX          POSIX2_BC_STRING_MAX  ULONG_MAX
     NL_MAX              POSIX2_CHAR_TERM      USHRT_MAX
     NL_MSGMAX           POSIX2_COLL_WEIGHTS_MAX
     NL_SETMAX           POSIX2_C_BIND
     CHARCLASS_NAME_MAX  NL_TEXTMAX            _XOPEN_VERSION
     LONG_BIT            NZERO                 _XOPEN_XCU_VERSION
     NL_ARGMAX           TMP_MAX               _XOPEN_XPG2
     NL_LANGMAX          WORD_BIT              _XOPEN_XPG3
     NL_MAX              _XOPEN_CRYPT          _XOPEN_XPG4
     NL_MSGMAX           _XOPEN_ENH_I18N       NL_SETMAX
     _XOPEN_SHM          ATEXIT_MAX            PAGESIZE
     _XOPEN_UNIX         IOV_MAX               PAGE_SIZE
     KERN_POINTERS       KERN_SIM

EXIT STATUS
     getconf exits with a status of greater than zero if any errors are
     encountered, otherwise it exits with status 0.

SEE ALSO
     pathconf(1), sysconf(3C), pathconf(2), limits(4)