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