1 /* vi: set sw=4 ts=4: */
3 * Mini xgethostbyname implementation.
5 * Copyright (C) 2001 Matt Kraai <kraai@alumni.carnegiemellon.edu>.
7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
14 struct hostent *xgethostbyname(const char *name)
16 struct hostent *retval;
18 if ((retval = gethostbyname(name)) == NULL)
19 bb_herror_msg_and_die("%s", name);