]>
Commit | Line | Data |
---|---|---|
c5ddf51c | 1 | /* |
9cef6668 | 2 | * |
2b6662ba | 3 | * SQUID Web Proxy Cache http://www.squid-cache.org/ |
9cef6668 | 4 | * ---------------------------------------------------------- |
5 | * | |
2b6662ba | 6 | * Squid is the result of efforts by numerous individuals from |
7 | * the Internet community; see the CONTRIBUTORS file for full | |
8 | * details. Many organizations have provided support for Squid's | |
9 | * development; see the SPONSORS file for full details. Squid is | |
10 | * Copyrighted (C) 2001 by the Regents of the University of | |
11 | * California; see the COPYRIGHT file for full details. Squid | |
12 | * incorporates software developed and/or copyrighted by other | |
13 | * sources; see the CREDITS file for full details. | |
9cef6668 | 14 | * |
15 | * This program is free software; you can redistribute it and/or modify | |
16 | * it under the terms of the GNU General Public License as published by | |
17 | * the Free Software Foundation; either version 2 of the License, or | |
18 | * (at your option) any later version. | |
26ac0430 | 19 | * |
9cef6668 | 20 | * This program is distributed in the hope that it will be useful, |
21 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
22 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
23 | * GNU General Public License for more details. | |
26ac0430 | 24 | * |
9cef6668 | 25 | * You should have received a copy of the GNU General Public License |
26 | * along with this program; if not, write to the Free Software | |
27 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA. | |
28 | * | |
fc084a16 | 29 | */ |
b5638623 | 30 | #ifndef SQUID_GLOBALS_H |
31 | #define SQUID_GLOBALS_H | |
32 | ||
9ce629cf FC |
33 | #include "acl/AclDenyInfoList.h" |
34 | #include "CacheDigest.h" | |
35 | #include "defines.h" | |
36 | #include "hash.h" | |
37 | #include "IoStats.h" | |
38 | #include "rfc2181.h" | |
39 | ||
e1f7507e AJ |
40 | #if HAVE_STDIO_H |
41 | #include <stdio.h> | |
42 | #endif | |
43 | ||
b0fb853f A |
44 | extern char *ConfigFile; /* NULL */ |
45 | extern char *IcpOpcodeStr[]; | |
46 | extern char tmp_error_buf[ERROR_BUF_SZ]; | |
47 | extern char ThisCache[RFC2181_MAXHOSTNAMELEN << 1]; | |
48 | extern char ThisCache2[RFC2181_MAXHOSTNAMELEN << 1]; | |
49 | extern char config_input_line[BUFSIZ]; | |
6f58d7d7 AR |
50 | /// During parsing, the name of the current squid.conf directive being parsed. |
51 | extern const char *cfg_directive; /* NULL */ | |
b0fb853f A |
52 | extern const char *DefaultConfigFile; /* DEFAULT_CONFIG_FILE */ |
53 | extern const char *cfg_filename; /* NULL */ | |
54 | extern const char *dash_str; /* "-" */ | |
55 | extern const char *null_string; /* "" */ | |
56 | extern const char *version_string; /* VERSION */ | |
57 | extern const char *appname_string; /* PACKAGE */ | |
58 | extern char const *visible_appname_string; /* NULL */ | |
59 | extern const char *fdTypeStr[]; | |
60 | extern const char *hier_strings[]; | |
61 | extern const char *memStatusStr[]; | |
62 | extern const char *pingStatusStr[]; | |
63 | extern const char *storeStatusStr[]; | |
64 | extern const char *swapStatusStr[]; | |
b0fb853f A |
65 | extern int Biggest_FD; /* -1 */ |
66 | extern int Number_FD; /* 0 */ | |
67 | extern int Opening_FD; /* 0 */ | |
68 | extern int NDnsServersAlloc; /* 0 */ | |
69 | extern int RESERVED_FD; | |
70 | extern int Squid_MaxFD; /* SQUID_MAXFD */ | |
71 | extern int config_lineno; /* 0 */ | |
72 | extern int do_mallinfo; /* 0 */ | |
73 | extern int opt_reuseaddr; /* 1 */ | |
74 | extern int neighbors_do_private_keys; /* 1 */ | |
75 | extern int opt_catch_signals; /* 1 */ | |
76 | extern int opt_foreground_rebuild; /* 0 */ | |
77 | extern char *opt_forwarded_for; /* NULL */ | |
78 | extern int opt_reload_hit_only; /* 0 */ | |
42c674fd | 79 | |
b0fb853f A |
80 | extern int opt_udp_hit_obj; /* 0 */ |
81 | extern int opt_create_swap_dirs; /* 0 */ | |
82 | extern int opt_store_doublecheck; /* 0 */ | |
83 | extern int syslog_enable; /* 0 */ | |
84 | extern int DnsSocketA; /* -1 */ | |
85 | extern int DnsSocketB; /* -1 */ | |
86 | extern int n_disk_objects; /* 0 */ | |
9ce629cf | 87 | extern IoStats IOStats; |
42c674fd | 88 | |
7f0b3324 | 89 | extern AclDenyInfoList *DenyInfoList; /* NULL */ |
42c674fd | 90 | |
b0fb853f A |
91 | extern struct timeval squid_start; |
92 | extern int starting_up; /* 1 */ | |
93 | extern int shutting_down; /* 0 */ | |
94 | extern int reconfiguring; /* 0 */ | |
95 | extern time_t hit_only_mode_until; /* 0 */ | |
96 | extern double request_failure_ratio; /* 0.0 */ | |
97 | extern int store_hash_buckets; /* 0 */ | |
98 | extern hash_table *store_table; /* NULL */ | |
99 | extern int hot_obj_count; /* 0 */ | |
100 | extern int CacheDigestHashFuncCount; /* 4 */ | |
101 | extern CacheDigest *store_digest; /* NULL */ | |
102 | extern const char *StoreDigestFileName; /* "store_digest" */ | |
103 | extern const char *StoreDigestMimeStr; /* "application/cache-digest" */ | |
42c674fd | 104 | |
b0fb853f | 105 | extern const char *MultipartMsgBoundaryStr; /* "Unique-Squid-Separator" */ |
626096be | 106 | #if USE_HTTP_VIOLATIONS |
b0fb853f | 107 | extern int refresh_nocache_hack; /* 0 */ |
9f60cfdf | 108 | #endif |
42c674fd | 109 | |
b0fb853f A |
110 | extern int store_open_disk_fd; /* 0 */ |
111 | extern const char *SwapDirType[]; | |
112 | extern int store_swap_low; /* 0 */ | |
113 | extern int store_swap_high; /* 0 */ | |
114 | extern size_t store_pages_max; /* 0 */ | |
115 | extern int64_t store_maxobjsize; /* -1 */ | |
116 | extern hash_table *proxy_auth_username_cache; /* NULL */ | |
117 | extern int incoming_sockets_accepted; | |
7aa9bb3e | 118 | #if _SQUID_WINDOWS_ |
b0fb853f | 119 | extern unsigned int WIN32_Socks_initialized; /* 0 */ |
a50bfe93 | 120 | #endif |
be266cb2 | 121 | #if _SQUID_WINDOWS_ |
b0fb853f A |
122 | extern unsigned int WIN32_OS_version; /* 0 */ |
123 | extern char *WIN32_OS_string; /* NULL */ | |
124 | extern char *WIN32_Service_name; /* NULL */ | |
125 | extern char *WIN32_Command_Line; /* NULL */ | |
126 | extern char *WIN32_Service_Command_Line; /* NULL */ | |
127 | extern unsigned int WIN32_run_mode; /* _WIN_SQUID_RUN_MODE_INTERACTIVE */ | |
0e6d05ef | 128 | #endif |
a4ba1105 | 129 | #if HAVE_SBRK |
b0fb853f | 130 | extern void *sbrk_start; /* 0 */ |
a4ba1105 | 131 | #endif |
b5638623 | 132 | |
b0fb853f A |
133 | extern int ssl_ex_index_server; /* -1 */ |
134 | extern int ssl_ctx_ex_index_dont_verify_domain; /* -1 */ | |
135 | extern int ssl_ex_index_cert_error_check; /* -1 */ | |
136 | extern int ssl_ex_index_ssl_error_detail; /* -1 */ | |
137 | extern int ssl_ex_index_ssl_peeked_cert; /* -1 */ | |
138 | extern int ssl_ex_index_ssl_errors; /* -1 */ | |
42c674fd | 139 | |
b0fb853f A |
140 | extern const char *external_acl_message; /* NULL */ |
141 | extern int opt_send_signal; /* -1 */ | |
142 | extern int opt_no_daemon; /* 0 */ | |
143 | extern int opt_parse_cfg_only; /* 0 */ | |
fc68f6b1 | 144 | |
710d3d1d AR |
145 | /// current Squid process number (e.g., 4). |
146 | /// Zero for SMP-unaware code and in no-SMP mode. | |
b0fb853f | 147 | extern int KidIdentifier; /* 0 */ |
42c674fd | 148 | |
b5638623 | 149 | #endif /* SQUID_GLOBALS_H */ |