summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/Makefile.inc
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2016-06-22 21:11:27 +0000
committerbrooks <brooks@FreeBSD.org>2016-06-22 21:11:27 +0000
commitecead64b414c307960363fbbb9925c7dd8a20fdd (patch)
tree140928f4a0a736777b084ada0a5c3d1ccc4401e4 /lib/libc/sys/Makefile.inc
parenta8b2bf94923e9d19ec8834944663693093600a6b (diff)
downloadFreeBSD-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.inc2
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 \
OpenPOWER on IntegriCloud