]>
Commit | Line | Data |
---|---|---|
c5ddf51c | 1 | /* |
f70aedc4 | 2 | * Copyright (C) 1996-2021 The Squid Software Foundation and contributors |
9cef6668 | 3 | * |
bbc27441 AJ |
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. | |
fc084a16 | 7 | */ |
bbc27441 | 8 | |
b5638623 | 9 | #ifndef SQUID_GLOBALS_H |
10 | #define SQUID_GLOBALS_H | |
11 | ||
9ce629cf FC |
12 | #include "CacheDigest.h" |
13 | #include "defines.h" | |
14 | #include "hash.h" | |
15 | #include "IoStats.h" | |
16 | #include "rfc2181.h" | |
65e41a45 | 17 | #include "sbuf/SBuf.h" |
9ce629cf | 18 | |
f53969cc | 19 | extern char *ConfigFile; /* NULL */ |
b0fb853f A |
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]; | |
6f58d7d7 AR |
25 | /// During parsing, the name of the current squid.conf directive being parsed. |
26 | extern const char *cfg_directive; /* NULL */ | |
f53969cc SM |
27 | extern const char *cfg_filename; /* NULL */ |
28 | extern const char *dash_str; /* "-" */ | |
29 | extern const char *null_string; /* "" */ | |
30 | extern const char *version_string; /* VERSION */ | |
31 | extern const char *appname_string; /* PACKAGE */ | |
b0fb853f A |
32 | extern char const *visible_appname_string; /* NULL */ |
33 | extern const char *fdTypeStr[]; | |
34 | extern const char *hier_strings[]; | |
35 | extern const char *memStatusStr[]; | |
36 | extern const char *pingStatusStr[]; | |
37 | extern const char *storeStatusStr[]; | |
38 | extern const char *swapStatusStr[]; | |
f53969cc SM |
39 | extern int Biggest_FD; /* -1 */ |
40 | extern int Number_FD; /* 0 */ | |
41 | extern int Opening_FD; /* 0 */ | |
42 | extern int NDnsServersAlloc; /* 0 */ | |
b0fb853f | 43 | extern int RESERVED_FD; |
f53969cc SM |
44 | extern int Squid_MaxFD; /* SQUID_MAXFD */ |
45 | extern int config_lineno; /* 0 */ | |
46 | extern int opt_reuseaddr; /* 1 */ | |
47 | extern int neighbors_do_private_keys; /* 1 */ | |
48 | extern int opt_catch_signals; /* 1 */ | |
effda67e | 49 | extern int opt_foreground; /* 0 */ |
f53969cc SM |
50 | extern int opt_foreground_rebuild; /* 0 */ |
51 | extern char *opt_forwarded_for; /* NULL */ | |
52 | extern int opt_reload_hit_only; /* 0 */ | |
42c674fd | 53 | |
f53969cc SM |
54 | extern int opt_udp_hit_obj; /* 0 */ |
55 | extern int opt_create_swap_dirs; /* 0 */ | |
56 | extern int opt_store_doublecheck; /* 0 */ | |
57 | extern int syslog_enable; /* 0 */ | |
58 | extern int DnsSocketA; /* -1 */ | |
59 | extern int DnsSocketB; /* -1 */ | |
60 | extern int n_disk_objects; /* 0 */ | |
9ce629cf | 61 | extern IoStats IOStats; |
42c674fd | 62 | |
b0fb853f | 63 | extern struct timeval squid_start; |
f53969cc SM |
64 | extern int starting_up; /* 1 */ |
65 | extern int shutting_down; /* 0 */ | |
66 | extern int reconfiguring; /* 0 */ | |
67 | extern time_t hit_only_mode_until; /* 0 */ | |
68 | extern double request_failure_ratio; /* 0.0 */ | |
69 | extern int store_hash_buckets; /* 0 */ | |
70 | extern hash_table *store_table; /* NULL */ | |
71 | extern int hot_obj_count; /* 0 */ | |
72 | extern int CacheDigestHashFuncCount; /* 4 */ | |
73 | extern CacheDigest *store_digest; /* NULL */ | |
74 | extern const char *StoreDigestFileName; /* "store_digest" */ | |
75 | extern const char *StoreDigestMimeStr; /* "application/cache-digest" */ | |
42c674fd | 76 | |
f53969cc | 77 | extern const char *MultipartMsgBoundaryStr; /* "Unique-Squid-Separator" */ |
626096be | 78 | #if USE_HTTP_VIOLATIONS |
f53969cc | 79 | extern int refresh_nocache_hack; /* 0 */ |
9f60cfdf | 80 | #endif |
42c674fd | 81 | |
f53969cc | 82 | extern int store_open_disk_fd; /* 0 */ |
b0fb853f | 83 | extern const char *SwapDirType[]; |
f53969cc SM |
84 | extern int store_swap_low; /* 0 */ |
85 | extern int store_swap_high; /* 0 */ | |
86 | extern size_t store_pages_max; /* 0 */ | |
87 | extern int64_t store_maxobjsize; /* 0 */ | |
b0fb853f | 88 | extern int incoming_sockets_accepted; |
7aa9bb3e | 89 | #if _SQUID_WINDOWS_ |
f53969cc | 90 | extern unsigned int WIN32_Socks_initialized; /* 0 */ |
a50bfe93 | 91 | #endif |
be266cb2 | 92 | #if _SQUID_WINDOWS_ |
f53969cc | 93 | extern unsigned int WIN32_OS_version; /* 0 */ |
b0fb853f | 94 | extern char *WIN32_OS_string; /* NULL */ |
b0fb853f A |
95 | extern char *WIN32_Command_Line; /* NULL */ |
96 | extern char *WIN32_Service_Command_Line; /* NULL */ | |
97 | extern unsigned int WIN32_run_mode; /* _WIN_SQUID_RUN_MODE_INTERACTIVE */ | |
0e6d05ef | 98 | #endif |
b5638623 | 99 | |
f53969cc | 100 | extern int ssl_ex_index_server; /* -1 */ |
b0fb853f | 101 | extern int ssl_ctx_ex_index_dont_verify_domain; /* -1 */ |
f53969cc | 102 | extern int ssl_ex_index_cert_error_check; /* -1 */ |
b0fb853f A |
103 | extern int ssl_ex_index_ssl_error_detail; /* -1 */ |
104 | extern int ssl_ex_index_ssl_peeked_cert; /* -1 */ | |
105 | extern int ssl_ex_index_ssl_errors; /* -1 */ | |
4747ea4c | 106 | extern int ssl_ex_index_ssl_cert_chain; /* -1 */ |
0ad3ff51 | 107 | extern int ssl_ex_index_ssl_validation_counter; /* -1 */ |
42c674fd | 108 | |
b0fb853f | 109 | extern const char *external_acl_message; /* NULL */ |
f53969cc | 110 | extern int opt_send_signal; /* -1 */ |
b0fb853f A |
111 | extern int opt_no_daemon; /* 0 */ |
112 | extern int opt_parse_cfg_only; /* 0 */ | |
fc68f6b1 | 113 | |
710d3d1d AR |
114 | /// current Squid process number (e.g., 4). |
115 | /// Zero for SMP-unaware code and in no-SMP mode. | |
b0fb853f | 116 | extern int KidIdentifier; /* 0 */ |
42c674fd | 117 | |
b5638623 | 118 | #endif /* SQUID_GLOBALS_H */ |
f53969cc | 119 |