]> git.ipfire.org Git - thirdparty/squid.git/blame - src/globals.h
Bootstrapped
[thirdparty/squid.git] / src / globals.h
CommitLineData
9fb13bb6 1
c5ddf51c 2/*
fa80a8ef 3 * $Id: globals.h,v 1.110 2002/04/13 23:07:50 hno Exp $
9cef6668 4 *
5 *
2b6662ba 6 * SQUID Web Proxy Cache http://www.squid-cache.org/
9cef6668 7 * ----------------------------------------------------------
8 *
2b6662ba 9 * Squid is the result of efforts by numerous individuals from
10 * the Internet community; see the CONTRIBUTORS file for full
11 * details. Many organizations have provided support for Squid's
12 * development; see the SPONSORS file for full details. Squid is
13 * Copyrighted (C) 2001 by the Regents of the University of
14 * California; see the COPYRIGHT file for full details. Squid
15 * incorporates software developed and/or copyrighted by other
16 * sources; see the CREDITS file for full details.
9cef6668 17 *
18 * This program is free software; you can redistribute it and/or modify
19 * it under the terms of the GNU General Public License as published by
20 * the Free Software Foundation; either version 2 of the License, or
21 * (at your option) any later version.
22 *
23 * This program is distributed in the hope that it will be useful,
24 * but WITHOUT ANY WARRANTY; without even the implied warranty of
25 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 * GNU General Public License for more details.
27 *
28 * You should have received a copy of the GNU General Public License
29 * along with this program; if not, write to the Free Software
30 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
31 *
fc084a16 32 */
a8258824 33
b5638623 34#ifndef SQUID_GLOBALS_H
35#define SQUID_GLOBALS_H
36
a47b9029 37extern FILE *debug_log; /* NULL */
a8258824 38extern SquidConfig Config;
39extern SquidConfig2 Config2;
a8258824 40extern char *ConfigFile; /* NULL */
41extern char *IcpOpcodeStr[];
a2c963ae 42extern const char *dns_error_message; /* NULL */
9b312a19 43extern const char *log_tags[];
2027ec3b 44extern char tmp_error_buf[ERROR_BUF_SZ];
a47b9029 45extern char *volatile debug_options; /* NULL */
a8258824 46extern char ThisCache[SQUIDHOSTNAMELEN << 1];
38a6c74e 47extern char ThisCache2[SQUIDHOSTNAMELEN << 1];
a8258824 48extern char config_input_line[BUFSIZ];
a47b9029 49extern const char *AclMatchedName; /* NULL */
a8258824 50extern const char *DefaultConfigFile; /* DEFAULT_CONFIG_FILE */
a8258824 51extern const char *RequestMethodStr[];
70cd3e32 52extern const char *ProtocolStr[];
a8258824 53extern const char *cfg_filename; /* NULL */
a47b9029 54extern const char *const appname; /* "squid" */
a47b9029 55extern const char *const dash_str; /* "-" */
56extern const char *const localhost; /* "127.0.0.1" */
57extern const char *const null_string; /* "" */
a2794549 58extern const char *const version_string; /* VERSION */
59extern const char *const full_appname_string; /* PACKAGE "/" VERSION */
a47b9029 60extern const char *const w_space; /* " \t\n\r" */
22f5d1ca 61extern const char *fdTypeStr[];
a8258824 62extern const char *hier_strings[];
63extern const char *memStatusStr[];
64extern const char *pingStatusStr[];
65extern const char *storeStatusStr[];
66extern const char *swapStatusStr[];
a47b9029 67extern fde *fd_table; /* NULL */
68extern int Biggest_FD; /* -1 */
88738790 69extern int Number_FD; /* 0 */
b6a2f15e 70extern int Opening_FD; /* 0 */
a8258824 71extern int HttpSockets[MAXHTTPPORTS];
72extern int NDnsServersAlloc; /* 0 */
a47b9029 73extern int NHttpSockets; /* 0 */
a8258824 74extern int RESERVED_FD;
a47b9029 75extern int Squid_MaxFD; /* SQUID_MAXFD */
a8258824 76extern int config_lineno; /* 0 */
a8258824 77extern int debugLevels[MAX_DEBUG_SECTIONS];
a47b9029 78extern int do_mallinfo; /* 0 */
3b4be6a6 79extern int opt_reuseaddr; /* 1 */
a47b9029 80extern int icmp_sock; /* -1 */
81extern int neighbors_do_private_keys; /* 1 */
82extern int opt_accel_uses_host; /* 0 */
83extern int opt_catch_signals; /* 1 */
723e8aa3 84extern int opt_debug_stderr; /* -1 */
a47b9029 85extern int opt_dns_tests; /* 1 */
86extern int opt_foreground_rebuild; /* 0 */
87extern int opt_forwarded_for; /* 1 */
a47b9029 88extern int opt_reload_hit_only; /* 0 */
89extern int opt_syslog_enable; /* 0 */
90extern int opt_udp_hit_obj; /* 0 */
85407535 91extern int opt_create_swap_dirs; /* 0 */
504123ec 92extern int opt_store_doublecheck; /* 0 */
a47b9029 93extern int syslog_enable; /* 0 */
94extern int theInIcpConnection; /* -1 */
95extern int theOutIcpConnection; /* -1 */
ef523f99 96extern int DnsSocket; /* -1 */
2bbd722b 97#ifdef SQUID_SNMP
98extern int theInSnmpConnection; /* -1 */
99extern int theOutSnmpConnection; /* -1 */
100extern char *snmp_agentinfo;
101#endif
a47b9029 102extern int vhost_mode; /* 0 */
42b51993 103extern int vport_mode; /* 0 */
0faf70d0 104extern int n_disk_objects; /* 0 */
a8258824 105extern iostats IOStats;
a47b9029 106extern struct _acl_deny_info_list *DenyInfoList; /* NULL */
a8258824 107extern struct in_addr any_addr;
108extern struct in_addr local_addr;
109extern struct in_addr no_addr;
110extern struct in_addr theOutICPAddr;
2bbd722b 111extern struct in_addr theOutSNMPAddr;
a8258824 112extern struct timeval current_time;
f2908497 113extern struct timeval squid_start;
a47b9029 114extern time_t squid_curtime; /* 0 */
2681d383 115extern int shutting_down; /* 0 */
1afe05c5 116extern int reconfiguring; /* 0 */
7e3ce7b9 117extern int store_dirs_rebuilding; /* 1 */
88738790 118extern int store_swap_size; /* 0 */
88738790 119extern unsigned long store_mem_size; /* 0 */
79d39a72 120extern time_t hit_only_mode_until; /* 0 */
83704487 121extern StatCounters statCounter;
27cd7235 122extern char *err_type_str[];
123extern char *icp_opcode_str[];
b109de6b 124extern char *swap_log_op_str[];
7b2a0056 125extern char *lookup_t_str[];
067bea91 126extern double request_failure_ratio; /* 0.0 */
52040193 127extern double current_dtime;
5830cdb3 128extern int store_hash_buckets; /* 0 */
129extern hash_table *store_table; /* NULL */
0f1bc304 130extern dlink_list ClientActiveRequests;
ec878047 131extern const String StringNull; /* { 0, 0, NULL } */
137ee196 132extern const MemBuf MemBufNull; /* MemBufNULL */
59c4d35b 133extern int hot_obj_count; /* 0 */
a8258824 134extern int _db_level;
4b4cd312 135extern const int CacheDigestHashFuncCount; /* 4 */
136extern CacheDigest *store_digest; /* NULL */
8a6218c6 137extern const char *StoreDigestFileName; /* "store_digest" */
4b4cd312 138extern const char *StoreDigestMimeStr; /* "application/cache-digest" */
c68e9c6b 139#if USE_CACHE_DIGESTS
e13ee7ad 140extern const Version CacheDigestVer; /* { 5, 3 } */
c68e9c6b 141#endif
0cdcddb9 142extern const char *MultipartMsgBoundaryStr; /* "Unique-Squid-Separator" */
143extern icpUdpData *IcpQueueHead; /* NULL */
9f60cfdf 144#if HTTP_VIOLATIONS
cbe3a719 145extern int refresh_nocache_hack; /* 0 */
9f60cfdf 146#endif
92695e5e 147extern request_flags null_request_flags;
83a29c95 148extern int store_open_disk_fd; /* 0 */
0e4e0e7d 149extern const char *SwapDirType[];
94439e4e 150extern authscheme_entry_t *authscheme_list; /* NULL */
a4b8110e 151extern storefs_entry_t *storefs_list; /* NULL */
22d38e05 152extern storerepl_entry_t *storerepl_list; /* NULL */
94ff602d 153extern int store_swap_low; /* 0 */
154extern int store_swap_high; /* 0 */
155extern int store_pages_max; /* 0 */
c1dd71ae 156extern ssize_t store_maxobjsize; /* -1 */
6a566b9c 157extern RemovalPolicy *mem_policy;
94439e4e 158extern hash_table *proxy_auth_username_cache; /* NULL */
d193a436 159extern int incoming_sockets_accepted;
0e6d05ef 160#if defined(_SQUID_MSWIN_) || defined(_SQUID_CYGWIN_)
161extern unsigned int WIN32_OS_version; /* 0 */
fa80a8ef 162extern char *WIN32_OS_string; /* NULL */
0e6d05ef 163#endif
b5638623 164
165#endif /* SQUID_GLOBALS_H */