1 /*	$NetBSD: msg.h,v 1.1.1.1 2009/06/23 10:09:00 tron Exp $	*/
2 
3 #ifndef _MSG_H_INCLUDED_
4 #define _MSG_H_INCLUDED_
5 
6 /*++
7 /* NAME
8 /*	msg 3h
9 /* SUMMARY
10 /*	diagnostics interface
11 /* SYNOPSIS
12 /*	#include "msg.h"
13 /* DESCRIPTION
14 /*	.nf
15 
16 /*
17  * External interface.
18  */
19 typedef void (*MSG_CLEANUP_FN) (void);
20 
21 extern int msg_verbose;
22 
23 extern void PRINTFLIKE(1, 2) msg_info(const char *,...);
24 extern void PRINTFLIKE(1, 2) msg_warn(const char *,...);
25 extern void PRINTFLIKE(1, 2) msg_error(const char *,...);
26 extern NORETURN PRINTFLIKE(1, 2) msg_fatal(const char *,...);
27 extern NORETURN PRINTFLIKE(2, 3) msg_fatal_status(int, const char *,...);
28 extern NORETURN PRINTFLIKE(1, 2) msg_panic(const char *,...);
29 
30 extern int msg_error_limit(int);
31 extern void msg_error_clear(void);
32 extern MSG_CLEANUP_FN msg_cleanup(MSG_CLEANUP_FN);
33 
34 /* LICENSE
35 /* .ad
36 /* .fi
37 /*	The Secure Mailer license must be distributed with this software.
38 /* AUTHOR(S)
39 /*      Wietse Venema
40 /*      IBM T.J. Watson Research
41 /*      P.O. Box 704
42 /*      Yorktown Heights, NY 10598, USA
43 /*--*/
44 
45 #endif
46