diff options
author | brooks <brooks@FreeBSD.org> | 2016-06-22 21:11:27 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2016-06-22 21:11:27 +0000 |
commit | ecead64b414c307960363fbbb9925c7dd8a20fdd (patch) | |
tree | 140928f4a0a736777b084ada0a5c3d1ccc4401e4 /lib/libc/sys/Makefile.inc | |
parent | a8b2bf94923e9d19ec8834944663693093600a6b (diff) | |
download | FreeBSD-src-ecead64b414c307960363fbbb9925c7dd8a20fdd.zip FreeBSD-src-ecead64b414c307960363fbbb9925c7dd8a20fdd.tar.gz |
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
Diffstat (limited to 'lib/libc/sys/Makefile.inc')
-rw-r--r-- | lib/libc/sys/Makefile.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/sys/Makefile.inc b/lib/libc/sys/Makefile.inc index 64e18b8..a2be249 100644 --- a/lib/libc/sys/Makefile.inc +++ b/lib/libc/sys/Makefile.inc @@ -28,6 +28,8 @@ SRCS+= futimens.c utimensat.c NOASM+= futimens.o utimensat.o PSEUDO+= _futimens.o _utimensat.o +SRCS+= pipe.c + INTERPOSED = \ accept \ accept4 \ |