use HOST_NAME_MAX to size buffers for gethostname(2)