summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/Makefile.inc
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2013-05-01 22:42:42 +0000
committerjilles <jilles@FreeBSD.org>2013-05-01 22:42:42 +0000
commit16772c421df1aaea1f268ea43b53e1b21a40be99 (patch)
tree69471087fd1663f8e867f7e487ae78525a10941b /lib/libc/sys/Makefile.inc
parenta7b320131e8beb106b450826aa74a2797328cd8b (diff)
downloadFreeBSD-src-16772c421df1aaea1f268ea43b53e1b21a40be99.zip
FreeBSD-src-16772c421df1aaea1f268ea43b53e1b21a40be99.tar.gz
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
Diffstat (limited to 'lib/libc/sys/Makefile.inc')
-rw-r--r--lib/libc/sys/Makefile.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/sys/Makefile.inc b/lib/libc/sys/Makefile.inc
index 105f469..8e918bf 100644
--- a/lib/libc/sys/Makefile.inc
+++ b/lib/libc/sys/Makefile.inc
@@ -352,6 +352,7 @@ MLINKS+=pathconf.2 lpathconf.2
MLINKS+=pdfork.2 pdgetpid.2\
pdfork.2 pdkill.2 \
pdfork.2 pdwait4.2
+MLINKS+=pipe.2 pipe2.2
MLINKS+=read.2 pread.2 \
read.2 preadv.2 \
read.2 readv.2
OpenPOWER on IntegriCloud