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 char tmp_error_buf
[ERROR_BUF_SZ
];
58 extern char ThisCache
[RFC2181_MAXHOSTNAMELEN
<< 1];
59 extern char ThisCache2
[RFC2181_MAXHOSTNAMELEN
<< 1];
60 extern char config_input_line
[BUFSIZ
];
61 extern const char *DefaultConfigFile
; /* DEFAULT_CONFIG_FILE */
62 extern const char *cfg_filename
; /* NULL */
63 //MOVED:version.h:APP_SHORTNAME extern const char *const appname; /* "squid" */
64 extern const char *const dash_str
; /* "-" */
65 extern const char *const null_string
; /* "" */
66 extern const char *const version_string
; /* VERSION */
67 //MOVED:versions.h:APP_FULLNAME extern const char *const full_appname_string; /* PACKAGE "/" VERSION */
68 extern const char *const appname_string
; /* PACKAGE */
69 extern char const * visible_appname_string
; /* NULL */
70 extern const char *fdTypeStr
[];
71 extern const char *hier_strings
[];
72 extern const char *memStatusStr
[];
73 extern const char *pingStatusStr
[];
74 extern const char *storeStatusStr
[];
75 extern const char *swapStatusStr
[];
77 extern fde
*fd_table
; /* NULL */
78 extern int Biggest_FD
; /* -1 */
79 extern int Number_FD
; /* 0 */
80 extern int Opening_FD
; /* 0 */
81 extern int HttpSockets
[MAXHTTPPORTS
];
82 extern int NDnsServersAlloc
; /* 0 */
83 extern int NHttpSockets
; /* 0 */
84 extern int RESERVED_FD
;
85 extern int Squid_MaxFD
; /* SQUID_MAXFD */
86 extern int config_lineno
; /* 0 */
87 extern int do_mallinfo
; /* 0 */
88 extern int opt_reuseaddr
; /* 1 */
89 //DEAD extern int icmp_sock; /* -1 */
90 extern int neighbors_do_private_keys
; /* 1 */
91 extern int opt_catch_signals
; /* 1 */
92 extern int opt_foreground_rebuild
; /* 0 */
93 extern char *opt_forwarded_for
; /* NULL */
94 extern int opt_reload_hit_only
; /* 0 */
96 extern int opt_udp_hit_obj
; /* 0 */
97 extern int opt_create_swap_dirs
; /* 0 */
98 extern int opt_store_doublecheck
; /* 0 */
99 extern int syslog_enable
; /* 0 */
100 extern int DnsSocketA
; /* -1 */
101 extern int DnsSocketB
; /* -1 */
102 extern int n_disk_objects
; /* 0 */
103 extern iostats IOStats
;
105 extern struct acl_deny_info_list
*DenyInfoList
; /* NULL */
107 extern struct timeval squid_start
;
108 extern int starting_up
; /* 1 */
109 extern int shutting_down
; /* 0 */
110 extern int reconfiguring
; /* 0 */
111 extern time_t hit_only_mode_until
; /* 0 */
112 extern StatCounters statCounter
;
113 extern double request_failure_ratio
; /* 0.0 */
114 extern int store_hash_buckets
; /* 0 */
115 extern hash_table
*store_table
; /* NULL */
116 //MOVED:dlink.h extern dlink_list ClientActiveRequests;
117 extern int hot_obj_count
; /* 0 */
118 extern const int CacheDigestHashFuncCount
; /* 4 */
119 extern CacheDigest
*store_digest
; /* NULL */
120 extern const char *StoreDigestFileName
; /* "store_digest" */
121 extern const char *StoreDigestMimeStr
; /* "application/cache-digest" */
123 extern const char *MultipartMsgBoundaryStr
; /* "Unique-Squid-Separator" */
124 #if USE_HTTP_VIOLATIONS
126 extern int refresh_nocache_hack
; /* 0 */
129 extern int store_open_disk_fd
; /* 0 */
130 extern const char *SwapDirType
[];
131 extern int store_swap_low
; /* 0 */
132 extern int store_swap_high
; /* 0 */
133 extern size_t store_pages_max
; /* 0 */
134 extern int64_t store_maxobjsize
; /* -1 */
135 extern hash_table
*proxy_auth_username_cache
; /* NULL */
136 extern int incoming_sockets_accepted
;
139 extern unsigned int WIN32_Socks_initialized
; /* 0 */
142 extern unsigned int WIN32_OS_version
; /* 0 */
143 extern char *WIN32_OS_string
; /* NULL */
144 extern char *WIN32_Service_name
; /* NULL */
145 extern char *WIN32_Command_Line
; /* NULL */
146 extern char *WIN32_Service_Command_Line
; /* NULL */
147 extern unsigned int WIN32_run_mode
; /* _WIN_SQUID_RUN_MODE_INTERACTIVE */
151 extern void *sbrk_start
; /* 0 */
154 extern int ssl_ex_index_server
; /* -1 */
155 extern int ssl_ctx_ex_index_dont_verify_domain
; /* -1 */
156 extern int ssl_ex_index_cert_error_check
; /* -1 */
157 extern int ssl_ex_index_ssl_error_detail
; /* -1 */
158 extern int ssl_ex_index_ssl_peeked_cert
; /* -1 */
159 extern int ssl_ex_index_ssl_error_sslerrno
; /* -1 */
161 extern const char *external_acl_message
; /* NULL */
162 extern int opt_send_signal
; /* -1 */
163 extern int opt_no_daemon
; /* 0 */
164 extern int opt_parse_cfg_only
; /* 0 */
166 /// current Squid process number (e.g., 4).
167 /// Zero for SMP-unaware code and in no-SMP mode.
168 extern int KidIdentifier
; /* 0 */
175 #endif /* SQUID_GLOBALS_H */