根据getconf
手册页:
NAME
getconf — get configuration values
SYNOPSIS
getconf [−v specification] system_var
...
DESCRIPTION
In the first synopsis form, the getconf utility shall write to the standard output the value of the vari‐
able specified by the system_var operand.
...
OPERANDS
The following operands shall be supported:
...
system_var
A name of a configuration variable. All of the following variables shall be supported:
* The names in the Variable column of the table in the DESCRIPTION of the sysconf() function
in the System Interfaces volume of POSIX.1‐2008...
* The names of the symbolic constants used as the name argument of the confstr() function in
the System Interfaces volume of POSIX.1‐2008...
* The names of the symbolic constants listed under the headings ``Maximum Values'' and ``Mini‐
mum Values'' in the description of the <limits.h> header in the Base Definitions volume of
POSIX.1‐2008...
The implementation may add other local values.
实现如何添加其他局部变量?是否有/etc/
配置文件,或者它是否来自环境?