Lines Matching +full:tv +full:- +full:set
13 * $ gcc leapcrash.c -o leapcrash -lrt
36 * -stable), had an issue with the state machine in clear_time_state()
50 /* Make sure we cleanup on ctrl-c */
69 printf("This runs for a few minutes. Press ctrl-c to stop\n"); in main()
79 next_leap += 86400 - (next_leap % 86400); in main()
82 struct timeval tv; in main() local
85 /* set the time to 2 seconds before the leap */ in main()
86 tv.tv_sec = next_leap - 2; in main()
87 tv.tv_usec = 0; in main()
88 if (settimeofday(&tv, NULL)) { in main()
97 /* Set the leap second insert flag */ in main()