pipe.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2017-08-13 22:35:43 +02:00
parent ade303d700
commit a12f0259f8
1 changed files with 8 additions and 8 deletions

View File

@ -39,13 +39,13 @@ pipe, pipe2 \- create pipe
.SH SYNOPSIS
.nf
.B #include <unistd.h>
.sp
.PP
.BI "int pipe(int " pipefd "[2]);"
.sp
.PP
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.BR "#include <fcntl.h>" " /* Obtain O_* constant definitions */
.B #include <unistd.h>
.sp
.PP
.BI "int pipe2(int " pipefd "[2], int " flags );
.fi
.SH DESCRIPTION
@ -63,7 +63,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
If
.IR flags
is 0, then
@ -135,7 +135,7 @@ On success, zero is returned.
On error, \-1 is returned, and
.I errno
is set appropriately.
.PP
On Linux (and other systems),
.BR pipe ()
does not modify
@ -178,7 +178,7 @@ version 2.9.
.SH CONFORMING TO
.BR pipe ():
POSIX.1-2001, POSIX.1-2008.
.PP
.BR pipe2 ()
is Linux-specific.
.SH EXAMPLE
@ -198,7 +198,7 @@ command-line argument to the pipe,
and the child reads this string a byte at a time from the pipe
and echoes it on standard output.
.SS Program source
.nf
.EX
#include <sys/types.h>
#include <sys/wait.h>
#include <stdio.h>
@ -247,7 +247,7 @@ main(int argc, char *argv[])
exit(EXIT_SUCCESS);
}
}
.fi
.EE
.SH SEE ALSO
.BR fork (2),
.BR read (2),