From owner-svn-src-head@FreeBSD.ORG Fri Dec 7 02:26:09 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BC3F2EC6; Fri, 7 Dec 2012 02:26:09 +0000 (UTC) (envelope-from kevlo@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 882068FC13; Fri, 7 Dec 2012 02:26:09 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qB72Q9OT086304; Fri, 7 Dec 2012 02:26:09 GMT (envelope-from kevlo@svn.freebsd.org) Received: (from kevlo@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qB72Q99U086303; Fri, 7 Dec 2012 02:26:09 GMT (envelope-from kevlo@svn.freebsd.org) Message-Id: <201212070226.qB72Q99U086303@svn.freebsd.org> From: Kevin Lo Date: Fri, 7 Dec 2012 02:26:09 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r243966 - head/lib/libc/sys X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Dec 2012 02:26:09 -0000 Author: kevlo Date: Fri Dec 7 02:26:08 2012 New Revision: 243966 URL: http://svnweb.freebsd.org/changeset/base/243966 Log: Document that socket(2) may fail with EAFNOSUPPORT if the family cannot be found. Reviewed by: glebius Obtained from: NetBSD Modified: head/lib/libc/sys/socket.2 Modified: head/lib/libc/sys/socket.2 ============================================================================== --- head/lib/libc/sys/socket.2 Fri Dec 7 02:22:48 2012 (r243965) +++ head/lib/libc/sys/socket.2 Fri Dec 7 02:26:08 2012 (r243966) @@ -28,7 +28,7 @@ .\" From: @(#)socket.2 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd January 5, 2009 +.Dd December 7, 2012 .Dt SOCKET 2 .Os .Sh NAME @@ -248,21 +248,26 @@ The .Fn socket system call fails if: .Bl -tag -width Er -.It Bq Er EPROTONOSUPPORT -The protocol type or the specified protocol is not supported -within this domain. +.It Bq Er EACCES +Permission to create a socket of the specified type and/or protocol +is denied. +.It Bq Er EAFNOSUPPORT +The address family (domain) is not supported or the +specified domain is not supported by this protocol family. .It Bq Er EMFILE The per-process descriptor table is full. .It Bq Er ENFILE The system file table is full. -.It Bq Er EACCES -Permission to create a socket of the specified type and/or protocol -is denied. .It Bq Er ENOBUFS Insufficient buffer space is available. The socket cannot be created until sufficient resources are freed. .It Bq Er EPERM User has insufficient privileges to carry out the requested operation. +.It Bq Er EPROTONOSUPPORT +The protocol type or the specified protocol is not supported +within this domain. +.It Bq Er EPROTOTYPE +The socket type is not supported by the protocol. .El .Sh SEE ALSO .Xr accept 2 ,