[Previous] [Contents] [Index] [Next]

getconf

Get system configuration values (POSIX)

Syntax:

getconf system_var
getconf path_var pathname

Options:

None

Description:

This utility gets system configuration values.

The first form writes to standard output the value of the specified system variable. For the possible values of system_var, see sysconf() and confstr() in the Library Reference.

The second form writes to standard output the value of the specified path variable for the given path. For the possible values of path_var, see pathconf() in the Library Reference.

Examples:

$ getconf _CS_PATH
/bin
$ getconf _SC_ARG_MAX
61440
$ getconf _PC_LINK_MAX /bin
65535

Environment variables:

LANG
The locale to use for the locale categories.
Note: QNX Neutrino currently supports only the POSIX (i.e. C) locale.

Exit status:

0
Successful completion.
1
An error occurred.

See also:

setconf

confstr(), pathconf(), sysconf() in the Library Reference

"Configuration strings" in the Configuring Your Environment chapter of the Neutrino User's Guide


[Previous] [Contents] [Index] [Next]