Can PIPE_BUF be increased?

Malcolm Matalka mmatalka at gmail.com
Thu Jan 7 15:24:40 UTC 2016


As far as I can tell, PIPE_BUF is 512 bytes by default.  Using getconf
and looking at the header files /usr/include.  I'm writing a program
that would benefit from a larger PIPE_BUF, is it possible to change this
value?  It looks like Linux and OS X have a higher default and OS X will
do some magic to increase the size if necessary.  I haven't found
anything indicating the same in FreeBSD.

Thanks,
/Malcolm



More information about the freebsd-hackers mailing list