00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifndef _ABLE_CLIB_ERR_H
00031 #define _ABLE_CLIB_ERR_H 1
00032
00033 #include <stdarg.h>
00034
00045 void err(int eval, const char *fmt, ...)
00046 __attribute__((__format__ (printf, 2, 3)));
00047
00059 void verr(int eval, const char *fmt, va_list ap)
00060 __attribute__((__format__ (printf, 2, 0)));
00061
00072 void errx(int, const char *, ...)
00073 __attribute__((__format__ (printf, 2, 3)));
00074
00086 void verrx(int, const char *, va_list ap)
00087 __attribute__((__format__ (printf, 2, 0)));
00088
00097 void warn(const char *fmt, ...)
00098 __attribute__((__format__ (printf, 1, 2)));
00099
00109 void vwarn(const char *fmt, va_list ap)
00110 __attribute__((__format__ (printf, 1, 0)));
00111
00120 void warnx(const char *fmt, ...)
00121 __attribute__((__format__ (printf, 1, 2)));
00122
00132 void vwarnx(const char *fmt, va_list ap)
00133 __attribute__((__format__ (printf, 1, 0)));
00134
00135
00136
00137
00138 void _err(int, const char *, ...)
00139 __attribute__((__format__ (printf, 2, 3)));
00140
00141 void _verr(int, const char *, va_list ap)
00142 __attribute__((__format__ (printf, 2, 0)));
00143
00144 void _errx(int, const char *, ...)
00145 __attribute__((__format__ (printf, 2, 3)));
00146
00147 void _verrx(int, const char *, va_list ap)
00148 __attribute__((__format__ (printf, 2, 0)));
00149
00150 void _warn(const char *, ...)
00151 __attribute__((__format__ (printf, 1, 2)));
00152
00153 void _vwarn(const char *, va_list ap)
00154 __attribute__((__format__ (printf, 1, 0)));
00155
00156 void _warnx(const char *, ...)
00157 __attribute__((__format__ (printf, 1, 2)));
00158
00159 void _vwarnx(const char *, va_list ap)
00160 __attribute__((__format__ (printf, 1, 0)));
00161
00162 #endif