003 File Manager
Current Path:
/usr/src/contrib/ntp/util
usr
/
src
/
contrib
/
ntp
/
util
/
📁
..
📄
Makefile.am
(4.74 KB)
📄
Makefile.in
(49.93 KB)
📄
README
(2.13 KB)
📄
audio-pcm.c
(3.57 KB)
📄
byteorder.c
(839 B)
📄
hist.c
(1.94 KB)
📄
invoke-ntp-keygen.menu
(55 B)
📄
invoke-ntp-keygen.texi
(50.06 KB)
📄
jitter.c
(2.73 KB)
📄
kern.c
(5.45 KB)
📄
longsize.c
(150 B)
📄
ntp-keygen-opts.c
(61.04 KB)
📄
ntp-keygen-opts.def
(38.96 KB)
📄
ntp-keygen-opts.h
(12.77 KB)
📄
ntp-keygen.1ntp-keygenman
(45.69 KB)
📄
ntp-keygen.1ntp-keygenmdoc
(39.57 KB)
📄
ntp-keygen.c
(64.46 KB)
📄
ntp-keygen.html
(90.46 KB)
📄
ntp-keygen.man.in
(45.69 KB)
📄
ntp-keygen.mdoc.in
(39.57 KB)
📄
ntp-keygen.texi
(12.96 KB)
📄
ntptime.c
(10.27 KB)
📄
pps-api.c
(2.3 KB)
📄
precision.c
(5.06 KB)
📄
sht.c
(6.09 KB)
📄
testrs6000.c
(1.28 KB)
📄
tg.c
(16.43 KB)
📄
tg2.c
(73.01 KB)
📄
tickadj.c
(16.02 KB)
📄
timetrim.c
(2.65 KB)
Editing: testrs6000.c
/* Checks for the RS/6000 AIX adjtime() bug, in which if a negative * offset is given, the system gets messed up and never completes the * adjustment. If the problem is fixed, this program will print the * time, sit there for 10 seconds, and exit. If the problem isn't fixed, * the program will print an occasional "result=nnnnnn" (the residual * slew from adjtime()). * * Compile this with bsdcc and run it as root! */ #include <signal.h> #include <sys/time.h> #include <time.h> #include <stdio.h> int timeout(); struct timeval adjustment, result; int main ( int argc, char *argv[] ) { struct itimerval value, oldvalue; int i; time_t curtime; curtime = time(0); printf("Starting: %s", ctime(&curtime)); value.it_interval.tv_sec = value.it_value.tv_sec = 1; value.it_interval.tv_usec = value.it_value.tv_usec = 0; adjustment.tv_sec = 0; adjustment.tv_usec = -2000; signal(SIGALRM, timeout); setitimer(ITIMER_REAL, &value, &oldvalue); for (i=0; i<10; i++) { pause(); } } int timeout( int sig, int code, struct sigcontext *scp ) { signal (SIGALRM, timeout); if (adjtime(&adjustment, &result)) printf("adjtime call failed\n"); if (result.tv_sec != 0 || result.tv_usec != 0) { printf("result.u = %d.%06.6d ", (int) result.tv_sec, (int) result.tv_usec); } }
Upload File
Create Folder