getlogin_r
POSIX specification:
http://www.opengroup.org/onlinepubs/9699919799/functions/getlogin_r.html
Gnulib module: getlogin_r
Portability problems fixed by Gnulib:
_REENTRANT is defined,
on some platforms:
HP-UX 11.
ERANGE, when the buffer is not large enough, on some platforms:
OSF/1 5.1.
Portability problems not fixed by Gnulib:
_POSIX_PTHREAD_SEMANTICS is not defined).
EINVAL instead of ERANGE when
the second argument is zero on some platforms:
HP-UX 11.31.