[cs631apue] Question regarding BUFSIZ

Jan Schaumann jschauma at stevens.edu
Thu Oct 20 21:30:11 EDT 2016

mseaton <mseaton at stevens.edu> wrote:

> What exactly is the meaning of BUFSIZ?

BUFSIZ is the size of the buffer used by a number of functions, notably
setbuf(3), for buffered I/O.  The value is system dependent as it
ensures efficient stream I/O.

Think of it as analogous to st_blksize for regular file I/O.


More information about the cs631apue mailing list