39 lines
1.3 KiB
JSON
39 lines
1.3 KiB
JSON
{
|
|
"name": "getconf",
|
|
"section": 1,
|
|
"title": "get configuration values",
|
|
"synopsis": ["getconf [-a] system_var"],
|
|
"description": "Prints a fixed subset of POSIX-style limit names and values for Bare OS. There is no host sysconf path; constants match the documented JavaScript/VFS environment.",
|
|
"options": [
|
|
{
|
|
"flag": "-a",
|
|
"meaning": "Write every known variable (each name on one line, value on the next)"
|
|
}
|
|
],
|
|
"keywords": [
|
|
"getconf",
|
|
"limits",
|
|
"PATH_MAX",
|
|
"POSIX",
|
|
"bare-os",
|
|
"coreutils"
|
|
],
|
|
"environment": [
|
|
"BARE_OS_YES_MAX_LINES — max lines yes prints (host passthrough overrides default)",
|
|
"BARE_OS_SHUF_MAX_LINES — max lines shuf holds in memory",
|
|
"BARE_OS_SPLIT_MAX_FILES — max output files split may create",
|
|
"BARE_OS_FIND_EXEC_MAX — max find -exec/-ok invocations per run (also in table)"
|
|
],
|
|
"bareOsNotes": "Subset only; unknown names fail with exit status 1. See src/getconf.js for the name table. BARE_OS_NPROC overrides /bin/nproc when passed from the host (see docs/reference/environment-and-posix-appendix.md §14).",
|
|
"examples": [
|
|
{
|
|
"caption": "path length limit",
|
|
"code": "getconf PATH_MAX"
|
|
},
|
|
{
|
|
"caption": "list known names and values",
|
|
"code": "getconf -a"
|
|
}
|
|
]
|
|
}
|