Re: sizeof PIPE_BUF

Johannes Stezenbach <[email protected]>
Newsgroups gmane.linux.lib.dietlibc
Message-ID <[email protected]>
On Sat, Mar 13, 2010 at 07:28:14AM +0100, Felix von Leitner wrote:
> Thus spake Nikola Vladov ([email protected]):
> > As I understand the situation is the follows.  In 2.6 kernels the size
> > of the pipe is 64K.  This means if the pipe (named or unnamed) is open
> > from two processes one can write max 64K and the other can sleep
> > during this time (not reading).
> 
> > The program I attached last time here show this.  This means that
> > we could find the PIPE_SIZE with an user space program!
> 
> I don't quite understand what you are trying to do that needs to know
> the exact value of PIPE_BUF.  My hunch is that if you need to know the
> exact value, you are doing something you are not supposed to :-)

But what about fpathconf(_PC_PIPE_BUF)?


Johannes
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.