10SN/A/*	$NetBSD: errc.c,v 1.2 2014/06/06 01:41:00 christos Exp $	*/
211166Sdarcy
30SN/A/*-
40SN/A * Copyright (c) 1993
50SN/A *	The Regents of the University of California.  All rights reserved.
60SN/A *
72362SN/A * Redistribution and use in source and binary forms, with or without
80SN/A * modification, are permitted provided that the following conditions
92362SN/A * are met:
100SN/A * 1. Redistributions of source code must retain the above copyright
110SN/A *    notice, this list of conditions and the following disclaimer.
120SN/A * 2. Redistributions in binary form must reproduce the above copyright
130SN/A *    notice, this list of conditions and the following disclaimer in the
140SN/A *    documentation and/or other materials provided with the distribution.
150SN/A * 3. Neither the name of the University nor the names of its contributors
160SN/A *    may be used to endorse or promote products derived from this software
170SN/A *    without specific prior written permission.
180SN/A *
190SN/A * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
200SN/A * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
212362SN/A * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
222362SN/A * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
232362SN/A * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
240SN/A * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
250SN/A * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
260SN/A * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
270SN/A * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
280SN/A * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
290SN/A * SUCH DAMAGE.
300SN/A */
310SN/A
321696SN/A#if HAVE_NBTOOL_CONFIG_H
330SN/A#include "nbtool_config.h"
340SN/A#endif
350SN/A
363285SN/A#include <sys/cdefs.h>
370SN/A#if defined(LIBC_SCCS) && !defined(lint)
383285SN/A__RCSID("$NetBSD: errc.c,v 1.2 2014/06/06 01:41:00 christos Exp $");
393285SN/A#endif /* LIBC_SCCS and not lint */
403285SN/A
413285SN/A#include "namespace.h"
423285SN/A#include <err.h>
433285SN/A#include <stdarg.h>
443285SN/A
450SN/A#ifdef __weak_alias
463285SN/A__weak_alias(errc, _errc)
470SN/A#endif
480SN/A
490SN/A#if !HAVE_ERR_H || !HAVE_DECL_ERRC
500SN/A__dead void
5113629Savstepanerrc(int eval, int code, const char *fmt, ...)
520SN/A{
530SN/A	va_list ap;
540SN/A
550SN/A	va_start(ap, fmt);
560SN/A	verrc(eval, code, fmt, ap);
573285SN/A	va_end(ap);
583285SN/A}
593285SN/A#endif
603285SN/A