minix/lib/nbsd_libc/gen/_errx.c
Gianluca Guida b6cbf7203b Import unmodified NetBSD libc in trunk
This patch imports the unmodified current version of NetBSD libc.
The NetBSD includes are in /nbsd_include, while the libc code itself is 
split between lib/nbsd_libc and common/lib/libc.
2011-02-14 19:36:03 +00:00

30 lines
577 B
C

/* $NetBSD: _errx.c,v 1.11 2005/09/13 01:44:09 christos Exp $ */
/*
* J.T. Conklin, December 12, 1994
* Public Domain
*/
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: _errx.c,v 1.11 2005/09/13 01:44:09 christos Exp $");
#endif /* LIBC_SCCS and not lint */
#if defined(__indr_reference)
__indr_reference(_errx, errx)
#else
#include <stdarg.h>
__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);
}
#endif