Lines Matching refs:seconds

88 		 unsigned int seconds, unsigned int nanoseconds)
93 i->seconds = seconds;
102 if (i->seconds == 0 && i->nanoseconds == 0)
117 isc_time_set(isc_time_t *t, unsigned int seconds, unsigned int nanoseconds) {
121 t->seconds = seconds;
129 t->seconds = 0;
138 if (t->seconds == 0 && t->nanoseconds == 0)
175 * Ensure the tv_sec value fits in t->seconds.
177 if (sizeof(tv.tv_sec) > sizeof(t->seconds) &&
181 t->seconds = tv.tv_sec;
219 * Ensure the resulting seconds value fits in the size of an
224 if ((tv.tv_sec > INT_MAX || i->seconds > INT_MAX) &&
225 ((long long)tv.tv_sec + i->seconds > UINT_MAX))
228 t->seconds = tv.tv_sec + i->seconds;
231 t->seconds++;
243 if (t1->seconds < t2->seconds)
245 if (t1->seconds > t2->seconds)
261 * Ensure the resulting seconds value fits in the size of an
266 if ((t->seconds > INT_MAX || i->seconds > INT_MAX) &&
267 ((long long)t->seconds + i->seconds > UINT_MAX))
270 result->seconds = t->seconds + i->seconds;
273 result->seconds++;
287 if ((unsigned int)t->seconds < i->seconds ||
288 ((unsigned int)t->seconds == i->seconds &&
292 result->seconds = t->seconds - i->seconds;
298 result->seconds--;
311 i1 = (isc_uint64_t)t1->seconds * NS_PER_S + t1->nanoseconds;
312 i2 = (isc_uint64_t)t2->seconds * NS_PER_S + t2->nanoseconds;
332 return ((isc_uint32_t)t->seconds);
337 time_t seconds;
343 * Ensure that the number of seconds represented by t->seconds
344 * can be represented by a time_t. Since t->seconds is an unsigned
352 * the unsigned int t->seconds is out range for tv_sec, which is
356 * If the paradox in the if clause below is true, t->seconds is out
359 seconds = (time_t)t->seconds;
364 if (t->seconds > (~0U>>1) && seconds <= (time_t)(~0U>>1))
367 *secondsp = seconds;
388 now = (time_t) t->seconds;
405 now = (time_t)t->seconds;
417 now = (time_t)t->seconds;