[klibc] Add pipe2() system call

pipe2() is like pipe() except we can set the O_CLOEXEC flag via a
second argument.  Unlike pipe(), noone seems to have seemed fit to
create a completely ad hoc calling convention for pipe2(), so we can
just define it in one simple place.  Thank goodness.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2 files changed