Messages in this thread | | | Date | Thu, 2 Jul 2009 17:13:09 +0800 | From | Amerigo Wang <> | Subject | Re: PROPOSAL: extend pipe() to support NULL argument. |
| |
On Thu, Jul 02, 2009 at 03:36:41PM +0800, Changli Gao wrote: >Linux also uses pipes as references of kernel buffers. In that case, >only one RW file descriptor will be enough, instead of inventing a new >system call, I think extending the existing pipe() is a better idea. >If pipe is passed with a NULL pointer, one RW file descriptor is >returned. I have checkd the other architectures except of x86, it >seems that not all of the platforms implement this system call with >the prototype: int pipe(int fd[2]); and changing glibc is needed. Is >it possible to extend pipe() in this way? >
Why? Why do you need this feature?
| |