HomeFreeBSD

Replace use of the pipe(2) system call with pipe2(2) with a zero flags

Description

Replace use of the pipe(2) system call with pipe2(2) with a zero flags
value.

This eliminates the need for machine dependant assembly wrappers for
pipe(2).

It also make passing an invalid address to pipe(2) return EFAULT rather
than triggering a segfault. Document this behavior (which was already
true for pipe2(2), but undocumented).

Reviewed by: andrew
Approved by: re (gjb)
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D6815

Details

Provenance
brooksAuthored on
Reviewer
andrew
Differential Revision
D6815: Replace libc's call to pipe(2) with pipe2(2).
Parents
rS302091: Do not complete pending gmirror BIOs when tearing down the provider.
Branches
Unknown
Tags
Unknown