Home
last modified time | relevance | path

Searched refs:tv_sec (Results 1 – 25 of 191) sorted by relevance

12345678

/l4re-core-master/uclibc/lib/contrib/uclibc/include/sys/
A Dtime.h43 (ts)->tv_sec = (tv)->tv_sec; \
47 (tv)->tv_sec = (ts)->tv_sec; \
169 # define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec)
170 # define timerclear(tvp) ((tvp)->tv_sec = (tvp)->tv_usec = 0)
172 (((a)->tv_sec == (b)->tv_sec) ? \
174 ((a)->tv_sec CMP (b)->tv_sec))
177 (result)->tv_sec = (a)->tv_sec + (b)->tv_sec; \
181 ++(result)->tv_sec; \
187 (result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \
190 --(result)->tv_sec; \
/l4re-core-master/uclibc/lib/contrib/uclibc/test/nptl/
A Dtst-cpuclock1.c149 struct timespec diff = { .tv_sec = after.tv_sec - before.tv_sec, in do_test()
153 --diff.tv_sec; in do_test()
156 if (diff.tv_sec != 0 in do_test()
161 diff.tv_sec, diff.tv_nsec); in do_test()
188 struct timespec d = { .tv_sec = afterns.tv_sec - after.tv_sec, in do_test()
192 --d.tv_sec; in do_test()
195 if (d.tv_sec > 0 in do_test()
200 d.tv_sec, d.tv_nsec); in do_test()
229 diff.tv_sec = dead.tv_sec - after.tv_sec; in do_test()
233 --diff.tv_sec; in do_test()
[all …]
A Dtst-clock2.c75 struct timespec ts = { .tv_sec = 0, .tv_nsec = 100000000 }; in do_test()
121 ts.tv_sec = 0; in do_test()
150 diff.tv_sec = t[i].tv_sec - t[i + 1].tv_sec; in do_test()
155 --diff.tv_sec; in do_test()
158 if (diff.tv_sec < 0 || (diff.tv_sec == 0 && diff.tv_nsec < 100000000)) in do_test()
162 i, i + 1, (long int) diff.tv_sec, (long int) diff.tv_nsec); in do_test()
167 i, i + 1, (long int) diff.tv_sec, (long int) diff.tv_nsec); in do_test()
170 ts.tv_sec = 0; in do_test()
187 if (ts.tv_sec > t[i].tv_sec in do_test()
188 || (ts.tv_sec == t[i].tv_sec && ts.tv_nsec > t[i].tv_nsec)) in do_test()
A Dtst-mutex5.c81 ts.tv_sec += 2; /* Wait 2 seconds. */ in do_test()
100 tv2.tv_sec -= tv.tv_sec; in do_test()
105 tv2.tv_sec -= 1; in do_test()
113 ++tv2.tv_sec; in do_test()
116 if (tv2.tv_sec < 2) in do_test()
119 tv2.tv_sec, tv2.tv_usec); in do_test()
127 ts.tv_sec += 2; /* Wait 2 seconds. */ in do_test()
152 ts.tv_sec += 2; /* Wait 2 seconds. */ in do_test()
162 if (tv2.tv_sec > 0 || tv2.tv_usec > 100000) in do_test()
A Dtst-cpuclock2.c63 struct timespec diff = { .tv_sec = after->tv_sec - before->tv_sec, in tsdiff()
67 --diff.tv_sec; in tsdiff()
70 return diff.tv_sec * 1000000000ULL + diff.tv_nsec; in tsdiff()
111 sleeptimeabs.tv_sec += after.tv_sec; in test_nanosleep()
115 ++sleeptimeabs.tv_sec; in test_nanosleep()
225 (unsigned long int) th_clock, res.tv_sec, res.tv_nsec); in do_test()
243 before.tv_sec, before.tv_nsec); in do_test()
253 me_before.tv_sec, me_before.tv_nsec); in do_test()
265 after.tv_sec, after.tv_nsec); in do_test()
281 me_after.tv_sec, me_after.tv_nsec); in do_test()
A Dtst-timer4.c160 ts.tv_sec += msec / 1000000; in check_ts()
164 ++ts.tv_sec; in check_ts()
167 if (end->tv_sec < ts.tv_sec in check_ts()
168 || (end->tv_sec == ts.tv_sec && end->tv_nsec < ts.tv_nsec)) in check_ts()
204 (long) ts.tv_sec, ts.tv_nsec); in do_test()
292 it.it_value.tv_sec = 0; in do_test()
294 it.it_interval.tv_sec = 0; in do_test()
394 ts.tv_sec = 0; in do_test()
503 it.it_value.tv_sec = 1; in do_test()
505 it.it_interval.tv_sec = 0; in do_test()
[all …]
A Dtst-clock_nanosleep.c34 ts.tv_sec = 1; in do_test()
42 tv2.tv_sec -= tv1.tv_sec; in do_test()
45 --tv2.tv_sec; in do_test()
47 if (tv2.tv_sec < 1) in do_test()
/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/nptl/sysdeps/unix/sysv/linux/arm/
A Dlowlevellock.c74 rt.tv_sec = abstime->tv_sec - tv.tv_sec; in __lll_timedlock_wait()
79 --rt.tv_sec; in __lll_timedlock_wait()
83 if (rt.tv_sec < 0) in __lll_timedlock_wait()
113 rt.tv_sec = abstime->tv_sec - tv.tv_sec; in __lll_timedwait_tid()
118 --rt.tv_sec; in __lll_timedwait_tid()
122 if (rt.tv_sec < 0) in __lll_timedwait_tid()
/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/nptl/sysdeps/unix/sysv/linux/
A Dlowlevellock.c69 rt.tv_sec = abstime->tv_sec - tv.tv_sec; in __lll_timedlock_wait()
74 --rt.tv_sec; in __lll_timedlock_wait()
77 if (rt.tv_sec < 0) in __lll_timedlock_wait()
106 rt.tv_sec = abstime->tv_sec - tv.tv_sec; in __lll_timedwait_tid()
111 --rt.tv_sec; in __lll_timedwait_tid()
115 if (rt.tv_sec < 0) in __lll_timedwait_tid()
A Dlowlevelrobustlock.c82 rt.tv_sec = abstime->tv_sec - tv.tv_sec; in __lll_robust_timedlock_wait()
87 --rt.tv_sec; in __lll_robust_timedlock_wait()
91 if (rt.tv_sec < 0) in __lll_robust_timedlock_wait()
/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/nptl/sysdeps/unix/sysv/linux/sparc/
A Dlowlevellock.c71 rt.tv_sec = abstime->tv_sec - tv.tv_sec; in __lll_timedlock_wait()
76 --rt.tv_sec; in __lll_timedlock_wait()
80 if (rt.tv_sec < 0) in __lll_timedlock_wait()
112 rt.tv_sec = abstime->tv_sec - tv.tv_sec; in __lll_timedwait_tid()
117 --rt.tv_sec; in __lll_timedwait_tid()
121 if (rt.tv_sec < 0) in __lll_timedwait_tid()
/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/nptl/sysdeps/unix/sysv/linux/metag/
A Dlowlevellock.c75 rt.tv_sec = abstime->tv_sec - tv.tv_sec; in __lll_timedlock_wait()
80 --rt.tv_sec; in __lll_timedlock_wait()
84 if (rt.tv_sec < 0) in __lll_timedlock_wait()
114 rt.tv_sec = abstime->tv_sec - tv.tv_sec; in __lll_timedwait_tid()
119 --rt.tv_sec; in __lll_timedwait_tid()
123 if (rt.tv_sec < 0) in __lll_timedwait_tid()
/l4re-core-master/uclibc/lib/contrib/uclibc/test/time/
A Dtst-futimens1.c71 unsigned wrong = tests[i].ts[0].tv_sec != sb.st_atim.tv_sec || in do_test()
73 tests[i].ts[1].tv_sec != sb.st_mtim.tv_sec || in do_test()
76 if (tests[i].ts[0].tv_sec != sb.st_atim.tv_sec) { in do_test()
78 i, tests[i].ts[0].tv_sec, sb.st_atim.tv_sec); in do_test()
87 if (tests[i].ts[1].tv_sec != sb.st_mtim.tv_sec) { in do_test()
89 i, tests[i].ts[1].tv_sec, sb.st_mtim.tv_sec); in do_test()
/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/nptl/sysdeps/pthread/
A Dposix-timer.h126 if (left->tv_sec < right->tv_sec) in timespec_compare()
128 if (left->tv_sec > right->tv_sec) in timespec_compare()
143 sum->tv_sec = left->tv_sec + right->tv_sec; in timespec_add()
148 ++sum->tv_sec; in timespec_add()
157 diff->tv_sec = left->tv_sec - right->tv_sec; in timespec_sub()
162 --diff->tv_sec; in timespec_sub()
A Dpthread_cond_timedwait.c116 rt.tv_sec = abstime->tv_sec - tv.tv_sec; in __pthread_cond_timedwait()
123 rt.tv_sec = abstime->tv_sec - rt.tv_sec; in __pthread_cond_timedwait()
132 rt.tv_sec = abstime->tv_sec - tv.tv_sec; in __pthread_cond_timedwait()
139 --rt.tv_sec; in __pthread_cond_timedwait()
142 if (__builtin_expect (rt.tv_sec < 0, 0)) in __pthread_cond_timedwait()
/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/linuxthreads/sysdeps/pthread/
A Dposix-timer.h133 if (left->tv_sec < right->tv_sec) in timespec_compare()
135 if (left->tv_sec > right->tv_sec) in timespec_compare()
150 sum->tv_sec = left->tv_sec + right->tv_sec; in timespec_add()
155 ++sum->tv_sec; in timespec_add()
164 diff->tv_sec = left->tv_sec - right->tv_sec; in timespec_sub()
169 --diff->tv_sec; in timespec_sub()
/l4re-core-master/uclibc/lib/contrib/uclibc/libc/sysdeps/linux/mips/bits/
A Dstat.h73 # define st_atime st_atim.tv_sec /* Backward compatibility. */
74 # define st_mtime st_mtim.tv_sec
75 # define st_ctime st_ctim.tv_sec
116 # define st_atime st_atim.tv_sec /* Backward compatibility. */
117 # define st_mtime st_mtim.tv_sec
118 # define st_ctime st_ctim.tv_sec
158 # define st_atime st_atim.tv_sec /* Backward compatibility. */
159 # define st_mtime st_mtim.tv_sec
160 # define st_ctime st_ctim.tv_sec
198 # define st_mtime st_mtim.tv_sec
[all …]
/l4re-core-master/uclibc/lib/contrib/uclibc/libc/misc/time/
A Dadjtime.c30 tmp.tv_sec = itv->tv_sec + itv->tv_usec / 1000000L; in adjtime()
32 if (tmp.tv_sec > MAX_SEC || tmp.tv_sec < MIN_SEC) in adjtime()
37 tntx.offset = tmp.tv_usec + tmp.tv_sec * 1000000L; in adjtime()
49 otv->tv_sec = -(-tntx.offset / 1000000); in adjtime()
54 otv->tv_sec = tntx.offset / 1000000; in adjtime()
/l4re-core-master/uclibc/lib/contrib/uclibc/libc/sysdeps/linux/powerpc/bits/
A Dstat.h81 # define st_atime st_atim.tv_sec /* Backward compatibility. */
82 # define st_mtime st_mtim.tv_sec
83 # define st_ctime st_ctim.tv_sec
121 # define st_atime st_atim.tv_sec /* Backward compatibility. */
122 # define st_mtime st_mtim.tv_sec
123 # define st_ctime st_ctim.tv_sec
175 # define st_atime st_atim.tv_sec /* Backward compatibility. */
176 # define st_mtime st_mtim.tv_sec
177 # define st_ctime st_ctim.tv_sec
216 # define st_mtime st_mtim.tv_sec
[all …]
/l4re-core-master/libstdc++-v3/contrib/libstdc++-v3-11/src/c++11/
A Dfutex.cc66 struct syscall_timespec { long tv_sec; long tv_nsec; }; member
84 rt.tv_sec = -1; in relative_timespec()
93 rt.tv_sec = __int_traits<syscall_time_t>::__max; in relative_timespec()
98 rt.tv_sec = rel_s; in relative_timespec()
103 --rt.tv_sec; in relative_timespec()
136 rt.tv_sec = __int_traits<syscall_time_t>::__max; in _M_futex_wait_until()
138 rt.tv_sec = __s.count(); in _M_futex_wait_until()
172 if (rt.tv_sec < 0) in _M_futex_wait_until()
212 rt.tv_sec = __int_traits<syscall_time_t>::__max; in _M_futex_wait_until_steady()
214 rt.tv_sec = __s.count(); in _M_futex_wait_until_steady()
[all …]
/l4re-core-master/uclibc/lib/contrib/uclibc/libc/sysdeps/linux/common/
A Dutimes.c21 times[0].tv_sec = tvp[0].tv_sec; in utimes()
23 times[1].tv_sec = tvp[1].tv_sec; in utimes()
45 times->actime = tvp[0].tv_sec;
46 times->modtime = tvp[1].tv_sec;
/l4re-core-master/libstdc++-v3/contrib/libstdc++-v3-10/src/c++11/
A Dfutex.cc60 rt.tv_sec = -1; in relative_timespec()
69 rt.tv_sec = __int_traits<time_t>::__max; in relative_timespec()
74 rt.tv_sec = rel_s; in relative_timespec()
79 --rt.tv_sec; in relative_timespec()
108 auto rt = relative_timespec(__s, __ns, tv.tv_sec, tv.tv_usec * 1000); in _M_futex_wait_until()
111 if (rt.tv_sec < 0) in _M_futex_wait_until()
/l4re-core-master/uclibc/lib/contrib/uclibc/libc/sysdeps/linux/ia64/bits/
A Dstat.h51 # define st_atime st_atim.tv_sec /* Backward compatibility. */
52 # define st_mtime st_mtim.tv_sec
53 # define st_ctime st_ctim.tv_sec
90 # define st_atime st_atim.tv_sec /* Backward compatibility. */
91 # define st_mtime st_mtim.tv_sec
92 # define st_ctime st_ctim.tv_sec
/l4re-core-master/uclibc/lib/contrib/uclibc/libc/sysdeps/linux/sparc/bits/
A Dstat.h72 # define st_atime st_atim.tv_sec /* Backward compatibility. */
73 # define st_mtime st_mtim.tv_sec
74 # define st_ctime st_ctim.tv_sec
115 # define st_atime st_atim.tv_sec /* Backward compatibility. */
116 # define st_mtime st_mtim.tv_sec
117 # define st_ctime st_ctim.tv_sec
/l4re-core-master/uclibc/lib/contrib/uclibc/libc/sysdeps/linux/x86_64/bits/
A Dstat.h90 # define st_atime st_atim.tv_sec /* Backward compatibility. */
91 # define st_mtime st_mtim.tv_sec
92 # define st_ctime st_ctim.tv_sec
151 # define st_atime st_atim.tv_sec /* Backward compatibility. */
152 # define st_mtime st_mtim.tv_sec
153 # define st_ctime st_ctim.tv_sec

Completed in 25 milliseconds

12345678