From nobody@FreeBSD.org  Sun Oct  5 23:29:46 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 98F581065687
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  5 Oct 2008 23:29:46 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 6EBBD8FC1F
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  5 Oct 2008 23:29:46 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id m95NTk3w065137
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 5 Oct 2008 23:29:46 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id m95NTkD4065133;
	Sun, 5 Oct 2008 23:29:46 GMT
	(envelope-from nobody)
Message-Id: <200810052329.m95NTkD4065133@www.freebsd.org>
Date: Sun, 5 Oct 2008 23:29:46 GMT
From: Nate Eldredge <neldredge@math.ucsd.edu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: socket(2) man page should explain that protocol can be 0
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         127890
>Category:       docs
>Synopsis:       socket(2) man page should explain that protocol can be 0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    trhodes
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 05 23:30:05 UTC 2008
>Closed-Date:    Sat Jul 21 15:49:10 UTC 2012
>Last-Modified:  Sat Jul 21 15:49:10 UTC 2012
>Originator:     Nate Eldredge
>Release:        7.0-RELEASE-p4
>Organization:
>Environment:
FreeBSD vulcan.lan 7.0-RELEASE-p4 FreeBSD 7.0-RELEASE-p4 #13: Wed Sep  3 16:13:10 PDT 2008     nate@vulcan.lan:/usr/obj/usr/src/sys/VULCAN  amd64

>Description:
The man page for socket(2) should explain that the protocol argument can be set to 0 in the common situation where there is only one protocol for the given protocol family and type.
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: trhodes 
State-Changed-When: Mon Jan 5 12:19:41 UTC 2009 
State-Changed-Why:  
Fix committed to CURRENT, thanks! 


Responsible-Changed-From-To: freebsd-doc->trhodes 
Responsible-Changed-By: trhodes 
Responsible-Changed-When: Mon Jan 5 12:19:41 UTC 2009 
Responsible-Changed-Why:  
Over to me, MFC reminder. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=127890 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/127890: commit references a PR
Date: Mon,  5 Jan 2009 12:19:01 +0000 (UTC)

 Author: trhodes
 Date: Mon Jan  5 12:18:46 2009
 New Revision: 186769
 URL: http://svn.freebsd.org/changeset/base/186769
 
 Log:
   Note that the protocol argument can be set to 0.
   
   PR:		127890
   Reviewed by:	rwatson
 
 Modified:
   head/lib/libc/sys/socket.2
 
 Modified: head/lib/libc/sys/socket.2
 ==============================================================================
 --- head/lib/libc/sys/socket.2	Mon Jan  5 12:10:22 2009	(r186768)
 +++ head/lib/libc/sys/socket.2	Mon Jan  5 12:18:46 2009	(r186769)
 @@ -28,7 +28,7 @@
  .\"     From: @(#)socket.2	8.1 (Berkeley) 6/4/93
  .\" $FreeBSD$
  .\"
 -.Dd August 4, 2008
 +.Dd January 5, 2009
  .Dt SOCKET 2
  .Os
  .Sh NAME
 @@ -131,6 +131,11 @@ in which communication
  is to take place; see
  .Xr protocols 5 .
  .Pp
 +The
 +.Fa protocol
 +argument may be set to zero (0) to request the default
 +implementation of a socket type for the protocol, if any.
 +.Pp
  Sockets of type
  .Dv SOCK_STREAM
  are full-duplex byte streams, similar
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: trhodes 
State-Changed-When: Sat Jul 21 15:48:54 UTC 2012 
State-Changed-Why:  
Changes have been merged for awhile now, thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=127890 
>Unformatted:
