Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Jun 2015 15:09:33 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r283915 - stable/10/lib/libc/sys
Message-ID:  <201506021509.t52F9X3p068121@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Tue Jun  2 15:09:33 2015
New Revision: 283915
URL: https://svnweb.freebsd.org/changeset/base/283915

Log:
  MFC 282416:
  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

Modified:
  stable/10/lib/libc/sys/socketpair.2
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/lib/libc/sys/socketpair.2
==============================================================================
--- stable/10/lib/libc/sys/socketpair.2	Tue Jun  2 15:07:06 2015	(r283914)
+++ stable/10/lib/libc/sys/socketpair.2	Tue Jun  2 15:09:33 2015	(r283915)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506021509.t52F9X3p068121>