source: trunk/third/xntp/include/parse_conf.h @ 10832

Revision 10832, 1.3 KB checked in by brlewis, 27 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r10831, which included commits to RCS files with non-trunk default branches.
Line 
1/*
2 * /src/NTP/REPOSITORY/v4/include/parse_conf.h,v 3.8 1996/12/01 16:02:47 kardel Exp
3 *
4 * parse_conf.h,v 3.8 1996/12/01 16:02:47 kardel Exp
5 *
6 * Copyright (c) 1993,1994,1995,1996 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 dcfhrcsid[]="parse_conf.h,v 3.8 1996/12/01 16:02:47 kardel Exp";
19#endif
20
21/*
22 * field location structure (Meinberg clocks/simple format)
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
44struct format
45{
46  struct foff
47    {
48      char offset;              /* offset into buffer */
49      char length;              /* length of field */
50    } field_offsets[O_COUNT];
51  char *fixed_string;           /* string with must be chars (blanks = wildcards) */
52  u_long flags;
53};
54#endif
Note: See TracBrowser for help on using the repository browser.