This is a verbatim copy of the files at that stage of the repository that was built from the CVS import. It allows future development to see a bit of recent history, but without carrying around the baggage going back to 1997. If that is really required, git grafts can be used.
79 lines
2.2 KiB
C
79 lines
2.2 KiB
C
/*
|
|
$Header: /cvs/src/chrony/wrap_adjtimex.h,v 1.6 2002/11/19 21:33:42 richard Exp $
|
|
|
|
=======================================================================
|
|
|
|
chronyd/chronyc - Programs for keeping computer clocks accurate.
|
|
|
|
**********************************************************************
|
|
* Copyright (C) Richard P. Curnow 1997-2002
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of version 2 of the GNU General Public License as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
* 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. See the GNU
|
|
* General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
|
*
|
|
**********************************************************************
|
|
|
|
=======================================================================
|
|
|
|
The header file for the adjtimex wrapper
|
|
*/
|
|
|
|
#ifndef GOT_WRAP_ADJTIMEX_H
|
|
#define GOT_WRAP_ADJTIMEX_H
|
|
|
|
/* Cut-down version of struct timex */
|
|
struct tmx_params {
|
|
long tick;
|
|
long offset;
|
|
long freq;
|
|
double dfreq;
|
|
long maxerror;
|
|
long esterror;
|
|
|
|
unsigned sta_pll:1;
|
|
unsigned sta_ppsfreq:1;
|
|
unsigned sta_ppstime:1;
|
|
unsigned sta_fll:1;
|
|
unsigned sta_ins:1;
|
|
unsigned sta_del:1;
|
|
unsigned sta_unsync:1;
|
|
unsigned sta_freqhold:1;
|
|
unsigned sta_ppssignal:1;
|
|
unsigned sta_ppsjitter:1;
|
|
unsigned sta_ppswander:1;
|
|
unsigned sta_ppserror:1;
|
|
unsigned sta_clockerr:1;
|
|
|
|
int status;
|
|
long constant;
|
|
long precision;
|
|
long tolerance;
|
|
long ppsfreq;
|
|
long jitter;
|
|
int shift;
|
|
long stabil;
|
|
long jitcnt;
|
|
long calcnt;
|
|
long errcnt;
|
|
long stbcnt;
|
|
};
|
|
|
|
int TMX_SetTick(long tick);
|
|
int TMX_ApplyOffset(long *offset);
|
|
int TMX_SetFrequency(double freq, long tick);
|
|
int TMX_GetFrequency(double *freq);
|
|
int TMX_GetOffsetLeft(long *offset);
|
|
int TMX_ReadCurrentParams(struct tmx_params *params);
|
|
|
|
#endif /* GOT_WRAP_ADJTIMEX_H */
|
|
|