Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/bits
File: timex.h
/* Copyright (C) 1995-2018 Free Software Foundation, Inc.
[0] Fix | Delete
This file is part of the GNU C Library.
[1] Fix | Delete
[2] Fix | Delete
The GNU C Library is free software; you can redistribute it and/or
[3] Fix | Delete
modify it under the terms of the GNU Lesser General Public
[4] Fix | Delete
License as published by the Free Software Foundation; either
[5] Fix | Delete
version 2.1 of the License, or (at your option) any later version.
[6] Fix | Delete
[7] Fix | Delete
The GNU C Library is distributed in the hope that it will be useful,
[8] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[9] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[10] Fix | Delete
Lesser General Public License for more details.
[11] Fix | Delete
[12] Fix | Delete
You should have received a copy of the GNU Lesser General Public
[13] Fix | Delete
License along with the GNU C Library; if not, see
[14] Fix | Delete
<http://www.gnu.org/licenses/>. */
[15] Fix | Delete
[16] Fix | Delete
#ifndef _BITS_TIMEX_H
[17] Fix | Delete
#define _BITS_TIMEX_H 1
[18] Fix | Delete
[19] Fix | Delete
#include <bits/types.h>
[20] Fix | Delete
#include <bits/types/struct_timeval.h>
[21] Fix | Delete
[22] Fix | Delete
/* These definitions from linux/timex.h as of 3.18. */
[23] Fix | Delete
[24] Fix | Delete
struct timex
[25] Fix | Delete
{
[26] Fix | Delete
unsigned int modes; /* mode selector */
[27] Fix | Delete
__syscall_slong_t offset; /* time offset (usec) */
[28] Fix | Delete
__syscall_slong_t freq; /* frequency offset (scaled ppm) */
[29] Fix | Delete
__syscall_slong_t maxerror; /* maximum error (usec) */
[30] Fix | Delete
__syscall_slong_t esterror; /* estimated error (usec) */
[31] Fix | Delete
int status; /* clock command/status */
[32] Fix | Delete
__syscall_slong_t constant; /* pll time constant */
[33] Fix | Delete
__syscall_slong_t precision; /* clock precision (usec) (ro) */
[34] Fix | Delete
__syscall_slong_t tolerance; /* clock frequency tolerance (ppm) (ro) */
[35] Fix | Delete
struct timeval time; /* (read only, except for ADJ_SETOFFSET) */
[36] Fix | Delete
__syscall_slong_t tick; /* (modified) usecs between clock ticks */
[37] Fix | Delete
__syscall_slong_t ppsfreq; /* pps frequency (scaled ppm) (ro) */
[38] Fix | Delete
__syscall_slong_t jitter; /* pps jitter (us) (ro) */
[39] Fix | Delete
int shift; /* interval duration (s) (shift) (ro) */
[40] Fix | Delete
__syscall_slong_t stabil; /* pps stability (scaled ppm) (ro) */
[41] Fix | Delete
__syscall_slong_t jitcnt; /* jitter limit exceeded (ro) */
[42] Fix | Delete
__syscall_slong_t calcnt; /* calibration intervals (ro) */
[43] Fix | Delete
__syscall_slong_t errcnt; /* calibration errors (ro) */
[44] Fix | Delete
__syscall_slong_t stbcnt; /* stability limit exceeded (ro) */
[45] Fix | Delete
[46] Fix | Delete
int tai; /* TAI offset (ro) */
[47] Fix | Delete
[48] Fix | Delete
/* ??? */
[49] Fix | Delete
int :32; int :32; int :32; int :32;
[50] Fix | Delete
int :32; int :32; int :32; int :32;
[51] Fix | Delete
int :32; int :32; int :32;
[52] Fix | Delete
};
[53] Fix | Delete
[54] Fix | Delete
/* Mode codes (timex.mode) */
[55] Fix | Delete
#define ADJ_OFFSET 0x0001 /* time offset */
[56] Fix | Delete
#define ADJ_FREQUENCY 0x0002 /* frequency offset */
[57] Fix | Delete
#define ADJ_MAXERROR 0x0004 /* maximum time error */
[58] Fix | Delete
#define ADJ_ESTERROR 0x0008 /* estimated time error */
[59] Fix | Delete
#define ADJ_STATUS 0x0010 /* clock status */
[60] Fix | Delete
#define ADJ_TIMECONST 0x0020 /* pll time constant */
[61] Fix | Delete
#define ADJ_TAI 0x0080 /* set TAI offset */
[62] Fix | Delete
#define ADJ_SETOFFSET 0x0100 /* add 'time' to current time */
[63] Fix | Delete
#define ADJ_MICRO 0x1000 /* select microsecond resolution */
[64] Fix | Delete
#define ADJ_NANO 0x2000 /* select nanosecond resolution */
[65] Fix | Delete
#define ADJ_TICK 0x4000 /* tick value */
[66] Fix | Delete
#define ADJ_OFFSET_SINGLESHOT 0x8001 /* old-fashioned adjtime */
[67] Fix | Delete
#define ADJ_OFFSET_SS_READ 0xa001 /* read-only adjtime */
[68] Fix | Delete
[69] Fix | Delete
/* xntp 3.4 compatibility names */
[70] Fix | Delete
#define MOD_OFFSET ADJ_OFFSET
[71] Fix | Delete
#define MOD_FREQUENCY ADJ_FREQUENCY
[72] Fix | Delete
#define MOD_MAXERROR ADJ_MAXERROR
[73] Fix | Delete
#define MOD_ESTERROR ADJ_ESTERROR
[74] Fix | Delete
#define MOD_STATUS ADJ_STATUS
[75] Fix | Delete
#define MOD_TIMECONST ADJ_TIMECONST
[76] Fix | Delete
#define MOD_CLKB ADJ_TICK
[77] Fix | Delete
#define MOD_CLKA ADJ_OFFSET_SINGLESHOT /* 0x8000 in original */
[78] Fix | Delete
#define MOD_TAI ADJ_TAI
[79] Fix | Delete
#define MOD_MICRO ADJ_MICRO
[80] Fix | Delete
#define MOD_NANO ADJ_NANO
[81] Fix | Delete
[82] Fix | Delete
[83] Fix | Delete
/* Status codes (timex.status) */
[84] Fix | Delete
#define STA_PLL 0x0001 /* enable PLL updates (rw) */
[85] Fix | Delete
#define STA_PPSFREQ 0x0002 /* enable PPS freq discipline (rw) */
[86] Fix | Delete
#define STA_PPSTIME 0x0004 /* enable PPS time discipline (rw) */
[87] Fix | Delete
#define STA_FLL 0x0008 /* select frequency-lock mode (rw) */
[88] Fix | Delete
[89] Fix | Delete
#define STA_INS 0x0010 /* insert leap (rw) */
[90] Fix | Delete
#define STA_DEL 0x0020 /* delete leap (rw) */
[91] Fix | Delete
#define STA_UNSYNC 0x0040 /* clock unsynchronized (rw) */
[92] Fix | Delete
#define STA_FREQHOLD 0x0080 /* hold frequency (rw) */
[93] Fix | Delete
[94] Fix | Delete
#define STA_PPSSIGNAL 0x0100 /* PPS signal present (ro) */
[95] Fix | Delete
#define STA_PPSJITTER 0x0200 /* PPS signal jitter exceeded (ro) */
[96] Fix | Delete
#define STA_PPSWANDER 0x0400 /* PPS signal wander exceeded (ro) */
[97] Fix | Delete
#define STA_PPSERROR 0x0800 /* PPS signal calibration error (ro) */
[98] Fix | Delete
[99] Fix | Delete
#define STA_CLOCKERR 0x1000 /* clock hardware fault (ro) */
[100] Fix | Delete
#define STA_NANO 0x2000 /* resolution (0 = us, 1 = ns) (ro) */
[101] Fix | Delete
#define STA_MODE 0x4000 /* mode (0 = PLL, 1 = FLL) (ro) */
[102] Fix | Delete
#define STA_CLK 0x8000 /* clock source (0 = A, 1 = B) (ro) */
[103] Fix | Delete
[104] Fix | Delete
/* Read-only bits */
[105] Fix | Delete
#define STA_RONLY (STA_PPSSIGNAL | STA_PPSJITTER | STA_PPSWANDER | \
[106] Fix | Delete
STA_PPSERROR | STA_CLOCKERR | STA_NANO | STA_MODE | STA_CLK)
[107] Fix | Delete
[108] Fix | Delete
#endif /* bits/timex.h */
[109] Fix | Delete
[110] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function