File indexing completed on 2025-01-18 09:54:02
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028 #ifdef LIBBSD_OVERLAY
0029 #include <sys/cdefs.h>
0030 #if __has_include_next(<err.h>)
0031 #include_next <err.h>
0032 #else
0033 #define LIBBSD_NEED_ERR_H_FUNCS
0034 #endif
0035 #else
0036 #include <bsd/sys/cdefs.h>
0037 #if __has_include(<err.h>)
0038 #include <err.h>
0039 #else
0040 #define LIBBSD_NEED_ERR_H_FUNCS
0041 #endif
0042 #endif
0043
0044 #ifndef LIBBSD_ERR_H
0045 #define LIBBSD_ERR_H
0046
0047 #include <stdarg.h>
0048
0049 __BEGIN_DECLS
0050 void vwarnc(int code, const char *format, va_list ap)
0051 __printflike(2, 0);
0052 void warnc(int code, const char *format, ...)
0053 __printflike(2, 3);
0054
0055 void verrc(int status, int code, const char *format, va_list ap)
0056 __printflike(3, 0) __dead2;
0057 void errc(int status, int code, const char *format, ...)
0058 __printflike(3, 4) __dead2;
0059
0060 #ifdef LIBBSD_NEED_ERR_H_FUNCS
0061 void vwarn(const char *format, va_list ap)
0062 __printflike(1, 0);
0063 void vwarnx(const char *format, va_list ap)
0064 __printflike(1, 0);
0065 void warn(const char *format, ...)
0066 __printflike(1, 2);
0067 void warnx(const char *format, ...)
0068 __printflike(1, 2);
0069
0070 void verr(int status, const char *format, va_list ap)
0071 __printflike(2, 0) __dead2;
0072 void verrx(int status, const char *format, va_list ap)
0073 __printflike(2, 0) __dead2;
0074 void err(int status, const char *format, ...)
0075 __printflike(2, 3) __dead2;
0076 void errx(int status, const char *format, ...)
0077 __printflike(2, 3) __dead2;
0078 #endif
0079 __END_DECLS
0080
0081 #endif