Can PIPE_BUF be increased?
Malcolm Matalka
mmatalka at gmail.com
Thu Jan 7 15:27:58 UTC 2016
Den 7 jan 2016 4:24 em skrev "Malcolm Matalka" <mmatalka at gmail.com>:
>
> 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.
>
I realized I might not be clear enough here: I'm trying to increase the
number if bytes i can write to a pipe atomically.
> Thanks,
> /Malcolm
>
More information about the freebsd-hackers
mailing list