* posix.c (scm_gethostname): Use sysconf(_SC_HOST_NAME_MAX) and MAXHOSTNAMELEN when available. It's possible MAXHOSTNAMELEN is enough in practice, but posix specifies HOST_NAME_MAX instead of MAXHOSTNAMELEN, so it seems worthwhile checking that too.