Lines Matching refs:seconds
83 unsigned int seconds, unsigned int nanoseconds)
88 i->seconds = seconds;
97 if (i->seconds == 0 && i->nanoseconds == 0)
112 isc_time_set(isc_time_t *t, unsigned int seconds, unsigned int nanoseconds) {
116 t->seconds = seconds;
124 t->seconds = 0;
133 if (t->seconds == 0 && t->nanoseconds == 0)
170 * Ensure the tv_sec value fits in t->seconds.
172 if (sizeof(tv.tv_sec) > sizeof(t->seconds) &&
176 t->seconds = tv.tv_sec;
214 * Ensure the resulting seconds value fits in the size of an
219 if ((tv.tv_sec > INT_MAX || i->seconds > INT_MAX) &&
220 ((long long)tv.tv_sec + i->seconds > UINT_MAX))
223 t->seconds = tv.tv_sec + i->seconds;
226 t->seconds++;
238 if (t1->seconds < t2->seconds)
240 if (t1->seconds > t2->seconds)
256 * Ensure the resulting seconds value fits in the size of an
261 if ((t->seconds > INT_MAX || i->seconds > INT_MAX) &&
262 ((long long)t->seconds + i->seconds > UINT_MAX))
265 result->seconds = t->seconds + i->seconds;
268 result->seconds++;
282 if ((unsigned int)t->seconds < i->seconds ||
283 ((unsigned int)t->seconds == i->seconds &&
287 result->seconds = t->seconds - i->seconds;
293 result->seconds--;
306 i1 = (isc_uint64_t)t1->seconds * NS_PER_S + t1->nanoseconds;
307 i2 = (isc_uint64_t)t2->seconds * NS_PER_S + t2->nanoseconds;
327 return ((isc_uint32_t)t->seconds);
332 time_t seconds;
338 * Ensure that the number of seconds represented by t->seconds
339 * can be represented by a time_t. Since t->seconds is an unsigned
347 * the unsigned int t->seconds is out range for tv_sec, which is
351 * If the paradox in the if clause below is true, t->seconds is out
354 seconds = (time_t)t->seconds;
359 if (t->seconds > (~0U>>1) && seconds <= (time_t)(~0U>>1))
362 *secondsp = seconds;
389 now = (time_t) t->seconds;
420 now = (time_t)t->seconds;
462 now = (time_t)t->seconds;
484 now = (time_t)t->seconds;