Postfix3.3.1
msg.h
[詳解]
1 #ifndef _MSG_H_INCLUDED_
2 #define _MSG_H_INCLUDED_
3 
4 /*++
5 /* NAME
6 /* msg 3h
7 /* SUMMARY
8 /* diagnostics interface
9 /* SYNOPSIS
10 /* #include "msg.h"
11 /* DESCRIPTION
12 /* .nf
13 
14 /*
15  * System library.
16  */
17 #include <stdarg.h>
18 #include <time.h>
19 
20 /*
21  * External interface.
22  */
23 typedef void (*MSG_CLEANUP_FN) (void);
24 
25 extern int msg_verbose;
26 
27 extern void PRINTFLIKE(1, 2) msg_info(const char *,...);
28 extern void PRINTFLIKE(1, 2) msg_warn(const char *,...);
29 extern void PRINTFLIKE(1, 2) msg_error(const char *,...);
30 extern NORETURN PRINTFLIKE(1, 2) msg_fatal(const char *,...);
31 extern NORETURN PRINTFLIKE(2, 3) msg_fatal_status(int, const char *,...);
32 extern NORETURN PRINTFLIKE(1, 2) msg_panic(const char *,...);
33 
34 extern void vmsg_info(const char *, va_list);
35 extern void vmsg_warn(const char *, va_list);
36 extern void vmsg_error(const char *, va_list);
37 extern NORETURN vmsg_fatal(const char *, va_list);
38 extern NORETURN vmsg_fatal_status(int, const char *, va_list);
39 extern NORETURN vmsg_panic(const char *, va_list);
40 
41 extern int msg_error_limit(int);
42 extern void msg_error_clear(void);
44 
45 extern void PRINTFLIKE(4, 5) msg_rate_delay(time_t *, int,
46  void PRINTFPTRLIKE(1, 2) (*log_fn) (const char *,...),
47  const char *,...);
48 
49 /* LICENSE
50 /* .ad
51 /* .fi
52 /* The Secure Mailer license must be distributed with this software.
53 /* AUTHOR(S)
54 /* Wietse Venema
55 /* IBM T.J. Watson Research
56 /* P.O. Box 704
57 /* Yorktown Heights, NY 10598, USA
58 /*--*/
59 
60 #endif
void msg_error(const char *fmt,...)
Definition: msg.c:231
#define NORETURN
Definition: sys_defs.h:1583
NORETURN msg_panic(const char *fmt,...)
Definition: msg.c:295
void(* MSG_CLEANUP_FN)(void)
Definition: msg.h:23
void vmsg_warn(const char *, va_list)
Definition: msg.c:224
void msg_rate_delay(time_t *stamp, int delay, void(*log_fn)(const char *,...), const char *fmt,...)
NORETURN vmsg_fatal(const char *, va_list)
Definition: msg.c:258
NORETURN vmsg_panic(const char *, va_list)
Definition: msg.c:304
void msg_warn(const char *fmt,...)
Definition: msg.c:215
int msg_error_limit(int)
Definition: msg.c:327
NORETURN vmsg_fatal_status(int, const char *, va_list)
Definition: msg.c:281
int msg_verbose
Definition: msg.c:177
NORETURN msg_fatal(const char *fmt,...)
Definition: msg.c:249
void void PRINTFPTRLIKE(1, 2)(*log_fn)(const char *
void vmsg_error(const char *, va_list)
Definition: msg.c:240
void PRINTFLIKE(1, 2) msg_info(const char *
void void void NORETURN NORETURN const char NORETURN void vmsg_info(const char *, va_list)
Definition: msg.c:208
NORETURN msg_fatal_status(int status, const char *fmt,...)
Definition: msg.c:272
MSG_CLEANUP_FN msg_cleanup(MSG_CLEANUP_FN)
Definition: msg.c:317
void msg_error_clear(void)
Definition: msg.c:337
void msg_info(const char *fmt,...)
Definition: msg.c:199