diff options
author | jhb <jhb@FreeBSD.org> | 2015-05-04 14:23:31 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2015-05-04 14:23:31 +0000 |
commit | f3e222f33fd6bf065011201b7460e2da476f43f7 (patch) | |
tree | 0ef647ff81fa35e8f0ec675117181f287073f6c3 /lib | |
parent | 6c91165dc2aa9a5fe6574591fa7bab9764cdd0bc (diff) | |
download | FreeBSD-src-f3e222f33fd6bf065011201b7460e2da476f43f7.zip FreeBSD-src-f3e222f33fd6bf065011201b7460e2da476f43f7.tar.gz |
Partially revert r255486, the first argument to socketpair() is a socket
domain, not a file descriptor. Use 'domain' instead of the original 'd'
for this argument to match socket(2).
PR: 199491
Reported by: sp55aa@qq.com
MFC after: 1 week
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/sys/socketpair.2 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/sys/socketpair.2 b/lib/libc/sys/socketpair.2 index d3a47eb..b15553a 100644 --- a/lib/libc/sys/socketpair.2 +++ b/lib/libc/sys/socketpair.2 @@ -28,7 +28,7 @@ .\" @(#)socketpair.2 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd September 11, 2013 +.Dd May 4, 2015 .Dt SOCKETPAIR 2 .Os .Sh NAME @@ -40,13 +40,13 @@ .In sys/types.h .In sys/socket.h .Ft int -.Fn socketpair "int fd" "int type" "int protocol" "int *sv" +.Fn socketpair "int domain" "int type" "int protocol" "int *sv" .Sh DESCRIPTION The .Fn socketpair system call creates an unnamed pair of connected sockets in -the specified domain -.Fa fd , +the specified communications +.Fa domain , of the specified .Fa type , and using the optionally specified |