src/commands/zoneinfo/zic.c File Reference

#include "private.h"
#include "locale.h"
#include "tzfile.h"
#include "sys/stat.h"
#include "ctype.h"

Go to the source code of this file.

Classes

struct  rule
struct  zone
struct  link
struct  lookup
struct  attype

Defines

#define ZIC_MAX_ABBR_LEN_WO_WARN   6
#define MKDIR_UMASK   0755
#define isascii(x)   1
#define DC_DOM   0 /* 1..31 */
#define DC_DOWGEQ   1 /* 1..31 */
#define DC_DOWLEQ   2 /* 1..31 */
#define LC_RULE   0
#define LC_ZONE   1
#define LC_LINK   2
#define LC_LEAP   3
#define ZF_NAME   1
#define ZF_GMTOFF   2
#define ZF_RULE   3
#define ZF_FORMAT   4
#define ZF_TILYEAR   5
#define ZF_TILMONTH   6
#define ZF_TILDAY   7
#define ZF_TILTIME   8
#define ZONE_MINFIELDS   5
#define ZONE_MAXFIELDS   9
#define ZFC_GMTOFF   0
#define ZFC_RULE   1
#define ZFC_FORMAT   2
#define ZFC_TILYEAR   3
#define ZFC_TILMONTH   4
#define ZFC_TILDAY   5
#define ZFC_TILTIME   6
#define ZONEC_MINFIELDS   3
#define ZONEC_MAXFIELDS   7
#define RF_NAME   1
#define RF_LOYEAR   2
#define RF_HIYEAR   3
#define RF_COMMAND   4
#define RF_MONTH   5
#define RF_DAY   6
#define RF_TOD   7
#define RF_STDOFF   8
#define RF_ABBRVAR   9
#define RULE_FIELDS   10
#define LF_FROM   1
#define LF_TO   2
#define LINK_FIELDS   3
#define LP_YEAR   1
#define LP_MONTH   2
#define LP_DAY   3
#define LP_TIME   4
#define LP_CORR   5
#define LP_ROLL   6
#define LEAP_FIELDS   7
#define YR_MINIMUM   0
#define YR_MAXIMUM   1
#define YR_ONLY   2
#define emalloc(size)   memcheck(imalloc(size))
#define erealloc(ptr, size)   memcheck(irealloc((ptr), (size)))
#define ecpyalloc(ptr)   memcheck(icpyalloc(ptr))
#define ecatalloc(oldp, newp)   memcheck(icatalloc((oldp), (newp)))
#define INT_MAX   ((int) (((unsigned)~0)>>1))
#define INT_MIN   ((int) ~(((unsigned)~0)>>1))
#define MAX_BITS_IN_FILE   32
#define TIME_T_BITS_IN_FILE
#define DO(field)
#define LDAYSPERWEEK   ((long) DAYSPERWEEK)

Typedefs

typedef int zic_t

Functions

int getopt P ((int argc, char *const argv[], const char *options))
int link P ((const char *fromname, const char *toname))
int main (int argc, char *argv[])

Variables

char * optarg
int optind


Define Documentation

#define DC_DOM   0 /* 1..31 */

Definition at line 70 of file zic.c.

#define DC_DOWGEQ   1 /* 1..31 */

Definition at line 71 of file zic.c.

#define DC_DOWLEQ   2 /* 1..31 */

Definition at line 72 of file zic.c.

#define DO ( field   ) 

Value:

(void) fwrite((void *) tzh.field, \
                                (size_t) sizeof tzh.field, (size_t) 1, fp)

#define ecatalloc ( oldp,
newp   )     memcheck(icatalloc((oldp), (newp)))

Definition at line 381 of file zic.c.

#define ecpyalloc ( ptr   )     memcheck(icpyalloc(ptr))

Definition at line 380 of file zic.c.

#define emalloc ( size   )     memcheck(imalloc(size))

Definition at line 378 of file zic.c.

#define erealloc ( ptr,
size   )     memcheck(irealloc((ptr), (size)))

Definition at line 379 of file zic.c.

#define INT_MAX   ((int) (((unsigned)~0)>>1))

Definition at line 672 of file zic.c.

#define INT_MIN   ((int) ~(((unsigned)~0)>>1))

Definition at line 676 of file zic.c.

#define isascii ( x   )     1

Definition at line 36 of file zic.c.

#define LC_LEAP   3

