Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Jan 2016 16:27:56 +0100
From:      Malcolm Matalka <mmatalka@gmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   Re: Can PIPE_BUF be increased?
Message-ID:  <CAKziXDWHPPMvkypAOxj7krG90aBX3cuNCYyaNDn5PdB=1ng4-Q@mail.gmail.com>
In-Reply-To: <86ziwho1jg.fsf@gmail.com>
References:  <86ziwho1jg.fsf@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Den 7 jan 2016 4:24 em skrev "Malcolm Matalka" <mmatalka@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
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAKziXDWHPPMvkypAOxj7krG90aBX3cuNCYyaNDn5PdB=1ng4-Q>