Subject: Re: follow-up: discrepancy with POSIX

From: Ulrich Drepper <[email-masked]>
Date: Wed, 19 Sep 2007 10:27:10 -0700

Ulrich Drepper wrote:
> Yes, but for IPv4/6 it's not an issue.  Some implementations might
> handle all-zeros and the spec _currently_ calls for it.  In this case an
> alignment would be good.

Searching the web shows up this:

http://developer.apple.com/documentation/Darwin/Reference/ManPages/man2/connect.2.html

  Datagram sockets may dissolve the association by connecting to an
  invalid address, such as a null address or an address with the address
  family set to AF_UNSPEC (the error EAFNOSUPPORT will be harmlessly
  returned).

I.e., at least Apple implements both variants.

- --
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