/bionic/libc/include/sys/ |
D | time.h | 59 ((a)->tv_sec = (a)->tv_usec = 0) 62 ((a)->tv_sec != 0 || (a)->tv_usec != 0) 65 ((a)->tv_sec == (b)->tv_sec \ 67 : (a)->tv_sec op (b)->tv_sec) 71 (res)->tv_sec = (a)->tv_sec + (b)->tv_sec; \ 75 (res)->tv_sec += 1; \ 81 (res)->tv_sec = (a)->tv_sec - (b)->tv_sec; \ 85 (res)->tv_sec -= 1; \ 90 (ts)->tv_sec = (tv)->tv_sec; \ 94 (tv)->tv_sec = (ts)->tv_sec; \
|
D | stat.h | 123 #define st_atime st_atim.tv_sec 124 #define st_mtime st_mtim.tv_sec 125 #define st_ctime st_ctim.tv_sec
|
/bionic/libc/bionic/ |
D | bionic_time_conversions.cpp | 35 ts.tv_sec = tv.tv_sec; in timespec_from_timeval() 46 ts.tv_sec = ms / 1000; in timespec_from_ms() 51 tv.tv_sec = ts.tv_sec; in timeval_from_timespec() 67 monotonic_time.tv_sec += 1; in monotonic_time_from_realtime_time() 70 monotonic_time.tv_sec -= 1; in monotonic_time_from_realtime_time() 72 monotonic_time.tv_sec -= cur_realtime_time.tv_sec; in monotonic_time_from_realtime_time() 73 monotonic_time.tv_sec += cur_monotonic_time.tv_sec; in monotonic_time_from_realtime_time()
|
D | clock.cpp | 41 return (ts.tv_sec * CLOCKS_PER_SEC) + (ts.tv_nsec / (NS_PER_S / CLOCKS_PER_SEC)); in clock()
|
D | bionic_futex.cpp | 52 if (converted_monotonic_abs_timeout.tv_sec < 0) { in FutexWithTimeout()
|
/bionic/libc/upstream-openbsd/lib/libc/gen/ |
D | alarm.c | 41 itp->it_value.tv_sec = secs; in alarm() 46 oitv.it_value.tv_sec++; in alarm() 47 return (oitv.it_value.tv_sec); in alarm()
|
/bionic/libc/kernel/uapi/linux/ |
D | time.h | 25 __kernel_time_t tv_sec; member 30 __kernel_time_t tv_sec; member 50 __kernel_time64_t tv_sec; member 61 __kernel_long_t tv_sec; member
|
/bionic/libc/private/ |
D | bionic_time_conversions.h | 59 if (ts->tv_sec < 0) { in check_timespec() 68 abs_ts.tv_sec += ts.tv_sec; in absolute_timespec_from_timespec() 72 abs_ts.tv_sec++; in absolute_timespec_from_timespec()
|
/bionic/libc/upstream-netbsd/lib/libc/isc/ |
D | ev_timers.c | 77 x.tv_sec = sec; in evConsTime() 86 x.tv_sec = addend1.tv_sec + addend2.tv_sec; in evAddTime() 89 x.tv_sec++; in evAddTime() 99 x.tv_sec = minuend.tv_sec - subtrahend.tv_sec; in evSubTime() 104 x.tv_sec--; in evSubTime() 112 time_t s = a.tv_sec - b.tv_sec; in evCmpTime() 170 ts.tv_sec = tv.tv_sec; in evTimeSpec() 179 tv.tv_sec = ts.tv_sec; in evTimeVal() 199 (long)due.tv_sec, due.tv_nsec, in evSetTimer() 200 (long)inter.tv_sec, inter.tv_nsec); in evSetTimer() [all …]
|
/bionic/libc/upstream-netbsd/lib/libc/gen/ |
D | utime.c | 59 tv[0].tv_sec = times->actime; in utime() 60 tv[1].tv_sec = times->modtime; in utime()
|
/bionic/libc/upstream-freebsd/lib/libc/gen/ |
D | sleep.c | 56 time_to_sleep.tv_sec = seconds; in __sleep() 62 return (time_remaining.tv_sec + in __sleep()
|
D | usleep.c | 47 time_to_sleep.tv_sec = useconds / 1000000; in __usleep()
|
/bionic/libc/include/bits/ |
D | timespec.h | 48 time_t tv_sec; member
|
/bionic/tests/ |
D | sys_select_test.cpp | 108 tv.tv_sec = -1; in TEST() 114 tv.tv_sec = 1; in TEST() 122 ASSERT_EQ(0, tv.tv_sec); in TEST() 163 tv.tv_sec = -1; in TEST() 169 tv.tv_sec = 1; in TEST() 177 ASSERT_EQ(1, tv.tv_sec); in TEST()
|
D | sys_time_test.cpp | 143 tv2.tv_sec -= tv1.tv_sec; in TEST() 146 --tv2.tv_sec; in TEST() 151 ASSERT_EQ(0, tv2.tv_sec); in TEST()
|
D | sys_stat_test.cpp | 33 times[0].tv_sec = 123; in TEST() 35 times[1].tv_sec = 456; in TEST() 41 ASSERT_EQ(times[0].tv_sec, static_cast<long>(sb.st_atime)); in TEST() 42 ASSERT_EQ(times[1].tv_sec, static_cast<long>(sb.st_mtime)); in TEST() 49 times[0].tv_sec = 123; in TEST() 51 times[1].tv_sec = 456; in TEST()
|
D | time_test.cpp | 364 ts.it_value.tv_sec = value_s; in SetTime() 366 ts.it_interval.tv_sec = interval_s; in SetTime() 418 ts.it_value.tv_sec = 0; in TEST() 420 ts.it_interval.tv_sec = 0; in TEST() 638 ts.it_value.tv_sec = 1; in TEST() 640 ts.it_interval.tv_sec = 0; in TEST() 666 ts2.tv_sec -= ts1.tv_sec; in TEST() 669 --ts2.tv_sec; in TEST() 674 ASSERT_EQ(0, ts2.tv_sec); in TEST() 714 ASSERT_EQ(0, ts.tv_sec); in TEST() [all …]
|
D | semaphore_test.cpp | 96 ts.tv_sec += ms / 1000; in timespec_add_ms() 99 ts.tv_sec++; in timespec_add_ms() 129 ts.tv_sec = -1; in sem_timedwait_helper()
|
/bionic/libc/arch-mips64/bionic/ |
D | stat.cpp | 67 st->st_atim.tv_sec = static_cast<time_t>(s->_st_atime); in copy_stat() 69 st->st_mtim.tv_sec = static_cast<time_t>(s->_st_mtime); in copy_stat() 71 st->st_ctim.tv_sec = static_cast<time_t>(s->_st_ctime); in copy_stat()
|
/bionic/libc/dns/resolv/ |
D | res_stats.c | 32 long ms0 = t0->tv_sec * 1000 + t0->tv_nsec / 1000000; in _res_stats_calculate_rtt() 33 long ms1 = t1->tv_sec * 1000 + t1->tv_nsec / 1000000; in _res_stats_calculate_rtt() 145 time_t now = evNowTime().tv_sec; in _res_stats_usable_server()
|
/bionic/libc/kernel/uapi/linux/can/ |
D | bcm.h | 24 long tv_sec; member
|
/bionic/tests/headers/posix/ |
D | sys_select_h.c | 35 STRUCT_MEMBER(struct timeval, time_t, tv_sec); in sys_select_h()
|
D | sys_time_h.c | 35 STRUCT_MEMBER(struct timeval, time_t, tv_sec); in sys_time_h()
|
/bionic/libc/include/ |
D | utmp.h | 94 #define ut_time ut_tv.tv_sec
|
/bionic/libc/upstream-openbsd/lib/libc/net/ |
D | res_random.c | 223 ru_reseed = ts.tv_sec + RU_OUT; in res_initid() 240 if (ru_counter >= RU_MAX || ts.tv_sec > ru_reseed || pid != ru_pid) { in __res_randomid()
|