[BACK]Return to log.h CVS log [TXT][DIR] Up to [local] / src / usr.sbin / radiusd

File: [local] / src / usr.sbin / radiusd / log.h (download)

Revision 1.3, Mon Dec 13 18:28:40 2021 UTC (2 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, HEAD
Changes since 1.2: +1 -2 lines

including sys/cdefs.h manually started as a result of netbsd trying to
macro-build a replacement for sccsid, and was done without any concern
for namespace damage.  Unfortunately this practice started infecting
other code as others were unaware they didn't need the file.
ok millert guenther

/*	$OpenBSD: log.h,v 1.3 2021/12/13 18:28:40 deraadt Exp $	*/

#ifndef _LOG_H
#define	_LOG_H	1

#include <stdarg.h>	/* for va_list */

extern int log_debug_use_syslog;

__BEGIN_DECLS
void		 log_init (int);
void		 logit(int, const char *, ...)
		    __attribute__((__format__ (__syslog__, 2, 3)));
void		 vlog(int, const char *, va_list)
		    __attribute__((__format__ (__syslog__, 2, 0)));
void		 log_warn(const char *, ...)
		    __attribute__((__format__ (printf, 1, 2)));
void		 log_warnx(const char *, ...)
		    __attribute__((__format__ (printf, 1, 2)));
void		 log_info(const char *, ...)
		    __attribute__((__format__ (printf, 1, 2)));
void		 log_debug(const char *, ...)
		    __attribute__((__format__ (printf, 1, 2)));
__dead void	 fatal(const char *);
__dead void	 fatalx(const char *);
__END_DECLS

#endif