Commit | Line | Data |
---|---|---|
c60064b7 | 1 | /*- |
56559b70 KB |
2 | * Copyright (c) 1993 |
3 | * The Regents of the University of California. All rights reserved. | |
c60064b7 KB |
4 | * |
5 | * %sccs.include.redist.c% | |
6 | * | |
56559b70 | 7 | * @(#)err.h 8.1 (Berkeley) %G% |
c60064b7 KB |
8 | */ |
9 | ||
10 | #ifndef _ERR_H_ | |
11 | #define _ERR_H_ | |
12 | ||
13 | /* | |
14 | * Don't use va_list in the err/warn prototypes. Va_list is typedef'd in two | |
15 | * places (<machine/varargs.h> and <machine/stdarg.h>), so if we include one | |
16 | * of them here we may collide with the utility's includes. It's unreasonable | |
17 | * for utilities to have to include one of them to include err.h, so we get | |
18 | * _BSD_VA_LIST_ from <machine/ansi.h> and use it. | |
19 | */ | |
20 | #include <machine/ansi.h> | |
21 | #include <sys/cdefs.h> | |
22 | ||
23 | __BEGIN_DECLS | |
24 | __dead void err __P((int, const char *, ...)); | |
25 | __dead void verr __P((int, const char *, _BSD_VA_LIST_)); | |
26 | __dead void errx __P((int, const char *, ...)); | |
27 | __dead void verrx __P((int, const char *, _BSD_VA_LIST_)); | |
28 | void warn __P((const char *, ...)); | |
29 | void vwarn __P((const char *, _BSD_VA_LIST_)); | |
30 | void warnx __P((const char *, ...)); | |
31 | void vwarnx __P((const char *, _BSD_VA_LIST_)); | |
32 | __END_DECLS | |
33 | ||
34 | #endif /* !_ERR_H_ */ |