2005-09-13 05:44:08 +04:00
|
|
|
/* $NetBSD: _errx.c,v 1.11 2005/09/13 01:44:09 christos Exp $ */
|
1998-01-09 06:15:09 +03:00
|
|
|
|
1994-12-13 01:41:50 +03:00
|
|
|
/*
|
|
|
|
* J.T. Conklin, December 12, 1994
|
|
|
|
* Public Domain
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <sys/cdefs.h>
|
2005-06-12 09:34:34 +04:00
|
|
|
#if defined(LIBC_SCCS) && !defined(lint)
|
2005-09-13 05:44:08 +04:00
|
|
|
__RCSID("$NetBSD: _errx.c,v 1.11 2005/09/13 01:44:09 christos Exp $");
|
2005-06-12 09:34:34 +04:00
|
|
|
#endif /* LIBC_SCCS and not lint */
|
1994-12-13 01:41:50 +03:00
|
|
|
|
2005-09-13 05:44:08 +04:00
|
|
|
#if defined(__indr_reference)
|
1997-11-05 02:52:05 +03:00
|
|
|
__indr_reference(_errx, errx)
|
1996-04-16 03:44:53 +04:00
|
|
|
#else
|
|
|
|
|
2005-09-13 05:44:08 +04:00
|
|
|
#include <stdarg.h>
|
1996-04-16 03:44:53 +04:00
|
|
|
|
2005-09-13 05:44:08 +04:00
|
|
|
__dead void _verrx(int eval, const char *, _BSD_VA_LIST_);
|
|
|
|
|
|
|
|
__dead void
|
|
|
|
errx(int eval, const char *fmt, ...)
|
|
|
|
{
|
|
|
|
va_list ap;
|
|
|
|
|
|
|
|
va_start(ap, fmt);
|
|
|
|
_verrx(eval, fmt, ap);
|
|
|
|
va_end(ap);
|
|
|
|
}
|
1994-12-18 14:32:37 +03:00
|
|
|
#endif
|