3 * SQUID Web Proxy Cache http://www.squid-cache.org/
4 * ----------------------------------------------------------
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.
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.
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.
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.
30 #ifndef SQUID_GLOBALS_H
31 #define SQUID_GLOBALS_H
33 #include "acl/AclDenyInfoList.h"
34 #include "CacheDigest.h"
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
];
50 /// During parsing, the name of the current squid.conf directive being parsed.
51 extern const char *cfg_directive
; /* NULL */
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
[];
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 */
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 */
87 extern IoStats IOStats
;
89 extern AclDenyInfoList
*DenyInfoList
; /* NULL */
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" */
105 extern const char *MultipartMsgBoundaryStr
; /* "Unique-Squid-Separator" */
106 #if USE_HTTP_VIOLATIONS
107 extern int refresh_nocache_hack
; /* 0 */
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
;
119 extern unsigned int WIN32_Socks_initialized
; /* 0 */
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 */
130 extern void *sbrk_start
; /* 0 */
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 */
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 */
145 /// current Squid process number (e.g., 4).
146 /// Zero for SMP-unaware code and in no-SMP mode.
147 extern int KidIdentifier
; /* 0 */
149 #endif /* SQUID_GLOBALS_H */