util.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  gb_t
 

Macros

#define gb_flush_limit   (0x3FFFFFFF)
 
#define gb_inc(gb, delta)   { if ((gb)->bytes > gb_flush_limit || delta > gb_flush_limit) gb_flush(gb); (gb)->bytes += delta; (gb)->count++; }
 
#define gb_incb(gb, delta)   { if ((gb)->bytes > gb_flush_limit || delta > gb_flush_limit) gb_flush(gb); (gb)->bytes += delta; }
 
#define gb_incc(gb, delta)   { if ((gb)->bytes > gb_flush_limit || delta > gb_flush_limit) gb_flush(gb); (gb)->count+= delta; }
 

Functions

SQUIDCEXTERN int tvSubUsec (struct timeval, struct timeval)
 
SQUIDCEXTERN double tvSubDsec (struct timeval, struct timeval)
 
SQUIDCEXTERN void Tolower (char *)
 
SQUIDCEXTERN time_t parse_iso3307_time (const char *buf)
 
SQUIDCEXTERN double xpercent (double part, double whole)
 
SQUIDCEXTERN int xpercentInt (double part, double whole)
 
SQUIDCEXTERN double xdiv (double nom, double denom)
 
SQUIDCEXTERN const char * xitoa (int num)
 
SQUIDCEXTERN const char * xint64toa (int64_t num)
 
double gb_to_double (const gb_t *)
 
SQUIDCEXTERN const char * double_to_str (char *buf, int buf_size, double value)
 
const char * gb_to_str (const gb_t *)
 
void gb_flush (gb_t *)
 
int statMemoryAccounted (void)
 
SQUIDCEXTERN unsigned int RoundTo (const unsigned int num, const unsigned int what)
 

Macro Definition Documentation

#define gb_flush_limit   (0x3FFFFFFF)

Definition at line 39 of file util.h.

#define gb_inc (   gb,
  delta 
)    { if ((gb)->bytes > gb_flush_limit || delta > gb_flush_limit) gb_flush(gb); (gb)->bytes += delta; (gb)->count++; }

Definition at line 40 of file util.h.

#define gb_incb (   gb,
  delta 
)    { if ((gb)->bytes > gb_flush_limit || delta > gb_flush_limit) gb_flush(gb); (gb)->bytes += delta; }

Definition at line 41 of file util.h.

#define gb_incc (   gb,
  delta 
)    { if ((gb)->bytes > gb_flush_limit || delta > gb_flush_limit) gb_flush(gb); (gb)->count+= delta; }

Definition at line 42 of file util.h.

Function Documentation

SQUIDCEXTERN const char* double_to_str ( char *  buf,
int  buf_size,
double  value 
)

Definition at line 109 of file util.c.

References buf.

Referenced by Mem::Report().

void gb_flush ( gb_t )

Definition at line 96 of file util.c.

References gb_t::bytes, and gb_t::gb.

double gb_to_double ( const gb_t )

Definition at line 103 of file util.c.

References gb_t::bytes, and gb_t::gb.

Referenced by gb_to_str().

const char* gb_to_str ( const gb_t )

Definition at line 124 of file util.c.

References buf, gb_to_double(), and max_cc_calls.

SQUIDCEXTERN time_t parse_iso3307_time ( const char *  buf)

Definition at line 25 of file iso3307.c.

References ASCII_DIGIT.

Referenced by ftpReadMdtm().

SQUIDCEXTERN unsigned int RoundTo ( const unsigned int  num,
const unsigned int  what 
)

rounds num to the next upper integer multiple of what

Definition at line 153 of file util.c.

int statMemoryAccounted ( void  )

Definition at line 14 of file stub_memaccount.c.

References memPoolsTotalAllocated().

Referenced by GetInfo(), and snmp_prfSysFn().

SQUIDCEXTERN int tvSubUsec ( struct timeval  ,
struct timeval   
)

Definition at line 39 of file util.c.

Referenced by clientUpdateHierCounters(), and icpUdpSendQueue().

SQUIDCEXTERN double xdiv ( double  nom,
double  denom 
)
SQUIDCEXTERN const char* xint64toa ( int64_t  num)

Definition at line 88 of file util.c.

References buf, and PRId64.

Referenced by HttpHeader::putInt64().

SQUIDCEXTERN const char* xitoa ( int  num)
SQUIDCEXTERN int xpercentInt ( double  part,
double  whole 
)

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors