gethostinfo
hostres = gethostinfo(hostname, 1);
static struct addrinfo *gethostinfo(const char *, int);