s/d/domain/ for name of argument.

Add reference to socket(2) for further information on
domain, type, and protocol arguments.
This commit is contained in:
Michael Kerrisk 2008-08-19 14:34:48 +00:00
parent b184d4184f
commit 2269e87064
1 changed files with 8 additions and 5 deletions

View File

@ -36,7 +36,7 @@
.\" Modified 2002-07-22 by Michael Kerrisk <mtk.manpages@gmail.com>
.\" Modified 2004-06-17 by Michael Kerrisk <mtk.manpages@gmail.com>
.\"
.TH SOCKETPAIR 2 2004-06-17 "Linux" "Linux Programmer's Manual"
.TH SOCKETPAIR 2 2008-08-20 "Linux" "Linux Programmer's Manual"
.SH NAME
socketpair \- create a pair of connected sockets
.SH SYNOPSIS
@ -44,17 +44,20 @@ socketpair \- create a pair of connected sockets
.br
.B #include <sys/socket.h>
.sp
.BI "int socketpair(int " d ", int " type ", int " protocol ", int " sv [2]);
.BI "int socketpair(int " domain ", int " type ", int " protocol \
", int " sv [2]);
.SH DESCRIPTION
The
.BR socketpair ()
call creates an unnamed pair of connected sockets in
the specified domain
.IR d ,
call creates an unnamed pair of connected sockets in the specified
.IR domain ,
of the specified
.IR type ,
and using the optionally specified
.IR protocol .
For further details of these arguments, see
.BR socket (2).
The descriptors used in referencing the new sockets are returned in
.IR sv [0]
and