NAME

sysconf - sysconf system call interface utility


SYNOPSIS

sysconf [OPTIONS] [NAME ...]


DESCRIPTION

Report sysconf, pathconf, and confstr system variables. Variable names from the sysconf(3) call start with ``_SC''. Variable names from the pathconf(3) call start with ``_PC''. Variable names from the confstr(3) call start with ``_CS''. To see a full list of available variable names, use the --all option.

-l, --all
Output a full list of all the known system variables. For pathconf(3) variables, you will need to include the --path option.

-p FILENAME, --path=FILENAME
When reporting pathconf(3) variables, use FILENAME as the path reference during the system call.

-v, --verbose
Output the variable name along with the value.

-h, --help
Display this help and exit.

-V, --version
Output version information exit.


AUTHOR

Written by Kees Cook <kees@outflux.net>.


EXAMPLE

If you wanted to use all your CPUs when building something with make(1), you could examine the _SC_NPROCESSORS_ONLN variable and pass it to make(1)'s -j option:

make -j`sysconf sc_nprocessors_onln`


REPORTING BUGS

Report bugs via http://sourceforge.net/projects/sysconf/.


COPYRIGHT

Copyright (C) 2003 Kees Cook <kees@outflux.net>. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


SEE ALSO

sysconf(3), pathconf(3), confstr(3)