getsockname
===========

POSIX specification:
 http://www.opengroup.org/onlinepubs/9699919799/functions/getsockname.html

Gnulib module: getsockname

Portability problems fixed by Gnulib:

  * On Windows platforms (excluding Cygwin), error codes for getsockname are not placed in errno, and WSAGetLastError must be used instead.

Portability problems not fixed by Gnulib:

  * Some platforms don't have a socklen_t type; in this case this function's third argument type is int *.