Jilles Tjoelker dc570d5e56 Add pipe2() system call.
The pipe2() function is similar to pipe() but allows setting FD_CLOEXEC and
O_NONBLOCK (on both sides) as part of the function.

If p points to two writable ints, pipe2(p, 0) is equivalent to pipe(p).

If the pointer is not valid, behaviour differs: pipe2() writes into the
array from the kernel like socketpair() does, while pipe() writes into the
array from an architecture-specific assembler wrapper.

Reviewed by:	kan, kib
2013-05-01 22:42:42 +00:00
..
2012-05-12 07:52:45 +00:00
2013-03-02 00:53:12 +00:00
2013-04-14 11:44:47 +00:00
2012-05-13 14:16:04 +00:00
2013-04-21 10:30:19 +00:00
2013-05-01 22:42:42 +00:00