11553Srgrimes/*	$NetBSD: errx.c,v 1.2 2017/01/28 21:31:50 christos Exp $	*/
21553Srgrimes
31553Srgrimes/*
41553Srgrimes * Copyright (c) 1995, 1996, 1997 Kungliga Tekniska H��gskolan
51553Srgrimes * (Royal Institute of Technology, Stockholm, Sweden).
61553Srgrimes * All rights reserved.
71553Srgrimes *
81553Srgrimes * Redistribution and use in source and binary forms, with or without
91553Srgrimes * modification, are permitted provided that the following conditions
101553Srgrimes * are met:
111553Srgrimes *
121553Srgrimes * 1. Redistributions of source code must retain the above copyright
131553Srgrimes *    notice, this list of conditions and the following disclaimer.
141553Srgrimes *
151553Srgrimes * 2. Redistributions in binary form must reproduce the above copyright
161553Srgrimes *    notice, this list of conditions and the following disclaimer in the
171553Srgrimes *    documentation and/or other materials provided with the distribution.
181553Srgrimes *
191553Srgrimes * 3. Neither the name of the Institute nor the names of its contributors
201553Srgrimes *    may be used to endorse or promote products derived from this software
211553Srgrimes *    without specific prior written permission.
221553Srgrimes *
231553Srgrimes * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
241553Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
251553Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
261553Srgrimes * ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
271553Srgrimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
281553Srgrimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
291553Srgrimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30133249Simp * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
311553Srgrimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
321553Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
331553Srgrimes * SUCH DAMAGE.
341553Srgrimes */
351553Srgrimes
361553Srgrimes#include <config.h>
37
38#include "err.h"
39
40ROKEN_LIB_FUNCTION void ROKEN_LIB_CALL
41errx(int eval, const char *fmt, ...)
42{
43  va_list ap;
44  va_start(ap, fmt);
45  verrx(eval, fmt, ap);
46  va_end(ap);
47}
48