[patch] pipe2

Konstantin Belousov kostikbel at gmail.com
Mon Apr 22 17:31:23 UTC 2013


On Sun, Apr 21, 2013 at 11:02:43PM +0200, Jilles Tjoelker wrote:
> On Sat, Apr 20, 2013 at 12:48:39AM +0200, Jilles Tjoelker wrote:
> > I'm also working on pipe2() (using linuxulator work) and dup3() (patch
> > from Jukka A. Ukkonen).
> 
> This is an implementation of pipe2. As with the accept4 patch, make
> sysent needs to be run in sys/kern and sys/compat/freebsd32.
> 
> As a bonus, new architectures might implement pipe(p) as pipe2(p, 0)
> avoiding the need for assembler (but behaviour is different if the
> pointer is invalid).

I do not see anything wrong with the patch.  That said, I prefer the
pipe(2) approach of delegating the access to the usermode memory to
usermode, which avoids the need of the calls to kern_close().
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20130422/e6e016aa/attachment.sig>


More information about the freebsd-hackers mailing list