Searched refs:next_leap (Results 1 – 2 of 2) sorted by relevance
56 time_t next_leap; variable138 if (tx.time.tv_sec < next_leap) { in sigalarm()139 printf("Error: Early timer expiration! (Should be %ld)\n", next_leap); in sigalarm()246 next_leap = ts.tv_sec; in main()247 next_leap += 86400 - (next_leap % 86400); in main()252 tv.tv_sec = next_leap - 10; in main()288 printf("Scheduling leap second for %s", ctime(&next_leap)); in main()291 printf("Setting timer for %ld - %s", next_leap, ctime(&next_leap)); in main()300 its1.it_value.tv_sec = next_leap; in main()307 ts.tv_sec = next_leap - 3; in main()[all …]
62 time_t next_leap; in main() local78 next_leap = ts.tv_sec; in main()79 next_leap += 86400 - (next_leap % 86400); in main()86 tv.tv_sec = next_leap - 2; in main()96 while (tx.time.tv_sec < next_leap + 1) { in main()