1993-12-21 18:36:48 +00:00
|
|
|
/*
|
1994-09-29 23:04:24 +00:00
|
|
|
* /src/NTP/REPOSITORY/v3/include/parse_conf.h,v 3.6 1994/05/30 10:19:49 kardel Exp
|
1993-12-21 18:36:48 +00:00
|
|
|
*
|
1994-09-29 23:04:24 +00:00
|
|
|
* parse_conf.h,v 3.6 1994/05/30 10:19:49 kardel Exp
|
1993-12-21 18:36:48 +00:00
|
|
|
*
|
1994-02-03 22:09:07 +00:00
|
|
|
* Copyright (c) 1993,1994
|
1993-12-21 18:36:48 +00:00
|
|
|
* Frank Kardel Friedrich-Alexander Universitaet Erlangen-Nuernberg
|
1995-05-30 03:57:47 +00:00
|
|
|
*
|
1993-12-21 18:36:48 +00:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __PARSE_CONF_H__
|
|
|
|
#define __PARSE_CONF_H__
|
|
|
|
#if !(defined(lint) || defined(__GNUC__))
|
1994-09-29 23:04:24 +00:00
|
|
|
static char dcfhrcsid[]="parse_conf.h,v 3.6 1994/05/30 10:19:49 kardel Exp FAU";
|
1993-12-21 18:36:48 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/*
|
|
|
|
* field location structure (Meinberg clocks/simple format)
|
|
|
|
*/
|
|
|
|
#define O_DAY 0
|
|
|
|
#define O_MONTH 1
|
|
|
|
#define O_YEAR 2
|
|
|
|
#define O_HOUR 3
|
|
|
|
#define O_MIN 4
|
|
|
|
#define O_SEC 5
|
|
|
|
#define O_WDAY 6
|
|
|
|
#define O_FLAGS 7
|
|
|
|
#define O_ZONE 8
|
|
|
|
#define O_UTCHOFFSET 9
|
|
|
|
#define O_UTCMOFFSET 10
|
|
|
|
#define O_UTCSOFFSET 11
|
|
|
|
#define O_COUNT (O_UTCSOFFSET+1)
|
|
|
|
|
|
|
|
#define MBG_EXTENDED 0x00000001
|
|
|
|
|
|
|
|
/*
|
|
|
|
* see below for field offsets
|
|
|
|
*/
|
|
|
|
|
|
|
|
struct format
|
|
|
|
{
|
|
|
|
struct foff
|
|
|
|
{
|
|
|
|
char offset; /* offset into buffer */
|
|
|
|
char length; /* length of field */
|
|
|
|
} field_offsets[O_COUNT];
|
|
|
|
char *fixed_string; /* string with must be chars (blanks = wildcards) */
|
1994-09-29 23:04:24 +00:00
|
|
|
u_long flags;
|
1993-12-21 18:36:48 +00:00
|
|
|
};
|
|
|
|
#endif
|