From 5e1a84ab74d5e97582427f016f291a8c11e66f99 Mon Sep 17 00:00:00 2001 From: jutteau Date: Fri, 11 May 2007 18:10:19 +0000 Subject: Completion du script de mise à jour de la pc-104 : * Ajout des sources de busybox dans ./conf/busybox/ * Ajout d'un fichier réclamé par les script dans ./conf/busybox.links --- i/pc104/initrd/conf/busybox/libbb/xgethostbyname.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 i/pc104/initrd/conf/busybox/libbb/xgethostbyname.c (limited to 'i/pc104/initrd/conf/busybox/libbb/xgethostbyname.c') diff --git a/i/pc104/initrd/conf/busybox/libbb/xgethostbyname.c b/i/pc104/initrd/conf/busybox/libbb/xgethostbyname.c new file mode 100644 index 0000000..c3158c3 --- /dev/null +++ b/i/pc104/initrd/conf/busybox/libbb/xgethostbyname.c @@ -0,0 +1,19 @@ +/* vi: set sw=4 ts=4: */ +/* + * Mini xgethostbyname implementation. + * + * Copyright (C) 2001 Matt Kraai . + * + * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. + */ + +#include +#include "libbb.h" + +struct hostent *xgethostbyname(const char *name) +{ + struct hostent *retval = gethostbyname(name); + if (!retval) + bb_herror_msg_and_die("%s", name); + return retval; +} -- cgit v1.2.3