Bug 199491

Summary: man page: should socketpair(fd, ...) change to socketpair(domain, ...) ?
Product: Documentation Reporter: sp <sp55aa>
Component: Books & ArticlesAssignee: freebsd-doc (Nobody) <doc>
Status: Closed FIXED    
Severity: Affects Some People CC: jhb
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description sp 2015-04-17 02:41:15 UTC
man 2 socketpair:

SYNOPSIS:

socketpair(int fd, ...)

fd here makes me confused, should it be domain? I see man page in linux, that use domain.
Comment 1 commit-hook freebsd_committer freebsd_triage 2015-05-04 14:23:41 UTC
A commit references this bug:

Author: jhb
Date: Mon May  4 14:23:32 UTC 2015
New revision: 282416
URL: https://svnweb.freebsd.org/changeset/base/282416

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

Changes:
  head/lib/libc/sys/socketpair.2
Comment 2 John Baldwin freebsd_committer freebsd_triage 2015-05-04 14:47:28 UTC
Committed, thanks!
Comment 3 commit-hook freebsd_committer freebsd_triage 2015-06-02 15:10:27 UTC
A commit references this bug:

Author: jhb
Date: Tue Jun  2 15:09:34 UTC 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

Changes:
_U  stable/10/
  stable/10/lib/libc/sys/socketpair.2