Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / external / ibm-public / postfix / dist / src / util / msg.h
blob368298fbc820cb0f8b13f19c745c43a1205436dd
1 /* $NetBSD$ */
3 #ifndef _MSG_H_INCLUDED_
4 #define _MSG_H_INCLUDED_
6 /*++
7 /* NAME
8 /* msg 3h
9 /* SUMMARY
10 /* diagnostics interface
11 /* SYNOPSIS
12 /* #include "msg.h"
13 /* DESCRIPTION
14 /* .nf
17 * External interface.
19 typedef void (*MSG_CLEANUP_FN) (void);
21 extern int msg_verbose;
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 *,...);
30 extern int msg_error_limit(int);
31 extern void msg_error_clear(void);
32 extern MSG_CLEANUP_FN msg_cleanup(MSG_CLEANUP_FN);
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 /*--*/
45 #endif