| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
#if defined(__WIN32) || defined(_AIX) |
| 11 |
#define NEED_ERR |
| 12 |
#endif |
| 13 |
|
| 14 |
#ifndef NEED_ERR |
| 15 |
#include <err.h> |
| 16 |
#else |
| 17 |
|
| 18 |
#ifndef _ERR_H |
| 19 |
#define _ERR_H |
| 20 |
|
| 21 |
#include <stdarg.h> |
| 22 |
|
| 23 |
void err (int eval, const char *fmt, ...); |
| 24 |
void errx (int eval, const char *fmt, ...); |
| 25 |
void verr (int eval, const char *fmt, va_list args); |
| 26 |
void verrx (int eval, const char *fmt, va_list args); |
| 27 |
|
| 28 |
void warn ( const char *fmt, ...); |
| 29 |
void warnx( const char *fmt, ...); |
| 30 |
void vwarn ( const char *fmt, va_list args); |
| 31 |
void vwarnx( const char *fmt, va_list args); |
| 32 |
|
| 33 |
#endif |
| 34 |
|
| 35 |
#endif |