5 * SQUID Web Proxy Cache http://www.squid-cache.org/
6 * ----------------------------------------------------------
8 * Squid is the result of efforts by numerous individuals from
9 * the Internet community; see the CONTRIBUTORS file for full
10 * details. Many organizations have provided support for Squid's
11 * development; see the SPONSORS file for full details. Squid is
12 * Copyrighted (C) 2001 by the Regents of the University of
13 * California; see the COPYRIGHT file for full details. Squid
14 * incorporates software developed and/or copyrighted by other
15 * sources; see the CREDITS file for full details.
17 * This program is free software; you can redistribute it and/or modify
18 * it under the terms of the GNU General Public License as published by
19 * the Free Software Foundation; either version 2 of the License, or
20 * (at your option) any later version.
22 * This program is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 * GNU General Public License for more details.
27 * You should have received a copy of the GNU General Public License
28 * along with this program; if not, write to the Free Software
29 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
32 #ifndef SQUID_GLOBALS_H
33 #define SQUID_GLOBALS_H
41 /* for ERROR_BUF_SZ, BUFSIZ, MAXHTTPPORTS */
44 /* for iostats, StatCounters */
52 //MOVED:Debug.h extern FILE *debug_log; /* NULL */
53 //MOVED:structs.h extern SquidConfig Config;
54 //MOVED:structs.h extern SquidConfig2 Config2;
55 extern char *ConfigFile
; /* NULL */
56 extern char *IcpOpcodeStr
[];
57 extern const char *log_tags
[];
58 extern char tmp_error_buf
[ERROR_BUF_SZ
];
59 extern char ThisCache
[RFC2181_MAXHOSTNAMELEN
<< 1];
60 extern char ThisCache2
[RFC2181_MAXHOSTNAMELEN
<< 1];
61 extern char config_input_line
[BUFSIZ
];
62 extern const char *DefaultConfigFile
; /* DEFAULT_CONFIG_FILE */
63 extern const char *cfg_filename
; /* NULL */
64 //MOVED:version.h:APP_SHORTNAME extern const char *const appname; /* "squid" */
65 extern const char *const dash_str
; /* "-" */
66 extern const char *const null_string
; /* "" */
67 extern const char *const version_string
; /* VERSION */
68 //MOVED:versions.h:APP_FULLNAME extern const char *const full_appname_string; /* PACKAGE "/" VERSION */
69 extern const char *const appname_string
; /* PACKAGE */
70 extern char const * visible_appname_string
; /* NULL */
71 extern const char *fdTypeStr
[];
72 extern const char *hier_strings
[];
73 extern const char *memStatusStr
[];
74 extern const char *pingStatusStr
[];
75 extern const char *storeStatusStr
[];
76 extern const char *swapStatusStr
[];
78 extern fde
*fd_table
; /* NULL */
79 extern int Biggest_FD
; /* -1 */
80 extern int Number_FD
; /* 0 */
81 extern int Opening_FD
; /* 0 */
82 extern int HttpSockets
[MAXHTTPPORTS
];
83 extern int NDnsServersAlloc
; /* 0 */
84 extern int NHttpSockets
; /* 0 */
85 extern int RESERVED_FD
;
86 extern int Squid_MaxFD
; /* SQUID_MAXFD */
87 extern int config_lineno
; /* 0 */
88 extern int do_mallinfo
; /* 0 */
89 extern int opt_reuseaddr
; /* 1 */
90 //DEAD extern int icmp_sock; /* -1 */
91 extern int neighbors_do_private_keys
; /* 1 */
92 extern int opt_catch_signals
; /* 1 */
93 extern int opt_foreground_rebuild
; /* 0 */
94 extern char *opt_forwarded_for
; /* NULL */
95 extern int opt_reload_hit_only
; /* 0 */
97 extern int opt_udp_hit_obj
; /* 0 */
98 extern int opt_create_swap_dirs
; /* 0 */
99 extern int opt_store_doublecheck
; /* 0 */
100 extern int syslog_enable
; /* 0 */
101 extern int theInIcpConnection
; /* -1 */
102 extern int theOutIcpConnection
; /* -1 */
103 extern int DnsSocketA
; /* -1 */
104 extern int DnsSocketB
; /* -1 */
107 extern int theInSnmpConnection
; /* -1 */
108 extern int theOutSnmpConnection
; /* -1 */
109 extern char *snmp_agentinfo
;
112 extern int n_disk_objects
; /* 0 */
113 extern iostats IOStats
;
115 extern struct acl_deny_info_list
*DenyInfoList
; /* NULL */
117 extern struct timeval squid_start
;
118 extern int starting_up
; /* 1 */
119 extern int shutting_down
; /* 0 */
120 extern int reconfiguring
; /* 0 */
121 extern unsigned long store_swap_size
; /* 0 */
122 extern time_t hit_only_mode_until
; /* 0 */
123 extern StatCounters statCounter
;
124 extern double request_failure_ratio
; /* 0.0 */
125 extern int store_hash_buckets
; /* 0 */
126 extern hash_table
*store_table
; /* NULL */
127 //MOVED:dlink.h extern dlink_list ClientActiveRequests;
128 extern int hot_obj_count
; /* 0 */
129 extern const int CacheDigestHashFuncCount
; /* 4 */
130 extern CacheDigest
*store_digest
; /* NULL */
131 extern const char *StoreDigestFileName
; /* "store_digest" */
132 extern const char *StoreDigestMimeStr
; /* "application/cache-digest" */
134 extern const char *MultipartMsgBoundaryStr
; /* "Unique-Squid-Separator" */
135 #if USE_HTTP_VIOLATIONS
137 extern int refresh_nocache_hack
; /* 0 */
140 extern int store_open_disk_fd
; /* 0 */
141 extern const char *SwapDirType
[];
142 extern int store_swap_low
; /* 0 */
143 extern int store_swap_high
; /* 0 */
144 extern size_t store_pages_max
; /* 0 */
145 extern int64_t store_maxobjsize
; /* -1 */
146 extern hash_table
*proxy_auth_username_cache
; /* NULL */
147 extern int incoming_sockets_accepted
;
150 extern unsigned int WIN32_Socks_initialized
; /* 0 */
154 extern unsigned int WIN32_OS_version
; /* 0 */
155 extern char *WIN32_OS_string
; /* NULL */
156 extern char *WIN32_Service_name
; /* NULL */
157 extern char *WIN32_Command_Line
; /* NULL */
158 extern char *WIN32_Service_Command_Line
; /* NULL */
159 extern unsigned int WIN32_run_mode
; /* _WIN_SQUID_RUN_MODE_INTERACTIVE */
163 extern void *sbrk_start
; /* 0 */
166 extern int ssl_ex_index_server
; /* -1 */
167 extern int ssl_ctx_ex_index_dont_verify_domain
; /* -1 */
168 extern int ssl_ex_index_cert_error_check
; /* -1 */
170 extern const char *external_acl_message
; /* NULL */
171 extern int opt_send_signal
; /* -1 */
172 extern int opt_no_daemon
; /* 0 */
174 /// current Squid process number (e.g., 4).
175 /// Zero for SMP-unaware code and in no-SMP mode.
176 extern int KidIdentifier
; /* 0 */
183 #endif /* SQUID_GLOBALS_H */