xref: /freebsd/contrib/ntp/include/parse_conf.h (revision 1e413cf93298b5b97441a21d9a50fdcd0ee9945e)
1 /*
2  * /src/NTP/ntp-4/include/parse_conf.h,v 4.2 1998/06/14 21:09:28 kardel RELEASE_19990228_A
3  *
4  * parse_conf.h,v 4.2 1998/06/14 21:09:28 kardel RELEASE_19990228_A
5  *
6  * Copyright (c) 1993, 1994, 1995, 1996, 1997, 1998 by Frank Kardel
7  * Friedrich-Alexander Universit�t Erlangen-N�rnberg, Germany
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12  *
13  */
14 
15 #ifndef __PARSE_CONF_H__
16 #define __PARSE_CONF_H__
17 #if	!(defined(lint) || defined(__GNUC__))
18   static char prshrcsid[] = "parse_conf.h,v 4.2 1998/06/14 21:09:28 kardel RELEASE_19990228_A";
19 #endif
20 
21 /*
22  * field location structure
23  */
24 #define O_DAY	0
25 #define O_MONTH 1
26 #define O_YEAR	2
27 #define O_HOUR	3
28 #define O_MIN	4
29 #define	O_SEC	5
30 #define O_WDAY	6
31 #define O_FLAGS 7
32 #define O_ZONE  8
33 #define O_UTCHOFFSET 9
34 #define O_UTCMOFFSET 10
35 #define O_UTCSOFFSET 11
36 #define O_COUNT (O_UTCSOFFSET+1)
37 
38 #define MBG_EXTENDED	0x00000001
39 
40 /*
41  * see below for field offsets
42  */
43 
44 struct format
45 {
46   struct foff
47     {
48       unsigned short offset;		/* offset into buffer */
49       unsigned short length;		/* length of field */
50     }         field_offsets[O_COUNT];
51   const unsigned char *fixed_string;		/* string with must be chars (blanks = wildcards) */
52   u_long      flags;
53 };
54 #endif
55