Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does getconf not recognize BUFSIZ?

Tags:

c

linux

$ 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.

like image 246
William Pursell Avatar asked Oct 21 '25 19:10

William Pursell


1 Answers

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

like image 93
The Archetypal Paul Avatar answered Oct 24 '25 08:10

The Archetypal Paul



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!