1249259Sdim/*
2249259Sdim * /src/NTP/REPOSITORY/ntp4-dev/include/parse.h,v 4.12 2007/01/14 08:36:03 kardel RELEASE_20070114_A
3249259Sdim *
4249259Sdim * parse.h,v 4.12 2007/01/14 08:36:03 kardel RELEASE_20070114_A
5249259Sdim *
6249259Sdim * Copyright (c) 1995-2015 by Frank Kardel <kardel <AT> ntp.org>
7249259Sdim * Copyright (c) 1989-1994 by Frank Kardel, Friedrich-Alexander Universitaet Erlangen-Nuernberg, Germany
8249259Sdim *
9249259Sdim * Redistribution and use in source and binary forms, with or without
10263508Sdim * modification, are permitted provided that the following conditions
11249259Sdim * are met:
12249259Sdim * 1. Redistributions of source code must retain the above copyright
13249259Sdim *    notice, this list of conditions and the following disclaimer.
14249259Sdim * 2. Redistributions in binary form must reproduce the above copyright
15263508Sdim *    notice, this list of conditions and the following disclaimer in the
16249259Sdim *    documentation and/or other materials provided with the distribution.
17249259Sdim * 3. Neither the name of the author nor the names of its contributors
18249259Sdim *    may be used to endorse or promote products derived from this software
19249259Sdim *    without specific prior written permission.
20249259Sdim *
21249259Sdim * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
22249259Sdim * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23249259Sdim * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24249259Sdim * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
25249259Sdim * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26249259Sdim * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27249259Sdim * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28249259Sdim * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29249259Sdim * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30249259Sdim * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31249259Sdim * SUCH DAMAGE.
32249259Sdim *
33249259Sdim */
34249259Sdim
35249259Sdim#ifndef __PARSE_H__
36249259Sdim#define __PARSE_H__
37249259Sdim#if	!(defined(lint) || defined(__GNUC__))
38249259Sdim  static char parsehrcsid[]="parse.h,v 4.12 2007/01/14 08:36:03 kardel RELEASE_20070114_A";
39249259Sdim#endif
40249259Sdim
41249259Sdim#include "ntp_types.h"
42249259Sdim
43249259Sdim#include "parse_conf.h"
44249259Sdim
45249259Sdim/*
46249259Sdim * we use the following datastructures in two modes
47249259Sdim * either in the NTP itself where we use NTP time stamps at some places
48249259Sdim * or in the kernel, where only struct timeval will be used.
49249259Sdim */
50249259Sdim#undef PARSEKERNEL
51249259Sdim#if defined(KERNEL) || defined(_KERNEL)
52249259Sdim#ifndef PARSESTREAM
53249259Sdim#define PARSESTREAM
54249259Sdim#endif
55249259Sdim#endif
56249259Sdim#if defined(PARSESTREAM) && defined(HAVE_SYS_STREAM_H)
57249259Sdim#define PARSEKERNEL
58249259Sdim#endif
59263508Sdim#ifdef PARSEKERNEL
60249259Sdim#ifndef _KERNEL
61249259Sdimextern caddr_t kmem_alloc (unsigned int);
62249259Sdimextern caddr_t kmem_free (caddr_t, unsigned int);
63249259Sdimextern unsigned int splx (unsigned int);
64249259Sdimextern unsigned int splhigh (void);
65249259Sdimextern unsigned int splclock (void);
66263508Sdim#define MALLOC(_X_) (char *)kmem_alloc(_X_)
67249259Sdim#define FREE(_X_, _Y_) kmem_free((caddr_t)_X_, _Y_)
68249259Sdim#else
69249259Sdim#include <sys/kmem.h>
70249259Sdim#define MALLOC(_X_) (char *)kmem_alloc(_X_, KM_SLEEP)
71249259Sdim#define FREE(_X_, _Y_) kmem_free((caddr_t)_X_, _Y_)
72249259Sdim#endif
73249259Sdim#else
74249259Sdim#define MALLOC(_X_) malloc(_X_)
75249259Sdim#define FREE(_X_, _Y_) free(_X_)
76249259Sdim#endif
77249259Sdim
78249259Sdim#if defined(PARSESTREAM) && defined(HAVE_SYS_STREAM_H)
79249259Sdim#include <sys/stream.h>
80249259Sdim#include <sys/stropts.h>
81249259Sdim#else	/* STREAM */
82249259Sdim#include <stdio.h>
83249259Sdim#include "ntp_syslog.h"
84249259Sdim#ifdef	DEBUG
85249259Sdim#define DD_PARSE 5
86249259Sdim#define DD_RAWDCF 4
87249259Sdim#define parseprintf(LEVEL, ARGS) if (debug > LEVEL) printf ARGS
88249259Sdim#else	/* DEBUG */
89249259Sdim#define parseprintf(LEVEL, ARGS)
90249259Sdim#endif	/* DEBUG */
91249259Sdim#endif	/* PARSESTREAM */
92263508Sdim
93263508Sdim#if defined(timercmp) && defined(__GNUC__)
94263508Sdim#undef timercmp
95263508Sdim#endif
96263508Sdim
97263508Sdim#if !defined(timercmp)
98263508Sdim#define	timercmp(tvp, uvp, cmp)	\
99263508Sdim	((tvp)->tv_sec cmp (uvp)->tv_sec || \
100263508Sdim	 ((tvp)->tv_sec == (uvp)->tv_sec && (tvp)->tv_usec cmp (uvp)->tv_usec))
101263508Sdim#endif
102263508Sdim
103263508Sdim#ifndef TIMES10
104263508Sdim#define TIMES10(_X_)	(((_X_) << 3) + ((_X_) << 1))
105263508Sdim#endif
106249259Sdim
107249259Sdim/*
108249259Sdim * some constants useful for GPS time conversion
109249259Sdim */
110249259Sdim#define GPSORIGIN       2524953600UL         /* NTP origin - GPS origin in seconds */
111249259Sdim#define GPSWEEKS        1024                 /* number of weeks until the GPS epch rolls over */
112249259Sdim
113249259Sdim/*
114249259Sdim * state flags
115263508Sdim */
116249259Sdim#define PARSEB_POWERUP            0x00000001 /* no synchronisation */
117249259Sdim#define PARSEB_NOSYNC             0x00000002 /* timecode currently not confirmed */
118249259Sdim
119249259Sdim/*
120249259Sdim * time zone information
121249259Sdim */
122249259Sdim#define PARSEB_ANNOUNCE           0x00000010 /* switch time zone warning (DST switch) */
123249259Sdim#define PARSEB_DST                0x00000020 /* DST in effect */
124249259Sdim#define PARSEB_UTC		  0x00000040 /* UTC time */
125249259Sdim
126249259Sdim/*
127249259Sdim * leap information
128249259Sdim */
129249259Sdim#define PARSEB_LEAPDEL		  0x00000100 /* LEAP deletion warning */
130249259Sdim#define PARSEB_LEAPADD		  0x00000200 /* LEAP addition warning */
131249259Sdim#define PARSEB_LEAPS		  0x00000300 /* LEAP warnings */
132249259Sdim#define PARSEB_LEAPSECOND	  0x00000400 /* actual leap second */
133249259Sdim/*
134249259Sdim * optional status information
135249259Sdim */
136249259Sdim#define PARSEB_CALLBIT		  0x00001000 /* "call bit" used to signalize irregularities in the control facilities */
137249259Sdim#define PARSEB_POSITION		  0x00002000 /* position available */
138249259Sdim#define PARSEB_MESSAGE            0x00004000 /* addtitional message data */
139249259Sdim/*
140249259Sdim * feature information
141249259Sdim */
142249259Sdim#define PARSEB_S_LEAP		  0x00010000 /* supports LEAP */
143249259Sdim#define PARSEB_S_CALLBIT	  0x00020000 /* supports callbit information */
144249259Sdim#define PARSEB_S_PPS     	  0x00040000 /* supports PPS time stamping */
145249259Sdim#define PARSEB_S_POSITION	  0x00080000 /* supports position information (GPS) */
146249259Sdim
147249259Sdim/*
148249259Sdim * time stamp availability
149249259Sdim */
150249259Sdim#define PARSEB_TIMECODE		  0x10000000 /* valid time code sample */
151249259Sdim#define PARSEB_PPS		  0x20000000 /* valid PPS sample */
152249259Sdim
153249259Sdim#define PARSE_TCINFO		(PARSEB_ANNOUNCE|PARSEB_POWERUP|PARSEB_NOSYNC|PARSEB_DST|\
154249259Sdim				 PARSEB_UTC|PARSEB_LEAPS|PARSEB_CALLBIT|PARSEB_S_LEAP|\
155249259Sdim				 PARSEB_S_LOCATION|PARSEB_TIMECODE|PARSEB_MESSAGE)
156249259Sdim
157249259Sdim#define PARSE_POWERUP(x)        ((x) & PARSEB_POWERUP)
158249259Sdim#define PARSE_NOSYNC(x)         (((x) & (PARSEB_POWERUP|PARSEB_NOSYNC)) == PARSEB_NOSYNC)
159249259Sdim#define PARSE_SYNC(x)           (((x) & (PARSEB_POWERUP|PARSEB_NOSYNC)) == 0)
160249259Sdim#define PARSE_ANNOUNCE(x)       ((x) & PARSEB_ANNOUNCE)
161249259Sdim#define PARSE_DST(x)            ((x) & PARSEB_DST)
162249259Sdim#define PARSE_UTC(x)		((x) & PARSEB_UTC)
163249259Sdim#define PARSE_LEAPADD(x)	(PARSE_SYNC(x) && (((x) & PARSEB_LEAPS) == PARSEB_LEAPADD))
164249259Sdim#define PARSE_LEAPDEL(x)	(PARSE_SYNC(x) && (((x) & PARSEB_LEAPS) == PARSEB_LEAPDEL))
165249259Sdim#define PARSE_CALLBIT(x)	((x) & PARSEB_CALLBIT)
166249259Sdim#define PARSE_LEAPSECOND(x)	(PARSE_SYNC(x) && ((x) & PARSEB_LEAP_SECOND))
167249259Sdim
168249259Sdim#define PARSE_S_LEAP(x)		((x) & PARSEB_S_LEAP)
169249259Sdim#define PARSE_S_CALLBIT(x)	((x) & PARSEB_S_CALLBIT)
170249259Sdim#define PARSE_S_PPS(x)		((x) & PARSEB_S_PPS)
171249259Sdim#define PARSE_S_POSITION(x)	((x) & PARSEB_S_POSITION)
172249259Sdim
173249259Sdim#define PARSE_TIMECODE(x)	((x) & PARSEB_TIMECODE)
174249259Sdim#define PARSE_PPS(x)		((x) & PARSEB_PPS)
175249259Sdim#define PARSE_POSITION(x)	((x) & PARSEB_POSITION)
176249259Sdim#define PARSE_MESSAGE(x)	((x) & PARSEB_MESSAGE)
177249259Sdim
178249259Sdim/*
179249259Sdim * operation flags - lower nibble contains fudge flags
180249259Sdim */
181249259Sdim#define PARSE_TRUSTTIME     CLK_FLAG1  /* use flag1 to indicate the time2 references mean the trust time */
182249259Sdim#define PARSE_CLEAR         CLK_FLAG2  /* use flag2 to control pps on assert */
183249259Sdim#define PARSE_PPSKERNEL     CLK_FLAG3  /* use flag3 to bind PPS to kernel */
184249259Sdim#define PARSE_LEAP_DELETE   CLK_FLAG4  /* use flag4 to force leap deletion - only necessary when earth slows down */
185249259Sdim
186249259Sdim#define PARSE_FIXED_FMT     0x10  /* fixed format */
187249259Sdim#define PARSE_PPSCLOCK      0x20  /* try to get PPS time stamp via ppsclock ioctl */
188249259Sdim
189249259Sdim/*
190249259Sdim * size of buffers
191249259Sdim */
192249259Sdim#define PARSE_TCMAX	    400	  /* maximum addition data size */
193249259Sdim
194249259Sdimtypedef union
195249259Sdim{
196249259Sdim  struct timeval tv;		/* timeval - kernel view */
197249259Sdim  l_fp           fp;		/* fixed point - ntp view */
198249259Sdim} timestamp_t;
199249259Sdim
200249259Sdim/*
201249259Sdim * standard time stamp structure
202249259Sdim */
203249259Sdimstruct parsetime
204249259Sdim{
205249259Sdim  u_long  parse_status;	/* data status - CVT_OK, CVT_NONE, CVT_FAIL ... */
206249259Sdim  timestamp_t	 parse_time;	/* PARSE timestamp */
207249259Sdim  timestamp_t	 parse_stime;	/* telegram sample timestamp */
208249259Sdim  timestamp_t	 parse_ptime;	/* PPS time stamp */
209249259Sdim  long           parse_usecerror;	/* sampled usec error */
210249259Sdim  u_long	 parse_state;	/* current receiver state */
211249259Sdim  unsigned short parse_format;	/* format code */
212249259Sdim  unsigned short parse_msglen;	/* length of message */
213249259Sdim  unsigned char  parse_msg[PARSE_TCMAX]; /* original messages */
214249259Sdim};
215249259Sdim
216249259Sdimtypedef struct parsetime parsetime_t;
217249259Sdim
218249259Sdim/*---------- STREAMS interface ----------*/
219249259Sdim
220249259Sdim#ifdef HAVE_SYS_STREAM_H
221249259Sdim/*
222249259Sdim * ioctls
223249259Sdim */
224249259Sdim#define PARSEIOC_ENABLE		(('D'<<8) + 'E')
225249259Sdim#define PARSEIOC_DISABLE	(('D'<<8) + 'D')
226249259Sdim#define PARSEIOC_SETFMT         (('D'<<8) + 'f')
227249259Sdim#define PARSEIOC_GETFMT	        (('D'<<8) + 'F')
228249259Sdim#define PARSEIOC_SETCS	        (('D'<<8) + 'C')
229249259Sdim#define PARSEIOC_TIMECODE	(('D'<<8) + 'T')
230249259Sdim
231249259Sdim#endif
232249259Sdim
233249259Sdim/*------ IO handling flags (sorry) ------*/
234249259Sdim
235249259Sdim#define PARSE_IO_CSIZE	0x00000003
236249259Sdim#define PARSE_IO_CS5	0x00000000
237249259Sdim#define PARSE_IO_CS6	0x00000001
238249259Sdim#define PARSE_IO_CS7	0x00000002
239249259Sdim#define PARSE_IO_CS8	0x00000003
240249259Sdim
241249259Sdim/*
242249259Sdim * ioctl structure
243249259Sdim */
244249259Sdimunion parsectl
245249259Sdim{
246249259Sdim  struct parsegettc
247249259Sdim    {
248249259Sdim      u_long         parse_state;	/* last state */
249249259Sdim      u_long         parse_badformat; /* number of bad packets since last query */
250249259Sdim      unsigned short parse_format;/* last decoded format */
251249259Sdim      unsigned short parse_count;	/* count of valid time code bytes */
252249259Sdim      char           parse_buffer[PARSE_TCMAX+1]; /* timecode buffer */
253249259Sdim    } parsegettc;
254249259Sdim
255249259Sdim  struct parseformat
256249259Sdim    {
257249259Sdim      unsigned short parse_format;/* number of examined format */
258249259Sdim      unsigned short parse_count;	/* count of valid string bytes */
259249259Sdim      char           parse_buffer[PARSE_TCMAX+1]; /* format code string */
260249259Sdim    } parseformat;
261249259Sdim
262249259Sdim  struct parsesetcs
263249259Sdim    {
264249259Sdim      u_long         parse_cs;	/* character size (needed for stripping) */
265249259Sdim    } parsesetcs;
266249259Sdim};
267249259Sdim
268249259Sdimtypedef union parsectl parsectl_t;
269249259Sdim
270249259Sdim/*------ for conversion routines --------*/
271249259Sdim
272249259Sdimstruct parse			/* parse module local data */
273249259Sdim{
274249259Sdim  int            parse_flags;	/* operation and current status flags */
275249259Sdim
276263508Sdim  int		 parse_ioflags;	   /* io handling flags (5-8 Bit control currently) */
277263508Sdim
278263508Sdim  /*
279263508Sdim   * private data - fixed format only
280263508Sdim   */
281263508Sdim  unsigned short parse_plen;	/* length of private data */
282249259Sdim  void          *parse_pdata;	/* private data pointer */
283249259Sdim
284249259Sdim  /*
285249259Sdim   * time code input buffer (from RS232 or PPS)
286249259Sdim   */
287249259Sdim  unsigned short parse_index;	/* current buffer index */
288249259Sdim  char          *parse_data;    /* data buffer */
289249259Sdim  unsigned short parse_dsize;	/* size of data buffer */
290249259Sdim  unsigned short parse_lformat;	/* last format used */
291249259Sdim  u_long         parse_lstate;	/* last state code */
292249259Sdim  char          *parse_ldata;	/* last data buffer */
293249259Sdim  unsigned short parse_ldsize;	/* last data buffer length */
294249259Sdim  u_long         parse_badformat;	/* number of unparsable pakets */
295249259Sdim
296249259Sdim  timestamp_t    parse_lastchar; /* last time a character was received */
297249259Sdim  parsetime_t    parse_dtime;	/* external data prototype */
298249259Sdim};
299249259Sdim
300249259Sdimtypedef struct parse parse_t;
301249259Sdim
302249259Sdimstruct clocktime		/* clock time broken up from time code */
303249259Sdim{
304249259Sdim  long day;
305249259Sdim  long month;
306249259Sdim  long year;
307249259Sdim  long hour;
308249259Sdim  long minute;
309249259Sdim  long second;
310249259Sdim  long usecond;
311249259Sdim  long utcoffset;	/* in seconds */
312249259Sdim  time_t utctime;	/* the actual time - alternative to date/time */
313249259Sdim  u_long flags;		/* current clock status */
314249259Sdim};
315249259Sdim
316249259Sdimtypedef struct clocktime clocktime_t;
317249259Sdim
318249259Sdim/*
319249259Sdim * parser related return/error codes
320249259Sdim */
321249259Sdim#define CVT_MASK	 (unsigned)0x0000000F /* conversion exit code */
322249259Sdim#define   CVT_NONE	 (unsigned)0x00000001 /* format not applicable */
323249259Sdim#define   CVT_FAIL	 (unsigned)0x00000002 /* conversion failed - error code returned */
324249259Sdim#define   CVT_OK	 (unsigned)0x00000004 /* conversion succeeded */
325249259Sdim#define   CVT_SKIP	 (unsigned)0x00000008 /* conversion succeeded */
326249259Sdim#define CVT_ADDITIONAL   (unsigned)0x00000010 /* additional data is available */
327249259Sdim#define CVT_BADFMT	 (unsigned)0x00000100 /* general format error - (unparsable) */
328249259Sdim#define CVT_BADDATE      (unsigned)0x00000200 /* date field incorrect */
329249259Sdim#define CVT_BADTIME	 (unsigned)0x00000400 /* time field incorrect */
330249259Sdim
331249259Sdim/*
332249259Sdim * return codes used by special input parsers
333249259Sdim */
334249259Sdim#define PARSE_INP_SKIP  0x00	/* discard data - may have been consumed */
335249259Sdim#define PARSE_INP_TIME  0x01	/* time code assembled */
336249259Sdim#define PARSE_INP_PARSE 0x02	/* parse data using normal algorithm */
337249259Sdim#define PARSE_INP_DATA  0x04	/* additional data to pass up */
338249259Sdim#define PARSE_INP_SYNTH 0x08	/* just pass up synthesized time */
339249259Sdim
340249259Sdim/*
341249259Sdim * PPS edge info
342263508Sdim */
343263508Sdim#define SYNC_ZERO	0x00
344263508Sdim#define SYNC_ONE	0x01
345263508Sdim
346263508Sdimtypedef u_long parse_inp_fnc_t(parse_t *, char, timestamp_t *);
347263508Sdimtypedef u_long parse_cvt_fnc_t(unsigned char *, int, struct format *, clocktime_t *, void *);
348263508Sdimtypedef u_long parse_pps_fnc_t(parse_t *, int, timestamp_t *);
349263508Sdim
350249259Sdimstruct clockformat
351249259Sdim{
352249259Sdim  /* special input protocol - implies fixed format */
353249259Sdim  parse_inp_fnc_t *input;
354249259Sdim  /* conversion routine */
355249259Sdim  parse_cvt_fnc_t *convert;
356249259Sdim  /* routine for handling RS232 sync events (time stamps) */
357249259Sdim  /* PPS input routine */
358249259Sdim  parse_pps_fnc_t *syncpps;
359249259Sdim  /* time code synthesizer */
360249259Sdim
361249259Sdim  void           *data;		/* local parameters */
362249259Sdim  const char     *name;		/* clock format name */
363249259Sdim  unsigned short  length;	/* maximum length of data packet */
364249259Sdim  unsigned short  plen;		/* length of private data - implies fixed format */
365249259Sdim};
366249259Sdim
367249259Sdimtypedef struct clockformat clockformat_t;
368249259Sdim
369249259Sdim/*
370249259Sdim * parse interface
371249259Sdim */
372249259Sdimextern int  parse_ioinit (parse_t *);
373249259Sdimextern void parse_ioend (parse_t *);
374249259Sdimextern int  parse_ioread (parse_t *, char, timestamp_t *);
375249259Sdimextern int  parse_iopps (parse_t *, int, timestamp_t *);
376249259Sdimextern void parse_iodone (parse_t *);
377249259Sdimextern int  parse_timecode (parsectl_t *, parse_t *);
378249259Sdimextern int  parse_getfmt (parsectl_t *, parse_t *);
379249259Sdimextern int  parse_setfmt (parsectl_t *, parse_t *);
380249259Sdimextern int  parse_setcs (parsectl_t *, parse_t *);
381249259Sdim
382249259Sdimextern unsigned int parse_restart (parse_t *, char);
383249259Sdimextern unsigned int parse_addchar (parse_t *, char);
384249259Sdimextern unsigned int parse_end (parse_t *);
385249259Sdim
386249259Sdimextern int Strok (const unsigned char *, const unsigned char *);
387249259Sdimextern int Stoi (const unsigned char *, long *, int);
388249259Sdim
389249259Sdimextern time_t parse_to_unixtime (clocktime_t *, u_long *);
390249259Sdimextern u_long updatetimeinfo (parse_t *, u_long);
391249259Sdimextern void syn_simple (parse_t *, timestamp_t *, struct format *, u_long);
392249259Sdimextern parse_pps_fnc_t pps_simple;
393249259Sdimextern parse_pps_fnc_t pps_one;
394249259Sdimextern parse_pps_fnc_t pps_zero;
395249259Sdimextern int parse_timedout (parse_t *, timestamp_t *, struct timeval *);
396249259Sdim
397249259Sdim#endif
398249259Sdim
399249259Sdim/*
400249259Sdim * History:
401249259Sdim *
402263508Sdim * parse.h,v
403263508Sdim * Revision 4.12  2007/01/14 08:36:03  kardel
404249259Sdim * make timestamp union anonymous to avoid conflicts with
405249259Sdim * some OSes that choose to create a nameing conflic here.
406249259Sdim *
407249259Sdim * Revision 4.11  2005/06/25 10:58:45  kardel
408249259Sdim * add missing log keywords
409249259Sdim *
410249259Sdim * Revision 4.5  1998/08/09 22:23:32  kardel
411249259Sdim * 4.0.73e2 adjustments
412249259Sdim *
413249259Sdim * Revision 4.4  1998/06/14 21:09:27  kardel
414249259Sdim * Sun acc cleanup
415249259Sdim *
416249259Sdim * Revision 4.3  1998/06/13 11:49:25  kardel
417249259Sdim * STREAM macro gone in favor of HAVE_SYS_STREAM_H
418249259Sdim *
419249259Sdim * Revision 4.2  1998/06/12 15:14:25  kardel
420249259Sdim * fixed prototypes
421249259Sdim *
422249259Sdim * Revision 4.1  1998/05/24 10:07:59  kardel
423249259Sdim * removed old data structure cruft (new input model)
424263508Sdim * new PARSE_INP* macros for input handling
425263508Sdim * removed old SYNC_* macros from old input model
426263508Sdim * (struct clockformat): removed old parse functions in favor of the
427263508Sdim * new input model
428263508Sdim * updated prototypes
429263508Sdim *
430263508Sdim * form V3 3.31 - log info deleted 1998/04/11 kardel
431263508Sdim */
432263508Sdim