name A pointer to a null-terminated character string containing the name or an alias of the host being sought. ret A pointer to a hostent struct which will be filled in on success. buffer A pointer to a temporary work buffer. buflen The size of buffer. result After a successful call, result will point to the result. In case of an error or if no entry is found, result will be NULL. h_errnop A pointer to a variable in which to store error numbers.