2011-02-14 20:36:03 +01:00
|
|
|
/* $NetBSD: _warn.c,v 1.10 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: _warn.c,v 1.10 2005/09/13 01:44:09 christos Exp $");
|
|
|
|
#endif /* LIBC_SCCS and not lint */
|
|
|
|
|
|
|
|
#if defined(__indr_reference)
|
|
|
|
__indr_reference(_warn, warn)
|
|
|
|
#else
|
2011-02-15 17:31:16 +01:00
|
|
|
|
2011-02-14 20:36:03 +01:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
void _vwarn(const char *, _BSD_VA_LIST_);
|
|
|
|
|
|
|
|
void
|
|
|
|
warn(const char *fmt, ...)
|
|
|
|
{
|
|
|
|
va_list ap;
|
|
|
|
|
|
|
|
va_start(ap, fmt);
|
2011-02-15 17:31:16 +01:00
|
|
|
#ifdef __minix
|
2011-02-15 13:19:40 +01:00
|
|
|
_vwarn(fmt, ap);
|
2011-02-15 17:31:16 +01:00
|
|
|
#else
|
|
|
|
_vwarn(eval, fmt, ap);
|
|
|
|
#endif
|
2011-02-14 20:36:03 +01:00
|
|
|
va_end(ap);
|
|
|
|
}
|
|
|
|
#endif
|