Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux
File: timex.h
/*****************************************************************************
[0] Fix | Delete
* *
[1] Fix | Delete
* Copyright (c) David L. Mills 1993 *
[2] Fix | Delete
* *
[3] Fix | Delete
* Permission to use, copy, modify, and distribute this software and its *
[4] Fix | Delete
* documentation for any purpose and without fee is hereby granted, provided *
[5] Fix | Delete
* that the above copyright notice appears in all copies and that both the *
[6] Fix | Delete
* copyright notice and this permission notice appear in supporting *
[7] Fix | Delete
* documentation, and that the name University of Delaware not be used in *
[8] Fix | Delete
* advertising or publicity pertaining to distribution of the software *
[9] Fix | Delete
* without specific, written prior permission. The University of Delaware *
[10] Fix | Delete
* makes no representations about the suitability this software for any *
[11] Fix | Delete
* purpose. It is provided "as is" without express or implied warranty. *
[12] Fix | Delete
* *
[13] Fix | Delete
*****************************************************************************/
[14] Fix | Delete
[15] Fix | Delete
/*
[16] Fix | Delete
* Modification history timex.h
[17] Fix | Delete
*
[18] Fix | Delete
* 29 Dec 97 Russell King
[19] Fix | Delete
* Moved CLOCK_TICK_RATE, CLOCK_TICK_FACTOR and FINETUNE to asm/timex.h
[20] Fix | Delete
* for ARM machines
[21] Fix | Delete
*
[22] Fix | Delete
* 9 Jan 97 Adrian Sun
[23] Fix | Delete
* Shifted LATCH define to allow access to alpha machines.
[24] Fix | Delete
*
[25] Fix | Delete
* 26 Sep 94 David L. Mills
[26] Fix | Delete
* Added defines for hybrid phase/frequency-lock loop.
[27] Fix | Delete
*
[28] Fix | Delete
* 19 Mar 94 David L. Mills
[29] Fix | Delete
* Moved defines from kernel routines to header file and added new
[30] Fix | Delete
* defines for PPS phase-lock loop.
[31] Fix | Delete
*
[32] Fix | Delete
* 20 Feb 94 David L. Mills
[33] Fix | Delete
* Revised status codes and structures for external clock and PPS
[34] Fix | Delete
* signal discipline.
[35] Fix | Delete
*
[36] Fix | Delete
* 28 Nov 93 David L. Mills
[37] Fix | Delete
* Adjusted parameters to improve stability and increase poll
[38] Fix | Delete
* interval.
[39] Fix | Delete
*
[40] Fix | Delete
* 17 Sep 93 David L. Mills
[41] Fix | Delete
* Created file $NTP/include/sys/timex.h
[42] Fix | Delete
* 07 Oct 93 Torsten Duwe
[43] Fix | Delete
* Derived linux/timex.h
[44] Fix | Delete
* 1995-08-13 Torsten Duwe
[45] Fix | Delete
* kernel PLL updated to 1994-12-13 specs (rfc-1589)
[46] Fix | Delete
* 1997-08-30 Ulrich Windl
[47] Fix | Delete
* Added new constant NTP_PHASE_LIMIT
[48] Fix | Delete
* 2004-08-12 Christoph Lameter
[49] Fix | Delete
* Reworked time interpolation logic
[50] Fix | Delete
*/
[51] Fix | Delete
#ifndef _LINUX_TIMEX_H
[52] Fix | Delete
#define _LINUX_TIMEX_H
[53] Fix | Delete
[54] Fix | Delete
#include <linux/time.h>
[55] Fix | Delete
[56] Fix | Delete
#define NTP_API 4 /* NTP API version */
[57] Fix | Delete
[58] Fix | Delete
/*
[59] Fix | Delete
* syscall interface - used (mainly by NTP daemon)
[60] Fix | Delete
* to discipline kernel clock oscillator
[61] Fix | Delete
*/
[62] Fix | Delete
struct timex {
[63] Fix | Delete
unsigned int modes; /* mode selector */
[64] Fix | Delete
__kernel_long_t offset; /* time offset (usec) */
[65] Fix | Delete
__kernel_long_t freq; /* frequency offset (scaled ppm) */
[66] Fix | Delete
__kernel_long_t maxerror;/* maximum error (usec) */
[67] Fix | Delete
__kernel_long_t esterror;/* estimated error (usec) */
[68] Fix | Delete
int status; /* clock command/status */
[69] Fix | Delete
__kernel_long_t constant;/* pll time constant */
[70] Fix | Delete
__kernel_long_t precision;/* clock precision (usec) (read only) */
[71] Fix | Delete
__kernel_long_t tolerance;/* clock frequency tolerance (ppm)
[72] Fix | Delete
* (read only)
[73] Fix | Delete
*/
[74] Fix | Delete
struct timeval time; /* (read only, except for ADJ_SETOFFSET) */
[75] Fix | Delete
__kernel_long_t tick; /* (modified) usecs between clock ticks */
[76] Fix | Delete
[77] Fix | Delete
__kernel_long_t ppsfreq;/* pps frequency (scaled ppm) (ro) */
[78] Fix | Delete
__kernel_long_t jitter; /* pps jitter (us) (ro) */
[79] Fix | Delete
int shift; /* interval duration (s) (shift) (ro) */
[80] Fix | Delete
__kernel_long_t stabil; /* pps stability (scaled ppm) (ro) */
[81] Fix | Delete
__kernel_long_t jitcnt; /* jitter limit exceeded (ro) */
[82] Fix | Delete
__kernel_long_t calcnt; /* calibration intervals (ro) */
[83] Fix | Delete
__kernel_long_t errcnt; /* calibration errors (ro) */
[84] Fix | Delete
__kernel_long_t stbcnt; /* stability limit exceeded (ro) */
[85] Fix | Delete
[86] Fix | Delete
int tai; /* TAI offset (ro) */
[87] Fix | Delete
[88] Fix | Delete
int :32; int :32; int :32; int :32;
[89] Fix | Delete
int :32; int :32; int :32; int :32;
[90] Fix | Delete
int :32; int :32; int :32;
[91] Fix | Delete
};
[92] Fix | Delete
[93] Fix | Delete
/*
[94] Fix | Delete
* Mode codes (timex.mode)
[95] Fix | Delete
*/
[96] Fix | Delete
#define ADJ_OFFSET 0x0001 /* time offset */
[97] Fix | Delete
#define ADJ_FREQUENCY 0x0002 /* frequency offset */
[98] Fix | Delete
#define ADJ_MAXERROR 0x0004 /* maximum time error */
[99] Fix | Delete
#define ADJ_ESTERROR 0x0008 /* estimated time error */
[100] Fix | Delete
#define ADJ_STATUS 0x0010 /* clock status */
[101] Fix | Delete
#define ADJ_TIMECONST 0x0020 /* pll time constant */
[102] Fix | Delete
#define ADJ_TAI 0x0080 /* set TAI offset */
[103] Fix | Delete
#define ADJ_SETOFFSET 0x0100 /* add 'time' to current time */
[104] Fix | Delete
#define ADJ_MICRO 0x1000 /* select microsecond resolution */
[105] Fix | Delete
#define ADJ_NANO 0x2000 /* select nanosecond resolution */
[106] Fix | Delete
#define ADJ_TICK 0x4000 /* tick value */
[107] Fix | Delete
[108] Fix | Delete
#define ADJ_OFFSET_SINGLESHOT 0x8001 /* old-fashioned adjtime */
[109] Fix | Delete
#define ADJ_OFFSET_SS_READ 0xa001 /* read-only adjtime */
[110] Fix | Delete
[111] Fix | Delete
/* NTP userland likes the MOD_ prefix better */
[112] Fix | Delete
#define MOD_OFFSET ADJ_OFFSET
[113] Fix | Delete
#define MOD_FREQUENCY ADJ_FREQUENCY
[114] Fix | Delete
#define MOD_MAXERROR ADJ_MAXERROR
[115] Fix | Delete
#define MOD_ESTERROR ADJ_ESTERROR
[116] Fix | Delete
#define MOD_STATUS ADJ_STATUS
[117] Fix | Delete
#define MOD_TIMECONST ADJ_TIMECONST
[118] Fix | Delete
#define MOD_TAI ADJ_TAI
[119] Fix | Delete
#define MOD_MICRO ADJ_MICRO
[120] Fix | Delete
#define MOD_NANO ADJ_NANO
[121] Fix | Delete
[122] Fix | Delete
[123] Fix | Delete
/*
[124] Fix | Delete
* Status codes (timex.status)
[125] Fix | Delete
*/
[126] Fix | Delete
#define STA_PLL 0x0001 /* enable PLL updates (rw) */
[127] Fix | Delete
#define STA_PPSFREQ 0x0002 /* enable PPS freq discipline (rw) */
[128] Fix | Delete
#define STA_PPSTIME 0x0004 /* enable PPS time discipline (rw) */
[129] Fix | Delete
#define STA_FLL 0x0008 /* select frequency-lock mode (rw) */
[130] Fix | Delete
[131] Fix | Delete
#define STA_INS 0x0010 /* insert leap (rw) */
[132] Fix | Delete
#define STA_DEL 0x0020 /* delete leap (rw) */
[133] Fix | Delete
#define STA_UNSYNC 0x0040 /* clock unsynchronized (rw) */
[134] Fix | Delete
#define STA_FREQHOLD 0x0080 /* hold frequency (rw) */
[135] Fix | Delete
[136] Fix | Delete
#define STA_PPSSIGNAL 0x0100 /* PPS signal present (ro) */
[137] Fix | Delete
#define STA_PPSJITTER 0x0200 /* PPS signal jitter exceeded (ro) */
[138] Fix | Delete
#define STA_PPSWANDER 0x0400 /* PPS signal wander exceeded (ro) */
[139] Fix | Delete
#define STA_PPSERROR 0x0800 /* PPS signal calibration error (ro) */
[140] Fix | Delete
[141] Fix | Delete
#define STA_CLOCKERR 0x1000 /* clock hardware fault (ro) */
[142] Fix | Delete
#define STA_NANO 0x2000 /* resolution (0 = us, 1 = ns) (ro) */
[143] Fix | Delete
#define STA_MODE 0x4000 /* mode (0 = PLL, 1 = FLL) (ro) */
[144] Fix | Delete
#define STA_CLK 0x8000 /* clock source (0 = A, 1 = B) (ro) */
[145] Fix | Delete
[146] Fix | Delete
/* read-only bits */
[147] Fix | Delete
#define STA_RONLY (STA_PPSSIGNAL | STA_PPSJITTER | STA_PPSWANDER | \
[148] Fix | Delete
STA_PPSERROR | STA_CLOCKERR | STA_NANO | STA_MODE | STA_CLK)
[149] Fix | Delete
[150] Fix | Delete
/*
[151] Fix | Delete
* Clock states (time_state)
[152] Fix | Delete
*/
[153] Fix | Delete
#define TIME_OK 0 /* clock synchronized, no leap second */
[154] Fix | Delete
#define TIME_INS 1 /* insert leap second */
[155] Fix | Delete
#define TIME_DEL 2 /* delete leap second */
[156] Fix | Delete
#define TIME_OOP 3 /* leap second in progress */
[157] Fix | Delete
#define TIME_WAIT 4 /* leap second has occurred */
[158] Fix | Delete
#define TIME_ERROR 5 /* clock not synchronized */
[159] Fix | Delete
#define TIME_BAD TIME_ERROR /* bw compat */
[160] Fix | Delete
[161] Fix | Delete
[162] Fix | Delete
#endif /* _LINUX_TIMEX_H */
[163] Fix | Delete
[164] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function