dhcpd-pools  3.0
ISC dhcpd lease usage analyser
Macros | Enumerations | Functions | Variables
time_rz.c File Reference
#include <config.h>
#include <time.h>
#include <errno.h>
#include <limits.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include "flexmember.h"
#include "time-internal.h"
Include dependency graph for time_rz.c:

Macros

#define SIZE_MAX   ((size_t) -1)
 

Enumerations

enum  { DEFAULT_MXFAST = 64 * sizeof (size_t) / 4 }
 
enum  { ABBR_SIZE_MIN = DEFAULT_MXFAST - offsetof (struct tm_zone, abbrs) }
 

Functions

static void extend_abbrs (char *abbrs, char const *abbr, size_t abbr_size)
 
timezone_t tzalloc (char const *name)
 
static bool save_abbr (timezone_t tz, struct tm *tm)
 
void tzfree (timezone_t tz)
 
static char * getenv_TZ (void)
 
static int setenv_TZ (char const *tz)
 
static bool change_env (timezone_t tz)
 
static timezone_t set_tz (timezone_t tz)
 
static bool revert_tz (timezone_t tz)
 
struct tm * localtime_rz (timezone_t tz, time_t const *t, struct tm *tm)
 
time_t mktime_z (timezone_t tz, struct tm *tm)
 

Variables

static timezone_t const local_tz = (timezone_t) 1
 

Macro Definition Documentation

◆ SIZE_MAX

#define SIZE_MAX   ((size_t) -1)

Referenced by save_abbr().

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
DEFAULT_MXFAST 

◆ anonymous enum

anonymous enum
Enumerator
ABBR_SIZE_MIN 

Function Documentation

◆ change_env()

static bool change_env ( timezone_t  tz)
static

Referenced by revert_tz(), and set_tz().

Here is the call graph for this function:

◆ extend_abbrs()

static void extend_abbrs ( char *  abbrs,
char const *  abbr,
size_t  abbr_size 
)
static

Referenced by save_abbr(), and tzalloc().

◆ getenv_TZ()

static char* getenv_TZ ( void  )
static

Referenced by set_tz().

◆ localtime_rz()

struct tm* localtime_rz ( timezone_t  tz,
time_t const *  t,
struct tm *  tm 
)

Referenced by __strftime_internal().

Here is the call graph for this function:

◆ mktime_z()

time_t mktime_z ( timezone_t  tz,
struct tm *  tm 
)

Referenced by __strftime_internal().

Here is the call graph for this function:

◆ revert_tz()

static bool revert_tz ( timezone_t  tz)
static

Referenced by localtime_rz(), and mktime_z().

Here is the call graph for this function:

◆ save_abbr()

static bool save_abbr ( timezone_t  tz,
struct tm *  tm 
)
static

Referenced by localtime_rz(), and mktime_z().

Here is the call graph for this function:

◆ set_tz()

static timezone_t set_tz ( timezone_t  tz)
static

Referenced by localtime_rz(), and mktime_z().

Here is the call graph for this function:

◆ setenv_TZ()

static int setenv_TZ ( char const *  tz)
static

Referenced by change_env().

Here is the call graph for this function:

◆ tzalloc()

timezone_t tzalloc ( char const *  name)

Referenced by save_abbr(), and set_tz().

Here is the call graph for this function:

◆ tzfree()

void tzfree ( timezone_t  tz)

Referenced by revert_tz(), and set_tz().

Variable Documentation

◆ local_tz

timezone_t const local_tz = (timezone_t) 1
static

Referenced by revert_tz(), set_tz(), and tzfree().