Rich Felker | 39e4853 | 2011-04-05 11:16:49 -0400 | [diff] [blame] | 1 | #ifndef _ERR_H |
| 2 | #define _ERR_H |
| 3 | |
Rich Felker | 695a04f | 2012-09-08 18:16:33 -0400 | [diff] [blame] | 4 | #include <features.h> |
Rich Felker | 39e4853 | 2011-04-05 11:16:49 -0400 | [diff] [blame] | 5 | #include <stdarg.h> |
| 6 | |
| 7 | #ifdef __cplusplus |
| 8 | extern "C" { |
| 9 | #endif |
| 10 | |
| 11 | void warn(const char *, ...); |
| 12 | void vwarn(const char *, va_list); |
| 13 | void warnx(const char *, ...); |
| 14 | void vwarnx(const char *, va_list); |
| 15 | |
Rich Felker | 0c05bd3 | 2012-09-06 23:34:10 -0400 | [diff] [blame] | 16 | _Noreturn void err(int, const char *, ...); |
| 17 | _Noreturn void verr(int, const char *, va_list); |
| 18 | _Noreturn void errx(int, const char *, ...); |
| 19 | _Noreturn void verrx(int, const char *, va_list); |
Rich Felker | 39e4853 | 2011-04-05 11:16:49 -0400 | [diff] [blame] | 20 | |
| 21 | #ifdef __cplusplus |
| 22 | } |
| 23 | #endif |
| 24 | |
| 25 | #endif |