/* 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;