sysconf - sysconf system call interface utility
sysconf [OPTIONS] [NAME ...]
Report sysconf, pathconf, and confstr system variables. Variable names from
sysconf(3) call start with ``_SC''. Variable names from the
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
pathconf(3)variables, you will need to include the --path option.
pathconf(3)variables, use FILENAME as the path reference during the system call.
Written by Kees Cook <email@example.com>.
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`
Report bugs via http://sourceforge.net/projects/sysconf/.
Copyright (C) 2003 Kees Cook <firstname.lastname@example.org>. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.