2001-05-16 21:10:51 +05:30
|
|
|
/* vi: set sw=4 ts=4: */
|
|
|
|
/*
|
|
|
|
* Utility routines.
|
|
|
|
*
|
2004-03-15 13:59:22 +05:30
|
|
|
* Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
|
2001-05-16 21:10:51 +05:30
|
|
|
*
|
2006-05-20 00:59:19 +05:30
|
|
|
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
|
2001-05-16 21:10:51 +05:30
|
|
|
*/
|
|
|
|
|
|
|
|
#include "libbb.h"
|
|
|
|
|
2006-03-07 02:17:33 +05:30
|
|
|
void bb_herror_msg_and_die(const char *s, ...)
|
2001-05-16 21:10:51 +05:30
|
|
|
{
|
|
|
|
va_list p;
|
|
|
|
|
|
|
|
va_start(p, s);
|
2007-08-16 01:37:53 +05:30
|
|
|
bb_verror_msg(s, p, hstrerror(h_errno));
|
2001-05-16 21:10:51 +05:30
|
|
|
va_end(p);
|
2007-04-11 03:08:30 +05:30
|
|
|
xfunc_die();
|
2001-05-16 21:10:51 +05:30
|
|
|
}
|