开发者

Why does getconf not recognize BUFSIZ?

开发者 https://www.devze.com 2023-01-26 06:54 出处:网络
开发者_开发技巧 $ getconf BUFSIZ getconf: Unrecognized variable \'BUFSIZ\' Is there a standard way to determine the value of BUFSIZ from a shell?It\'s easy enough to write a simple C program to outp
开发者_开发技巧
$ getconf BUFSIZ
getconf: Unrecognized variable 'BUFSIZ'

Is there a standard way to determine the value of BUFSIZ from a shell? It's easy enough to write a simple C program to output the value, but I don't quite understand why getconf doesn't do it.


Because BUFSIZ is a somewhat-arbitary configuration parameter for the stdio library, and not a system configuration parameter


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

0

精彩评论

暂无评论...
验证码 换一张
取 消