Lines Matching refs:tv_sec
208 if (ts->tv_sec < 0 || ts->tv_nsec < 0) in timespec_load()
211 if ((usec_t) ts->tv_sec > (UINT64_MAX - (ts->tv_nsec / NSEC_PER_USEC)) / USEC_PER_SEC) in timespec_load()
215 (usec_t) ts->tv_sec * USEC_PER_SEC + in timespec_load()
222 if (ts->tv_sec < 0 || ts->tv_nsec < 0) in timespec_load_nsec()
225 if ((nsec_t) ts->tv_sec >= (UINT64_MAX - ts->tv_nsec) / NSEC_PER_SEC) in timespec_load_nsec()
228 return (nsec_t) ts->tv_sec * NSEC_PER_SEC + (nsec_t) ts->tv_nsec; in timespec_load_nsec()
236 ts->tv_sec = (time_t) -1; in timespec_store()
241 ts->tv_sec = (time_t) (u / USEC_PER_SEC); in timespec_store()
252 ts->tv_sec = (time_t) -1; in timespec_store_nsec()
257 ts->tv_sec = (time_t) (n / NSEC_PER_SEC); in timespec_store_nsec()
266 if (tv->tv_sec < 0 || tv->tv_usec < 0) in timeval_load()
269 if ((usec_t) tv->tv_sec > (UINT64_MAX - tv->tv_usec) / USEC_PER_SEC) in timeval_load()
273 (usec_t) tv->tv_sec * USEC_PER_SEC + in timeval_load()
282 tv->tv_sec = (time_t) -1; in timeval_store()
285 tv->tv_sec = (time_t) (u / USEC_PER_SEC); in timeval_store()
1570 .it_value.tv_sec = TIME_T_MAX, in time_change_fd()
1600 .it_value.tv_sec = INT32_MAX, in time_change_fd()