#ifndef LOG_H
#define LOG_H
#include <stdarg.h>
struct syslog_data;
void log_init(int, int);
void log_procinit(const char *);
void log_setverbose(int);
int log_getverbose(void);
void log_warn(const char *, ...)
__attribute__((__format__ (printf, 1, 2)));
void log_warnx(const char *, ...)
__attribute__((__format__ (printf, 1, 2)));
void log_warnx_r(struct syslog_data *, const char *, ...)
__attribute__((__format__ (printf, 2, 3)));
void log_info(const char *, ...)
__attribute__((__format__ (printf, 1, 2)));
void log_info_r(struct syslog_data *, const char *, ...)
__attribute__((__format__ (printf, 2, 3)));
void log_debug(const char *, ...)
__attribute__((__format__ (printf, 1, 2)));
void log_debug_r(struct syslog_data *, const char *, ...)
__attribute__((__format__ (printf, 2, 3)));
void logit(int, const char *, ...)
__attribute__((__format__ (printf, 2, 3)));
void logit_r(struct syslog_data *, int, const char *, ...)
__attribute__((__format__ (printf, 3, 4)));
void vlog(int, const char *, va_list)
__attribute__((__format__ (printf, 2, 0)));
void vlog_r(struct syslog_data *, int, const char *, va_list)
__attribute__((__format__ (printf, 3, 0)));
__dead void fatal(const char *, ...)
__attribute__((__format__ (printf, 1, 2)));
__dead void fatalx(const char *, ...)
__attribute__((__format__ (printf, 1, 2)));
#endif