Re: sizeof PIPE_BUF
Felix von Leitner <[email protected]>
| Newsgroups | gmane.linux.lib.dietlibc |
|---|---|
| Message-ID | <[email protected]> |
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 :-) Are you trying to achieve non-blocking behavior with splice() without actually setting the fd to non-blocking? Felix