err.h revision 1540
1145170Sdas/*-
2145170Sdas * Copyright (c) 1993
3145170Sdas *	The Regents of the University of California.  All rights reserved.
4145170Sdas *
5145170Sdas * Redistribution and use in source and binary forms, with or without
6145170Sdas * modification, are permitted provided that the following conditions
7145170Sdas * are met:
8145170Sdas * 1. Redistributions of source code must retain the above copyright
9145170Sdas *    notice, this list of conditions and the following disclaimer.
10145170Sdas * 2. Redistributions in binary form must reproduce the above copyright
11145170Sdas *    notice, this list of conditions and the following disclaimer in the
12145170Sdas *    documentation and/or other materials provided with the distribution.
13145170Sdas * 3. All advertising materials mentioning features or use of this software
14145170Sdas *    must display the following acknowledgement:
15145170Sdas *	This product includes software developed by the University of
16145170Sdas *	California, Berkeley and its contributors.
17145170Sdas * 4. Neither the name of the University nor the names of its contributors
18145170Sdas *    may be used to endorse or promote products derived from this software
19145170Sdas *    without specific prior written permission.
20145170Sdas *
21145170Sdas * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22145170Sdas * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23145170Sdas * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24145170Sdas * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25145170Sdas * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26145170Sdas * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27145170Sdas * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28145170Sdas * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29145170Sdas * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30145170Sdas * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31145170Sdas * SUCH DAMAGE.
32145170Sdas *
33145170Sdas *	@(#)err.h	8.1 (Berkeley) 6/2/93
34145170Sdas */
35145170Sdas
36145170Sdas#ifndef _ERR_H_
37145170Sdas#define	_ERR_H_
38145170Sdas
39145170Sdas/*
40145170Sdas * Don't use va_list in the err/warn prototypes.   Va_list is typedef'd in two
41145170Sdas * places (<machine/varargs.h> and <machine/stdarg.h>), so if we include one
42145170Sdas * of them here we may collide with the utility's includes.  It's unreasonable
43145170Sdas * for utilities to have to include one of them to include err.h, so we get
44145170Sdas * _BSD_VA_LIST_ from <machine/ansi.h> and use it.
45145170Sdas */
46145170Sdas#include <machine/ansi.h>
47145170Sdas#include <sys/cdefs.h>
48145170Sdas
49145170Sdas__BEGIN_DECLS
50145170Sdas__dead void	err __P((int, const char *, ...));
51145170Sdas__dead void	verr __P((int, const char *, _BSD_VA_LIST_));
52145170Sdas__dead void	errx __P((int, const char *, ...));
53145170Sdas__dead void	verrx __P((int, const char *, _BSD_VA_LIST_));
54145170Sdasvoid		warn __P((const char *, ...));
55145170Sdasvoid		vwarn __P((const char *, _BSD_VA_LIST_));
56145170Sdasvoid		warnx __P((const char *, ...));
57145170Sdasvoid		vwarnx __P((const char *, _BSD_VA_LIST_));
58145170Sdas__END_DECLS
59145170Sdas
60145170Sdas#endif /* !_ERR_H_ */
61145170Sdas