mirror of https://github.com/mkerrisk/man-pages
pipe.2: Rearrange SYNOPSIS so that minority version pipe() is at end
A few architectures have a different call signature for pipe(). Since those architectures are the minority, place the prototype at the end of the SYNOPSIS, rather than the start. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
3ab99460db
commit
92a4b09356
17
man2/pipe.2
17
man2/pipe.2
|
@ -40,13 +40,6 @@ pipe, pipe2 \- create pipe
|
||||||
.nf
|
.nf
|
||||||
.B #include <unistd.h>
|
.B #include <unistd.h>
|
||||||
.PP
|
.PP
|
||||||
/* On Alpha, IA-64, MIPS, SuperH, and SPARC/SPARC64; see NOTES */
|
|
||||||
.B struct fd_pair {
|
|
||||||
.B " long fd[2];"
|
|
||||||
.B "};"
|
|
||||||
.B struct fd_pair pipe();
|
|
||||||
.PP
|
|
||||||
/* On all other architectures */
|
|
||||||
.BI "int pipe(int " pipefd "[2]);"
|
.BI "int pipe(int " pipefd "[2]);"
|
||||||
.PP
|
.PP
|
||||||
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
|
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
|
||||||
|
@ -54,6 +47,16 @@ pipe, pipe2 \- create pipe
|
||||||
.B #include <unistd.h>
|
.B #include <unistd.h>
|
||||||
.PP
|
.PP
|
||||||
.BI "int pipe2(int " pipefd "[2], int " flags );
|
.BI "int pipe2(int " pipefd "[2], int " flags );
|
||||||
|
.PP
|
||||||
|
/* On Alpha, IA-64, MIPS, SuperH, and SPARC/SPARC64, pipe() has the
|
||||||
|
following prototype; see NOTES */
|
||||||
|
.PP
|
||||||
|
.B #include <unistd.h>
|
||||||
|
.PP
|
||||||
|
.B struct fd_pair {
|
||||||
|
.B " long fd[2];"
|
||||||
|
.B "};"
|
||||||
|
.B struct fd_pair pipe();
|
||||||
.fi
|
.fi
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
.BR pipe ()
|
.BR pipe ()
|
||||||
|
|
Loading…
Reference in New Issue