acl  3.5.3.0
acl_single_params.h
浏览该文件的文档.
1 #ifndef ACL_SINGLE_PARAMS_INCLUDE_H
2 #define ACL_SINGLE_PARAMS_INCLUDE_H
3 
4 #include "../stdlib/acl_define.h"
5 
6 #ifndef ACL_CLIENT_ONLY
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 #ifdef ACL_UNIX
13 
14 extern int acl_var_single_pid; /* get by call getpid() */
15 extern char *acl_var_single_procname; /* get from single_main()'s argv[0] */
16 extern char *acl_var_single_log_file; /* get from getenv("LOG") */
17 
18 #define ACL_VAR_SINGLE_BUF_SIZE "single_buf_size"
19 #define ACL_DEF_SINGLE_BUF_SIZE 81920
20 extern int acl_var_single_buf_size;
21 
22 #define ACL_VAR_SINGLE_RW_TIMEOUT "single_rw_timeout"
23 #define ACL_DEF_SINGLE_RW_TIMEOUT 30
24 extern int acl_var_single_rw_timeout;
25 
26 #define ACL_VAR_SINGLE_IN_FLOW_DELAY "single_in_flow_delay"
27 #define ACL_DEF_SINGLE_IN_FLOW_DELAY 1
28 extern int acl_var_single_in_flow_delay;
29 
30 /*
31  * Any subsystem: default amount of time a mail subsystem waits for a client
32  * connection (except queue manager).
33  */
34 #define ACL_VAR_SINGLE_IDLE_LIMIT "single_idle_limit"
35 #define ACL_DEF_SINGLE_IDLE_LIMIT 0
36 extern int acl_var_single_idle_limit;
37 
38 #define ACL_VAR_SINGLE_QUEUE_DIR "single_queue_dir"
39 #define ACL_DEF_SINGLE_QUEUE_DIR "/opt/acl_master/var/queue"
40 extern char *acl_var_single_queue_dir;
41 
42 #define ACL_VAR_SINGLE_PID_DIR "single_pid_dir"
43 #define ACL_DEF_SINGLE_PID_DIR "/opt/acl_master/var/pid"
44 extern char *acl_var_single_pid_dir;
45 
46 #define ACL_VAR_SINGLE_OWNER "single_owner"
47 #define ACL_DEF_SINGLE_OWNER "root"
48 extern char *acl_var_single_owner;
49 
50 #define ACL_VAR_SINGLE_DELAY_SEC "single_delay_sec"
51 #define ACL_DEF_SINGLE_DELAY_SEC 1
52 extern int acl_var_single_delay_sec;
53 
54 #define ACL_VAR_SINGLE_DELAY_USEC "single_delay_usec"
55 #define ACL_DEF_SINGLE_DELAY_USEC 5000
56 extern int acl_var_single_delay_usec;
57 
58 /*
59  * How long a daemon command may take to receive or deliver a message etc.
60  * before we assume it is wegded (should never happen).
61  */
62 #define ACL_VAR_SINGLE_DAEMON_TIMEOUT "single_daemon_timeout"
63 #define ACL_DEF_SINGLE_DAEMON_TIMEOUT 1800
64 extern int acl_var_single_daemon_timeout;
65 
66 /*
67  * Any subsystem: default maximum number of clients serviced before a mail
68  * subsystem terminates (except queue manager).
69  */
70 #define ACL_VAR_SINGLE_USE_LIMIT "single_use_limit"
71 #define ACL_DEF_SINGLE_USE_LIMIT 0
72 extern int acl_var_single_use_limit;
73 
74 #define ACL_VAR_SINGLE_ENABLE_CORE "single_enable_core"
75 #define ACL_DEF_SINGLE_ENABLE_CORE 1
76 extern int acl_var_single_enable_core;
77 
78 #define ACL_VAR_SINGLE_DISABLE_CORE_ONEXIT "single_disable_core_onexit"
79 #define ACL_DEF_SINGLE_DISABLE_CORE_ONEXIT 1
80 extern int acl_var_single_disable_core_onexit;
81 
82 #define ACL_VAR_SINGLE_CORE_LIMIT "single_core_limit"
83 #define ACL_DEF_SINGLE_CORE_LIMIT -1
84 extern long long int acl_var_single_core_limit;
85 
86 #define ACL_VAR_SINGLE_LOG_DEBUG "master_debug"
87 #define ACL_DEF_SINGLE_LOG_DEBUG ""
88 extern char *acl_var_single_log_debug;
89 
90 #define ACL_VAR_SINGLE_MAX_DEBUG "master_debug_max"
91 #define ACL_DEF_SINGLE_MAX_DEBUG 1000
92 extern int acl_var_single_max_debug;
93 
94 #endif /* ACL_UNIX*/
95 
96 #ifdef __cplusplus
97 }
98 #endif
99 
100 #endif /* ACL_CLIENT_ONLY */
101 #endif
102