summaryrefslogtreecommitdiffstats
path: root/upstream/opensuse-tumbleweed/man2/pipe.2
diff options
context:
space:
mode:
Diffstat (limited to 'upstream/opensuse-tumbleweed/man2/pipe.2')
-rw-r--r--upstream/opensuse-tumbleweed/man2/pipe.219
1 files changed, 10 insertions, 9 deletions
diff --git a/upstream/opensuse-tumbleweed/man2/pipe.2 b/upstream/opensuse-tumbleweed/man2/pipe.2
index d8142f92..ee2189a0 100644
--- a/upstream/opensuse-tumbleweed/man2/pipe.2
+++ b/upstream/opensuse-tumbleweed/man2/pipe.2
@@ -13,7 +13,7 @@
.\" to EXAMPLE text.
.\" 2008-10-10, mtk: add description of pipe2()
.\"
-.TH pipe 2 2023-07-30 "Linux man-pages 6.05.01"
+.TH pipe 2 2024-05-02 "Linux man-pages (unreleased)"
.SH NAME
pipe, pipe2 \- create pipe
.SH LIBRARY
@@ -22,20 +22,20 @@ Standard C library
.SH SYNOPSIS
.nf
.B #include <unistd.h>
-.PP
+.P
.BI "int pipe(int " pipefd [2]);
-.PP
+.P
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.BR "#include <fcntl.h>" " /* Definition of " O_* " constants */"
.B #include <unistd.h>
-.PP
+.P
.BI "int pipe2(int " pipefd "[2], int " flags );
-.PP
+.P
/* On Alpha, IA-64, MIPS, SuperH, and SPARC/SPARC64, pipe() has the
following prototype; see VERSIONS */
-.PP
+.P
.B #include <unistd.h>
-.PP
+.P
.B struct fd_pair {
.B " long fd[2];"
.B "};"
@@ -56,7 +56,7 @@ Data written to the write end of the pipe is buffered by the kernel
until it is read from the read end of the pipe.
For further details, see
.BR pipe (7).
-.PP
+.P
If
.I flags
is 0, then
@@ -148,7 +148,7 @@ On error, \-1 is returned,
is set to indicate the error, and
.I pipefd
is left unchanged.
-.PP
+.P
On Linux (and other systems),
.BR pipe ()
does not modify
@@ -246,6 +246,7 @@ and echoes it on standard output.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
\&