Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 06 Dec 2012 14:39:11 +0800
From:      Kevin Lo <kevlo@kevlo.org>
To:        freebsd-net@freebsd.org
Subject:   Review request: fix return value of socket(2) on no family found
Message-ID:  <50C03D8F.3090106@kevlo.org>

next in thread | raw e-mail | index | archive | help
Hi,

Here's the patch mostly from NetBSD to make socket(2) return EAFNOSUPPORT
rather than EPROTONOSUPPORT if the family cannot be found.

http://people.freebsd.org/~kevlo/patch-socket

The man page documents the behavior specified in POSIX.1-2008:

http://pubs.opengroup.org/onlinepubs/9699919799/functions/socket.html

For reference, Linux, NetBSD, and OS X return EAFNOSUPPORT for this.

     Kevin




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