Definition at line 174 of file zic.c.

#define LC_LINK   2

Definition at line 173 of file zic.c.

#define LC_RULE   0

Definition at line 171 of file zic.c.

#define LC_ZONE   1

Definition at line 172 of file zic.c.

#define LDAYSPERWEEK   ((long) DAYSPERWEEK)

#define LEAP_FIELDS   7

Definition at line 238 of file zic.c.

#define LF_FROM   1

Definition at line 224 of file zic.c.

#define LF_TO   2

Definition at line 225 of file zic.c.

#define LINK_FIELDS   3

Definition at line 226 of file zic.c.

#define LP_CORR   5

Definition at line 236 of file zic.c.

#define LP_DAY   3

Definition at line 234 of file zic.c.

#define LP_MONTH   2

Definition at line 233 of file zic.c.

#define LP_ROLL   6

Definition at line 237 of file zic.c.

#define LP_TIME   4

Definition at line 235 of file zic.c.

#define LP_YEAR   1

Definition at line 232 of file zic.c.

#define MAX_BITS_IN_FILE   32

Definition at line 686 of file zic.c.

#define MKDIR_UMASK   0755

Definition at line 23 of file zic.c.

#define RF_ABBRVAR   9

Definition at line 217 of file zic.c.

#define RF_COMMAND   4

Definition at line 212 of file zic.c.

#define RF_DAY   6

Definition at line 214 of file zic.c.

#define RF_HIYEAR   3

Definition at line 211 of file zic.c.

#define RF_LOYEAR   2

Definition at line 210 of file zic.c.

#define RF_MONTH   5

Definition at line 213 of file zic.c.

#define RF_NAME   1

Definition at line 209 of file zic.c.

#define RF_STDOFF   8

Definition at line 216 of file zic.c.

#define RF_TOD   7

Definition at line 215 of file zic.c.

#define RULE_FIELDS   10

Definition at line 218 of file zic.c.

#define TIME_T_BITS_IN_FILE

Value:

Definition at line 687 of file zic.c.

#define YR_MAXIMUM   1

Definition at line 245 of file zic.c.

#define YR_MINIMUM   0

Definition at line 244 of file zic.c.

#define YR_ONLY   2

Definition at line 246 of file zic.c.

#define ZF_FORMAT   4

Definition at line 183 of file zic.c.

#define ZF_GMTOFF   2

Definition at line 181 of file zic.c.

#define ZF_NAME   1

Definition at line 180 of file zic.c.

#define ZF_RULE   3

Definition at line 182 of file zic.c.

#define ZF_TILDAY   7

Definition at line 186 of file zic.c.

#define ZF_TILMONTH   6

Definition at line 185 of file zic.c.

#define ZF_TILTIME   8

Definition at line 187 of file zic.c.

#define ZF_TILYEAR   5

Definition at line 184 of file zic.c.

#define ZFC_FORMAT   2

Definition at line 197 of file zic.c.

#define ZFC_GMTOFF   0

Definition at line 195 of file zic.c.

#define ZFC_RULE   1

Definition at line 196 of file zic.c.

#define ZFC_TILDAY   5

Definition at line 200 of file zic.c.

#define ZFC_TILMONTH   4

Definition at line 199 of file zic.c.

#define ZFC_TILTIME   6

Definition at line 201 of file zic.c.

#define ZFC_TILYEAR   3

Definition at line 198 of file zic.c.

#define ZIC_MAX_ABBR_LEN_WO_WARN   6

Definition at line 14 of file zic.c.

#define ZONE_MAXFIELDS   9

Definition at line 189 of file zic.c.

#define ZONE_MINFIELDS   5

Definition at line 188 of file zic.c.

#define ZONEC_MAXFIELDS   7

Definition at line 203 of file zic.c.

#define ZONEC_MINFIELDS   3

Definition at line 202 of file zic.c.


Typedef Documentation

typedef int zic_t

Definition at line 7 of file zic.c.


Function Documentation

int main ( int argc  ,
char *  argv[] 
)

Definition at line 469 of file zic.c.

int link P ( (const char *fromname, const char *toname)   ) 

int getopt P ( (int argc, char *const argv[], const char *options)   ) 


Variable Documentation

char* optarg

Definition at line 31 of file getopt.c.

int optind

Definition at line 29 of file getopt.c.


Generated on Tue Mar 9 04:36:45 2010 for Minix by  doxygen 1.5.8