Annotation of /tags/mkinitrd-6_2_0/libbb/xgethostbyname.c
Parent Directory
|
Revision Log
Revision 994 -
(hide annotations)
(download)
Sun May 30 11:53:18 2010 UTC (14 years ago) by niro
File MIME type: text/plain
File size: 444 byte(s)
Sun May 30 11:53:18 2010 UTC (14 years ago) by niro
File MIME type: text/plain
File size: 444 byte(s)
tagged 'mkinitrd-6_2_0'
1 | niro | 532 | /* vi: set sw=4 ts=4: */ |
2 | /* | ||
3 | * Mini xgethostbyname implementation. | ||
4 | * | ||
5 | * Copyright (C) 2001 Matt Kraai <kraai@alumni.carnegiemellon.edu>. | ||
6 | * | ||
7 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. | ||
8 | */ | ||
9 | |||
10 | niro | 816 | //#include <netdb.h> |
11 | niro | 532 | #include "libbb.h" |
12 | |||
13 | niro | 816 | struct hostent* FAST_FUNC xgethostbyname(const char *name) |
14 | niro | 532 | { |
15 | struct hostent *retval = gethostbyname(name); | ||
16 | if (!retval) | ||
17 | bb_herror_msg_and_die("%s", name); | ||
18 | return retval; | ||
19 | } |