globals.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
3  *
4  * Squid software is distributed under GPLv2+ license and includes
5  * contributions from numerous individuals and organizations.
6  * Please see the COPYING and CONTRIBUTORS files for details.
7  */
8 
9 #ifndef SQUID_GLOBALS_H
10 #define SQUID_GLOBALS_H
11 
12 #include "CacheDigest.h"
13 #include "defines.h"
14 #include "hash.h"
15 #include "IoStats.h"
16 #include "rfc2181.h"
17 #include "sbuf/SBuf.h"
18 
19 extern char *ConfigFile; /* NULL */
20 extern char *IcpOpcodeStr[];
21 extern char tmp_error_buf[ERROR_BUF_SZ];
22 extern char ThisCache[RFC2181_MAXHOSTNAMELEN << 1];
23 extern char ThisCache2[RFC2181_MAXHOSTNAMELEN << 1];
24 extern char config_input_line[BUFSIZ];
26 extern const char *cfg_directive; /* NULL */
27 extern const char *DefaultConfigFile; /* DEFAULT_CONFIG_FILE */
28 extern const char *cfg_filename; /* NULL */
29 extern const char *dash_str; /* "-" */
30 extern const char *null_string; /* "" */
31 extern const char *version_string; /* VERSION */
32 extern const char *appname_string; /* PACKAGE */
33 extern char const *visible_appname_string; /* NULL */
34 extern const char *fdTypeStr[];
35 extern const char *hier_strings[];
36 extern const char *memStatusStr[];
37 extern const char *pingStatusStr[];
38 extern const char *storeStatusStr[];
39 extern const char *swapStatusStr[];
40 extern int Biggest_FD; /* -1 */
41 extern int Number_FD; /* 0 */
42 extern int Opening_FD; /* 0 */
43 extern int NDnsServersAlloc; /* 0 */
44 extern int RESERVED_FD;
45 extern int Squid_MaxFD; /* SQUID_MAXFD */
46 extern int config_lineno; /* 0 */
47 extern int opt_reuseaddr; /* 1 */
48 extern int neighbors_do_private_keys; /* 1 */
49 extern int opt_catch_signals; /* 1 */
50 extern int opt_foreground; /* 0 */
51 extern int opt_foreground_rebuild; /* 0 */
52 extern char *opt_forwarded_for; /* NULL */
53 extern int opt_reload_hit_only; /* 0 */
54 
55 extern int opt_udp_hit_obj; /* 0 */
56 extern int opt_create_swap_dirs; /* 0 */
57 extern int opt_store_doublecheck; /* 0 */
58 extern int syslog_enable; /* 0 */
59 extern int DnsSocketA; /* -1 */
60 extern int DnsSocketB; /* -1 */
61 extern int n_disk_objects; /* 0 */
62 extern IoStats IOStats;
63 
64 extern struct timeval squid_start;
65 extern int starting_up; /* 1 */
66 extern int shutting_down; /* 0 */
67 extern int reconfiguring; /* 0 */
68 extern time_t hit_only_mode_until; /* 0 */
69 extern double request_failure_ratio; /* 0.0 */
70 extern int store_hash_buckets; /* 0 */
71 extern hash_table *store_table; /* NULL */
72 extern int hot_obj_count; /* 0 */
73 extern int CacheDigestHashFuncCount; /* 4 */
74 extern CacheDigest *store_digest; /* NULL */
75 extern const char *StoreDigestFileName; /* "store_digest" */
76 extern const char *StoreDigestMimeStr; /* "application/cache-digest" */
77 
78 extern const char *MultipartMsgBoundaryStr; /* "Unique-Squid-Separator" */
79 #if USE_HTTP_VIOLATIONS
80 extern int refresh_nocache_hack; /* 0 */
81 #endif
82 
83 extern int store_open_disk_fd; /* 0 */
84 extern const char *SwapDirType[];
85 extern int store_swap_low; /* 0 */
86 extern int store_swap_high; /* 0 */
87 extern size_t store_pages_max; /* 0 */
88 extern int64_t store_maxobjsize; /* 0 */
89 extern int incoming_sockets_accepted;
90 #if _SQUID_WINDOWS_
91 extern unsigned int WIN32_Socks_initialized; /* 0 */
92 #endif
93 #if _SQUID_WINDOWS_
94 extern unsigned int WIN32_OS_version; /* 0 */
95 extern char *WIN32_OS_string; /* NULL */
96 extern char *WIN32_Command_Line; /* NULL */
97 extern char *WIN32_Service_Command_Line; /* NULL */
98 extern unsigned int WIN32_run_mode; /* _WIN_SQUID_RUN_MODE_INTERACTIVE */
99 #endif
100 
101 extern int ssl_ex_index_server; /* -1 */
102 extern int ssl_ctx_ex_index_dont_verify_domain; /* -1 */
103 extern int ssl_ex_index_cert_error_check; /* -1 */
104 extern int ssl_ex_index_ssl_error_detail; /* -1 */
105 extern int ssl_ex_index_ssl_peeked_cert; /* -1 */
106 extern int ssl_ex_index_ssl_errors; /* -1 */
107 extern int ssl_ex_index_ssl_cert_chain; /* -1 */
108 extern int ssl_ex_index_ssl_validation_counter; /* -1 */
109 
110 extern const char *external_acl_message; /* NULL */
111 extern int opt_send_signal; /* -1 */
112 extern int opt_no_daemon; /* 0 */
113 extern int opt_parse_cfg_only; /* 0 */
114 
117 extern int KidIdentifier; /* 0 */
118 
119 #endif /* SQUID_GLOBALS_H */
120 
int ssl_ex_index_ssl_peeked_cert
int opt_udp_hit_obj
hash_table * store_table
int opt_reuseaddr
int syslog_enable
int Squid_MaxFD
int neighbors_do_private_keys
int opt_foreground
int opt_create_swap_dirs
int ssl_ex_index_server
size_t store_pages_max
const char * StoreDigestMimeStr
const char * appname_string
const char * null_string
int opt_reload_hit_only
int64_t store_maxobjsize
#define RFC2181_MAXHOSTNAMELEN
Definition: rfc2181.h:27
int opt_parse_cfg_only
int ssl_ex_index_cert_error_check
int NDnsServersAlloc
int ssl_ex_index_ssl_validation_counter
char * ConfigFile
int store_hash_buckets
int opt_foreground_rebuild
const char * memStatusStr[]
Definition: store.cc:66
CacheDigest * store_digest
const char * storeStatusStr[]
Definition: store.cc:77
int RESERVED_FD
int shutting_down
Definition: testAddress.cc:36
int CacheDigestHashFuncCount
int ssl_ctx_ex_index_dont_verify_domain
int n_disk_objects
int config_lineno
int opt_catch_signals
int ssl_ex_index_ssl_error_detail
const char * cfg_directive
During parsing, the name of the current squid.conf directive being parsed.
int store_swap_high
int DnsSocketB
const char * cfg_filename
const char * DefaultConfigFile
const char * fdTypeStr[]
Definition: fd.cc:40
int Number_FD
int incoming_sockets_accepted
int Biggest_FD
int ssl_ex_index_ssl_errors
struct timeval squid_start
int DnsSocketA
const char * SwapDirType[]
int opt_store_doublecheck
#define BUFSIZ
Definition: defines.h:20
int opt_send_signal
char tmp_error_buf[ERROR_BUF_SZ]
int KidIdentifier
const char * pingStatusStr[]
Definition: store.cc:71
char config_input_line[BUFSIZ]
#define ERROR_BUF_SZ
Definition: defines.h:133
const char * external_acl_message
char * opt_forwarded_for
int Opening_FD
int store_open_disk_fd
double request_failure_ratio
IO statistics. Currently a POD.
Definition: IoStats.h:13
char ThisCache[RFC2181_MAXHOSTNAMELEN<< 1]
char * IcpOpcodeStr[]
const char * MultipartMsgBoundaryStr
IoStats IOStats
int hot_obj_count
time_t hit_only_mode_until
int store_swap_low
int ssl_ex_index_ssl_cert_chain
int opt_no_daemon
const char * swapStatusStr[]
Definition: store.cc:82
const char * hier_strings[]
char const * visible_appname_string
int starting_up
const char * version_string
int reconfiguring
const char * StoreDigestFileName
int refresh_nocache_hack
const char * dash_str
char ThisCache2[RFC2181_MAXHOSTNAMELEN<< 1]

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors