1*d362b749Svk199839 /* 2*d362b749Svk199839 * CDDL HEADER START 3*d362b749Svk199839 * 4*d362b749Svk199839 * The contents of this file are subject to the terms of the 5*d362b749Svk199839 * Common Development and Distribution License (the "License"). 6*d362b749Svk199839 * You may not use this file except in compliance with the License. 7*d362b749Svk199839 * 8*d362b749Svk199839 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*d362b749Svk199839 * or http://www.opensolaris.org/os/licensing. 10*d362b749Svk199839 * See the License for the specific language governing permissions 11*d362b749Svk199839 * and limitations under the License. 12*d362b749Svk199839 * 13*d362b749Svk199839 * When distributing Covered Code, include this CDDL HEADER in each 14*d362b749Svk199839 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*d362b749Svk199839 * If applicable, add the following below this CDDL HEADER, with the 16*d362b749Svk199839 * fields enclosed by brackets "[]" replaced with your own identifying 17*d362b749Svk199839 * information: Portions Copyright [yyyy] [name of copyright owner] 18*d362b749Svk199839 * 19*d362b749Svk199839 * CDDL HEADER END 20*d362b749Svk199839 */ 21*d362b749Svk199839 /* 22*d362b749Svk199839 * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 23*d362b749Svk199839 * Use is subject to license terms. 24*d362b749Svk199839 */ 25*d362b749Svk199839 26*d362b749Svk199839 #ifndef _ERR_H 27*d362b749Svk199839 #define _ERR_H 28*d362b749Svk199839 29*d362b749Svk199839 #pragma ident "%Z%%M% %I% %E% SMI" 30*d362b749Svk199839 31*d362b749Svk199839 #ifdef __cplusplus 32*d362b749Svk199839 extern "C" { 33*d362b749Svk199839 #endif 34*d362b749Svk199839 35*d362b749Svk199839 #include <stdio.h> 36*d362b749Svk199839 #include <stdarg.h> 37*d362b749Svk199839 38*d362b749Svk199839 /* Program exit and warning calls */ 39*d362b749Svk199839 void err(int, const char *, ...); 40*d362b749Svk199839 void verr(int, const char *, va_list); 41*d362b749Svk199839 void errx(int, const char *, ...); 42*d362b749Svk199839 void verrx(int, const char *, va_list); 43*d362b749Svk199839 void warn(const char *, ...); 44*d362b749Svk199839 void vwarn(const char *, va_list); 45*d362b749Svk199839 void warnx(const char *, ...); 46*d362b749Svk199839 void vwarnx(const char *, va_list); 47*d362b749Svk199839 48*d362b749Svk199839 #ifdef __cplusplus 49*d362b749Svk199839 } 50*d362b749Svk199839 #endif 51*d362b749Svk199839 52*d362b749Svk199839 #endif /* _ERR_H */ 53