/bionic/libc/include/sys/ |
D | time.h | 72 ((a)->tv_sec = (a)->tv_usec = 0) 75 ((a)->tv_sec != 0 || (a)->tv_usec != 0) 78 ((a)->tv_sec == (b)->tv_sec \ 80 : (a)->tv_sec op (b)->tv_sec) 84 (res)->tv_sec = (a)->tv_sec + (b)->tv_sec; \ 88 (res)->tv_sec += 1; \ 94 (res)->tv_sec = (a)->tv_sec - (b)->tv_sec; \ 98 (res)->tv_sec -= 1; \ 103 (ts)->tv_sec = (tv)->tv_sec; \ 107 (tv)->tv_sec = (ts)->tv_sec; \
|
D | stat.h | 108 #define st_atime st_atim.tv_sec 109 #define st_mtime st_mtim.tv_sec 110 #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() 64 new_time.tv_sec = old_time.tv_sec - old_clock.tv_sec + new_clock.tv_sec; in convert_timespec_clocks() 70 new_time.tv_sec += 1; in convert_timespec_clocks() 73 new_time.tv_sec -= 1; in convert_timespec_clocks()
|
D | sleep.cpp | 39 timespec ts = {.tv_sec = static_cast<time_t>(s)}; in sleep() 40 return (nanosleep(&ts, &ts) == -1) ? ts.tv_sec : 0; in sleep()
|
D | sys_epoll.cpp | 78 kts.tv_sec = timeout->tv_sec; in epoll_pwait2_64()
|
D | usleep.cpp | 35 ts.tv_sec = us / 1000000; in usleep()
|
D | clock.cpp | 39 return (ts.tv_sec * CLOCKS_PER_SEC) + (ts.tv_nsec / (NS_PER_S / CLOCKS_PER_SEC)); in clock()
|
/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/private/ |
D | bionic_time_conversions.h | 62 if (ts->tv_sec < 0) { in check_timespec() 71 abs_ts.tv_sec += ts.tv_sec; in absolute_timespec_from_timespec() 75 abs_ts.tv_sec++; in absolute_timespec_from_timespec()
|
/bionic/libc/kernel/uapi/linux/ |
D | time_types.h | 12 __kernel_time64_t tv_sec; member 20 __kernel_old_time_t tv_sec; member 24 __s64 tv_sec; member
|
D | time.h | 16 __kernel_old_time_t tv_sec; member
|
/bionic/libc/upstream-openbsd/lib/libc/gen/ |
D | alarm.c | 40 itv.it_value.tv_sec = secs; in alarm() 45 oitv.it_value.tv_sec++; in alarm() 46 return (oitv.it_value.tv_sec); in alarm()
|
/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 | 150 tv2.tv_sec -= tv1.tv_sec; in TEST() 153 --tv2.tv_sec; in TEST() 158 ASSERT_EQ(0, tv2.tv_sec); in TEST()
|
D | sys_stat_test.cpp | 43 times[0].tv_sec = 123; in TEST() 45 times[1].tv_sec = 456; in TEST() 51 ASSERT_EQ(times[0].tv_sec, static_cast<long>(sb.st_atime)); in TEST() 52 ASSERT_EQ(times[1].tv_sec, static_cast<long>(sb.st_mtime)); in TEST() 59 times[0].tv_sec = 123; in TEST() 61 times[1].tv_sec = 456; in TEST()
|
D | time_test.cpp | 629 ts.it_value.tv_sec = value_s; in SetTime() 631 ts.it_interval.tv_sec = interval_s; in SetTime() 683 ts.it_value.tv_sec = 0; in TEST() 685 ts.it_interval.tv_sec = 0; in TEST() 923 ts.it_value.tv_sec = 1; in TEST() 925 ts.it_interval.tv_sec = 0; in TEST() 958 ASSERT_LE(ts0.tv_sec, ts1.tv_sec); in TEST() 959 if (ts0.tv_sec == ts1.tv_sec) { in TEST() 962 ASSERT_LE(ts1.tv_sec, ts2.tv_sec); in TEST() 963 if (ts1.tv_sec == ts2.tv_sec) { in TEST() [all …]
|
D | semaphore_test.cpp | 102 ts.tv_sec += ms / 1000; in timespec_add_ms() 105 ts.tv_sec++; in timespec_add_ms() 135 ts.tv_sec = -1; in sem_timedwait_helper()
|
D | threads_test.cpp | 210 ts.tv_sec += 666; in TEST() 406 timespec long_time = { .tv_sec = 666 }; in TEST() 409 uint64_t t = remaining.tv_sec * 1000000000 + remaining.tv_nsec; in TEST() 424 timespec long_time = { .tv_sec = 666 }; in TEST() 437 timespec invalid = { .tv_sec = -1 }; in TEST()
|
D | sys_socket_test.cpp | 88 tv.tv_sec = 5; in RunTest() 160 ts.tv_sec = 5; in TestRecvMMsg() 221 tv.tv_sec = 5; in TestSendMMsg()
|
/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/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/include/bits/ |
D | timespec.h | 48 time_t tv_sec; member
|
/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()
|
/bionic/libc/kernel/uapi/linux/can/ |
D | bcm.h | 12 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()
|