gethostname
===========

POSIX specification: http://www.opengroup.org/susv3xsh/gethostname.html

Gnulib module: gethostname

Portability problems fixed by Gnulib:

  * This function is missing on some platforms: mingw.

Portability problems not fixed by Gnulib:

  * If the given buffer is too small for the host name, some implementations fail with EINVAL, instead of returning a truncated host name.