2001-05-16 21:10:51 +05:30
|
|
|
/* vi: set sw=4 ts=4: */
|
|
|
|
/*
|
|
|
|
* Mini xgethostbyname implementation.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2001 Matt Kraai <kraai@alumni.carnegiemellon.edu>.
|
|
|
|
*
|
2006-07-10 17:11:19 +05:30
|
|
|
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
|
2001-05-16 21:10:51 +05:30
|
|
|
*/
|
2001-05-16 22:35:03 +05:30
|
|
|
#include "libbb.h"
|
|
|
|
|
2008-06-27 08:22:20 +05:30
|
|
|
struct hostent* FAST_FUNC xgethostbyname(const char *name)
|
2001-05-16 21:10:51 +05:30
|
|
|
{
|
2006-11-22 02:05:22 +05:30
|
|
|
struct hostent *retval = gethostbyname(name);
|
|
|
|
if (!retval)
|
2003-03-19 14:43:01 +05:30
|
|
|
bb_herror_msg_and_die("%s", name);
|
2001-05-16 21:10:51 +05:30
|
|
|
return retval;
|
|
|
|
}
|