globals.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2023 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
19extern char *ConfigFile; /* NULL */
20extern char *IcpOpcodeStr[];
21extern char ThisCache[RFC2181_MAXHOSTNAMELEN << 1];
22extern char ThisCache2[RFC2181_MAXHOSTNAMELEN << 1];
23extern const char *dash_str; /* "-" */
24extern const char *null_string; /* "" */
25extern const char *version_string; /* VERSION */
26extern const char *appname_string; /* PACKAGE */
27extern char const *visible_appname_string; /* NULL */
28extern const char *fdTypeStr[];
29extern const char *hier_strings[];
30extern const char *memStatusStr[];
31extern const char *pingStatusStr[];
32extern const char *storeStatusStr[];
33extern const char *swapStatusStr[];
34extern int Biggest_FD; /* -1 */
35extern int Number_FD; /* 0 */
36extern int Opening_FD; /* 0 */
37extern int NDnsServersAlloc; /* 0 */
38extern int RESERVED_FD;
39extern int Squid_MaxFD; /* SQUID_MAXFD */
40extern int opt_reuseaddr; /* 1 */
41extern int neighbors_do_private_keys; /* 1 */
42extern int opt_catch_signals; /* 1 */
43extern int opt_foreground; /* 0 */
44extern int opt_foreground_rebuild; /* 0 */
45extern char *opt_forwarded_for; /* NULL */
46extern int opt_reload_hit_only; /* 0 */
47
48extern int opt_udp_hit_obj; /* 0 */
49extern int opt_create_swap_dirs; /* 0 */
50extern int opt_store_doublecheck; /* 0 */
51extern int syslog_enable; /* 0 */
52extern int DnsSocketA; /* -1 */
53extern int DnsSocketB; /* -1 */
54extern int n_disk_objects; /* 0 */
55extern IoStats IOStats;
56
57extern struct timeval squid_start;
58extern int starting_up; /* 1 */
59extern int shutting_down; /* 0 */
60extern int reconfiguring; /* 0 */
61extern time_t hit_only_mode_until; /* 0 */
62extern double request_failure_ratio; /* 0.0 */
63extern int store_hash_buckets; /* 0 */
64extern hash_table *store_table; /* NULL */
65extern int hot_obj_count; /* 0 */
66extern int CacheDigestHashFuncCount; /* 4 */
67extern CacheDigest *store_digest; /* NULL */
68extern const char *StoreDigestFileName; /* "store_digest" */
69extern const char *StoreDigestMimeStr; /* "application/cache-digest" */
70
71extern const char *MultipartMsgBoundaryStr; /* "Unique-Squid-Separator" */
72#if USE_HTTP_VIOLATIONS
73extern int refresh_nocache_hack; /* 0 */
74#endif
75
76extern int store_open_disk_fd; /* 0 */
77extern const char *SwapDirType[];
78extern int store_swap_low; /* 0 */
79extern int store_swap_high; /* 0 */
80extern size_t store_pages_max; /* 0 */
81extern int64_t store_maxobjsize; /* 0 */
83#if _SQUID_WINDOWS_
84extern unsigned int WIN32_Socks_initialized; /* 0 */
85#endif
86#if _SQUID_WINDOWS_
87extern unsigned int WIN32_OS_version; /* 0 */
88extern char *WIN32_OS_string; /* NULL */
89extern char *WIN32_Command_Line; /* NULL */
90extern char *WIN32_Service_Command_Line; /* NULL */
91extern unsigned int WIN32_run_mode; /* _WIN_SQUID_RUN_MODE_INTERACTIVE */
92#endif
93
94extern int ssl_ex_index_server; /* -1 */
95extern int ssl_ctx_ex_index_dont_verify_domain; /* -1 */
96extern int ssl_ex_index_cert_error_check; /* -1 */
97extern int ssl_ex_index_ssl_error_detail; /* -1 */
98extern int ssl_ex_index_ssl_peeked_cert; /* -1 */
99extern int ssl_ex_index_ssl_errors; /* -1 */
100extern int ssl_ex_index_ssl_cert_chain; /* -1 */
101extern int ssl_ex_index_ssl_validation_counter; /* -1 */
102
103extern const char *external_acl_message; /* NULL */
104extern int opt_send_signal; /* -1 */
105extern int opt_no_daemon; /* 0 */
106extern int opt_parse_cfg_only; /* 0 */
107
110extern int KidIdentifier; /* 0 */
111
112#endif /* SQUID_GLOBALS_H */
113
IO statistics. Currently a POD.
Definition: IoStats.h:14
int n_disk_objects
char * ConfigFile
int ssl_ex_index_server
const char * swapStatusStr[]
Definition: store.cc:91
int opt_reload_hit_only
int refresh_nocache_hack
int opt_send_signal
char ThisCache2[RFC2181_MAXHOSTNAMELEN<< 1]
int ssl_ex_index_ssl_peeked_cert
int syslog_enable
int store_swap_high
int ssl_ex_index_ssl_error_detail
int Opening_FD
hash_table * store_table
int store_hash_buckets
int opt_store_doublecheck
struct timeval squid_start
int opt_create_swap_dirs
const char * pingStatusStr[]
Definition: store.cc:80
const char * fdTypeStr[]
Definition: fd.cc:39
int DnsSocketB
int opt_reuseaddr
int opt_no_daemon
int opt_foreground
const char * dash_str
int store_open_disk_fd
const char * MultipartMsgBoundaryStr
int store_swap_low
char * opt_forwarded_for
int CacheDigestHashFuncCount
const char * StoreDigestMimeStr
const char * memStatusStr[]
Definition: store.cc:75
int DnsSocketA
int shutting_down
const char * version_string
char const * visible_appname_string
int Squid_MaxFD
int neighbors_do_private_keys
int opt_foreground_rebuild
const char * null_string
int Number_FD
size_t store_pages_max
int ssl_ctx_ex_index_dont_verify_domain
const char * hier_strings[]
const char * StoreDigestFileName
int ssl_ex_index_ssl_errors
CacheDigest * store_digest
char * IcpOpcodeStr[]
int hot_obj_count
int opt_parse_cfg_only
int ssl_ex_index_ssl_validation_counter
int64_t store_maxobjsize
const char * storeStatusStr[]
Definition: store.cc:86
char ThisCache[RFC2181_MAXHOSTNAMELEN<< 1]
int ssl_ex_index_ssl_cert_chain
int opt_catch_signals
int NDnsServersAlloc
const char * external_acl_message
const char * appname_string
int RESERVED_FD
double request_failure_ratio
int Biggest_FD
const char * SwapDirType[]
IoStats IOStats
time_t hit_only_mode_until
int ssl_ex_index_cert_error_check
int incoming_sockets_accepted
int starting_up
int reconfiguring
int opt_udp_hit_obj
int KidIdentifier
#define RFC2181_MAXHOSTNAMELEN
Definition: rfc2181.h:27

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors