compat/compat_shared.h File Reference

#include "config.h"
Include dependency graph for compat_shared.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  rusage

Defines

#define dirent   direct
#define NAMLEN(dirent)   (dirent)->d_namlen
#define SQUID_MAXFD_LIMIT   ((signed int)FD_SETSIZE)
#define w_space   " \t\n\r"
#define SQUID_NONBLOCK   O_NDELAY
#define SA_RESTART   0
#define SA_NODEFER   0
#define SA_RESETHAND   0

Functions

template<class A >
A const & min (A const &lhs, A const &rhs)
template<class A >
A const & max (A const &lhs, A const &rhs)

Define Documentation

#define dirent   direct

Definition at line 40 of file compat_shared.h.

Referenced by UFSSwapDir::DirClean(), dirlevel(), filelevel(), and list_files_by_dir().

#define NAMLEN ( dirent   )     (dirent)->d_namlen

Definition at line 41 of file compat_shared.h.

#define SA_NODEFER   0

Definition at line 170 of file compat_shared.h.

Referenced by mainInitialize(), and Signal().

#define SA_RESETHAND   0

Definition at line 173 of file compat_shared.h.

Referenced by mainInitialize().

#define SA_RESTART   0

Signalling flags are apparently not always provided. TODO find out if these can be moved into specific OS portability files.

Definition at line 167 of file compat_shared.h.

Referenced by main(), mainInitialize(), set_our_signal(), Signal(), and watch_child().

#define SQUID_MAXFD_LIMIT   ((signed int)FD_SETSIZE)

Definition at line 64 of file compat_shared.h.

Referenced by SquidMain().

#define SQUID_NONBLOCK   O_NDELAY

O_NDELAY is our fallback.

Definition at line 158 of file compat_shared.h.

Referenced by commSetNonBlocking(), commUnsetNonBlocking(), and main().

#define w_space   " \t\n\r"

Common shared definition of what whitespace consists of for string tests

Definition at line 140 of file compat_shared.h.

Referenced by aclParseAccessLine(), aclParseAclList(), aclParseDenyInfoLine(), fqdncacheParse(), ftpListParseParts(), GetInteger(), GetInteger64(), GetService(), GetShort(), HttpRequestMethod::HttpRequestMethod(), icpGetRequest(), icpGetUrlToSend(), ipc_thread_1(), ipcacheParse(), mimeInit(), netdbReloadState(), ACLExternal::parse(), ESICustomParser::parse(), Adaptation::ServiceConfig::parse(), parse_access_log(), parse_acl_tos(), parse_address(), parse_authparam(), parse_cachedir(), parse_externalAclHelper(), parse_hostdomain(), parse_hostdomaintype(), parse_http_header_access(), parse_http_header_replace(), parse_http_port_list(), parse_https_port_list(), parse_icap_service_failure_limit(), parse_IpAddress_list(), parse_logformat(), parse_memcachemode(), parse_onoff(), parse_peer(), parse_peer_access(), parse_refreshpattern(), parse_string(), parse_tristate(), parse_uri_whitespace(), parse_wccp2_amethod(), parse_wccp2_method(), parse_wccp2_service(), parse_wccp2_service_info(), ACL::ParseAclLine(), parseBytesLine(), parseBytesLine64(), HelperChildConfig::parseConfig(), Ip::Qos::QosConfig::parseConfigLine(), parseEtcHosts(), HttpRequest::parseFirstLine(), SwapDir::parseOptions(), Debug::parseOptions(), ConfigParser::ParseString(), parseTimeLine(), setup_scheme(), stringHasWhitespace(), ConfigParser::strtokFile(), testCoss::testCossCreate(), testCoss::testCossSearch(), testCoss::testDefaultEngine(), testNull::testNullCreate(), testNull::testNullSearch(), testACLMaxUserIP::testParseLine(), testUfs::testUfsDefaultEngine(), testUfs::testUfsSearch(), and urlParse().


Function Documentation

template<class A >
A const& max ( A const &  lhs,
A const &  rhs 
) [inline]

max() comparison may not always be provided. Squid bundles this template for when its needed. May be used on any type which provides operator '>'

Definition at line 125 of file compat_shared.h.

template<class A >
A const& min ( A const &  lhs,
A const &  rhs 
) [inline]

min() comparison may not always be provided. Squid bundles this template for when its needed. May be used on any type which provides operator '<'

Definition at line 104 of file compat_shared.h.

Search

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors