Home
last modified time | relevance | path

Searched refs:time (Results 1 – 4 of 4) sorted by relevance

/support/
A Dtst-timespec.c28 struct timespec time; member
34 struct timespec time; member
52 {.time = {.tv_sec = 0, .tv_nsec = 0},
55 {.time = {.tv_sec = 0, .tv_nsec = 1},
58 {.time = {.tv_sec = 1, .tv_nsec = 0},
61 {.time = {.tv_sec = 1, .tv_nsec = 1},
64 {.time = {.tv_sec = 0, .tv_nsec = -1},
67 {.time = {.tv_sec = -1, .tv_nsec = 0},
73 {.time = {.tv_sec = 1, .tv_nsec = -1},
76 {.time = {.tv_sec = -1, .tv_nsec = 1},
[all …]
A Dtimespec.c66 support_timespec_ns (struct timespec time) in support_timespec_ns() argument
69 if (INT_MULTIPLY_WRAPV(time.tv_sec, TIMESPEC_HZ, &time_ns)) in support_timespec_ns()
70 return time.tv_sec < 0 ? TYPE_MINIMUM(time_t) : TYPE_MAXIMUM(time_t); in support_timespec_ns()
71 if (INT_ADD_WRAPV(time_ns, time.tv_nsec, &time_ns)) in support_timespec_ns()
72 return time.tv_nsec < 0 ? TYPE_MINIMUM(time_t) : TYPE_MAXIMUM(time_t); in support_timespec_ns()
81 support_timespec_normalize (struct timespec time) in support_timespec_normalize() argument
84 if (INT_ADD_WRAPV (time.tv_sec, (time.tv_nsec / TIMESPEC_HZ), &norm.tv_sec)) in support_timespec_normalize()
86 norm.tv_sec = (time.tv_nsec < 0) ? TYPE_MINIMUM (time_t): TYPE_MAXIMUM (time_t); in support_timespec_normalize()
87 norm.tv_nsec = (time.tv_nsec < 0) ? -1 * (TIMESPEC_HZ - 1) : TIMESPEC_HZ - 1; in support_timespec_normalize()
90 norm.tv_nsec = time.tv_nsec % TIMESPEC_HZ; in support_timespec_normalize()
A Dtimespec.h52 time_t support_timespec_ns (struct timespec time);
54 struct timespec support_timespec_normalize (struct timespec time);
74 time_t __REDIRECT (support_timespec_ns, (struct timespec time),
77 struct timespec __REDIRECT (support_timespec_normalize, (struct timespec time),
A Dtest-driver.c117 # error TEST_FUNCTION and TEST_FUNCTION_ARGV cannot be defined at the same time in main()

Completed in 7 milliseconds