Why doesn't getconf recognize BUFSIZ?

$ getconf BUFSIZ
getconf: Unrecognized variable 'BUFSIZ'

Is there a standard way to determine the BUFSIZ value from the shell? It’s enough to just write a simple C program to output the value, but I don’t quite understand why getconf does not.

+3
source share
2 answers

Since BUFSIZ is a multi-arbial configuration parameter for the stdio library, not a system configuration parameter

+5
source

The man / info page for sysconf lists the constant names that getconf can return values ​​for.

0
source

Source: https://habr.com/ru/post/1775693/


All Articles