acpi: Select proper one shot timer based on CPUs' C3 state.
[dragonfly.git] / contrib / bsdinstaller-1.1.6 / src / backend / installer / fn_zonetab.h
1 /*
2  * Copyright (c)2004 The DragonFly Project.  All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  *
8  *   Redistributions of source code must retain the above copyright
9  *   notice, this list of conditions and the following disclaimer.
10  *
11  *   Redistributions in binary form must reproduce the above copyright
12  *   notice, this list of conditions and the following disclaimer in
13  *   the documentation and/or other materials provided with the
14  *   distribution.
15  *
16  *   Neither the name of the DragonFly Project nor the names of its
17  *   contributors may be used to endorse or promote products derived
18  *   from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
23  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
24  * COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
25  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
26  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
29  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
31  * OF THE POSSIBILITY OF SUCH DAMAGE.
32  */
33
34 /*
35  * fn_zonetab.h
36  * $Id: fn_zonetab.h,v 1.1 2004/07/15 11:01:21 dodell Exp $
37  */
38
39 #ifndef _FN_ZONETAB_H_
40 #define _FN_ZONETAB_H_
41
42 #define ZONETAB_FILE "/usr/share/zoneinfo/zone.tab"
43
44 #define ZT_CC                   0
45 #define ZT_COORDS               1
46 #define ZT_REGION               2
47 #define ZT_LOCALE               3
48 #define ZT_LOCALE_ENDL  4
49 #define ZT_COMMENTS             5
50 #define ZT_NOTOK                6
51
52 struct zonetab {
53         char *zt_cc;
54         char *zt_coords;
55         char *zt_region;
56         char *zt_locale;
57         char *zt_comments;
58         struct zonetab *next;
59 };      
60
61 struct zt_parse {
62         char *buf;
63         char tok[1255];
64         int state;
65 };
66
67 char    *zt_readfile(char *, int, FILE *);
68 void     zt_get_token(struct zt_parse *);
69 void     zt_list_free(struct zonetab *);
70 void     zt_parse(struct zonetab *);
71
72 #endif