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

Enumerations

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

Functions

static void tzset (void)
 
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 char const TZ [] = "TZ"
 
static timezone_t const local_tz = (timezone_t) 1
 

Enumeration Type Documentation

anonymous enum
Enumerator
DEFAULT_MXFAST 
anonymous enum
Enumerator
ABBR_SIZE_MIN 

Function Documentation

static bool change_env ( timezone_t  tz)
static

Referenced by revert_tz(), and set_tz().

Here is the call graph for this function:

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

Referenced by save_abbr(), and tzalloc().

static char* getenv_TZ ( void  )
static

Referenced by set_tz().

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

Referenced by strftime_case_().

Here is the call graph for this function:

time_t mktime_z ( timezone_t  tz,
struct tm *  tm 
)

Referenced by strftime_case_().

Here is the call graph for this function:

static bool revert_tz ( timezone_t  tz)
static

Referenced by localtime_rz(), and mktime_z().

Here is the call graph for this function:

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:

static timezone_t set_tz ( timezone_t  tz)
static

Referenced by localtime_rz(), and mktime_z().

Here is the call graph for this function:

static int setenv_TZ ( char const *  tz)
static

Referenced by change_env().

Here is the call graph for this function:

timezone_t tzalloc ( char const *  name)

Referenced by save_abbr(), and set_tz().

Here is the call graph for this function:

void tzfree ( timezone_t  tz)

Referenced by revert_tz(), and set_tz().

static void tzset ( void  )
static

Referenced by change_env(), and strftime_case_().

Variable Documentation

timezone_t const local_tz = (timezone_t) 1
static

Referenced by set_tz().

char const TZ[] = "TZ"
static