/bionic/libc/tzcode/ |
D | private.h | 327 static time_t sys_time(time_t *x) { return time(x); } in sys_time() 364 # undef time_t 365 # define time_t tz_time_t macro 381 char *ctime(time_t const *); 382 char *ctime_r(time_t const *, char *); 383 double difftime(time_t, time_t); 384 struct tm *gmtime(time_t const *); 385 struct tm *gmtime_r(time_t const *restrict, struct tm *restrict); 386 struct tm *localtime(time_t const *); 387 struct tm *localtime_r(time_t const *restrict, struct tm *restrict); [all …]
|
D | localtime.c | 108 time_t ls_trans; /* transition time */ 129 time_t ats[TZ_MAX_TIMES]; 152 static struct tm *gmtsub(struct state const *, time_t const *, int_fast32_t, 155 static bool increment_overflow_time(time_t *, int_fast32_t); 157 static struct tm *timesub(time_t const *, int_fast32_t, struct state const *, 338 differ_by_repeat(const time_t t1, const time_t t0) in differ_by_repeat() 340 if (TYPE_BIT(time_t) - TYPE_SIGNED(time_t) < SECSPERREPEAT_BITS) in differ_by_repeat() 478 time_t attime in tzloadbody() 479 = ((TYPE_SIGNED(time_t) ? at < time_t_min : at < 0) in tzloadbody() 528 time_t trans in tzloadbody() [all …]
|
D | difftime.c | 18 difftime(time_t time1, time_t time0) in difftime() 24 if (sizeof (time_t) < sizeof (double)) { in difftime() 33 if (!TYPE_SIGNED(time_t)) in difftime() 37 if (sizeof (time_t) <= sizeof (uintmax_t)) { in difftime()
|
/bionic/libc/include/ |
D | time.h | 62 time_t time(time_t* __t); 68 double difftime(time_t __lhs, time_t __rhs); 69 time_t mktime(struct tm* __tm); 71 struct tm* localtime(const time_t* __t); 72 struct tm* localtime_r(const time_t* __t, struct tm* __tm); 74 struct tm* gmtime(const time_t* __t); 75 struct tm* gmtime_r(const time_t* __t, struct tm* __tm); 87 char* ctime(const time_t* __t); 88 char* ctime_r(const time_t* __t, char* __buf); 108 time_t timelocal(struct tm* __tm); [all …]
|
D | time64.h | 36 #error Your time_t is already 64-bit.
|
/bionic/tests/headers/posix/ |
D | time_h.c | 38 TYPE(time_t); in time_h() 59 STRUCT_MEMBER(struct timespec, time_t, tv_sec); in time_h() 84 FUNCTION(ctime, char* (*f)(const time_t*)); in time_h() 85 FUNCTION(ctime_r, char* (*f)(const time_t*, char*)); in time_h() 86 FUNCTION(difftime, double (*f)(time_t, time_t)); in time_h() 90 FUNCTION(gmtime, struct tm* (*f)(const time_t*)); in time_h() 91 FUNCTION(gmtime_r, struct tm* (*f)(const time_t*, struct tm*)); in time_h() 92 FUNCTION(localtime, struct tm* (*f)(const time_t*)); in time_h() 93 FUNCTION(localtime_r, struct tm* (*f)(const time_t*, struct tm*)); in time_h() 94 FUNCTION(mktime, time_t (*f)(struct tm*)); in time_h() [all …]
|
D | sys_shm_h.c | 49 STRUCT_MEMBER(struct shmid_ds, time_t, shm_atime); in sys_shm_h() 50 STRUCT_MEMBER(struct shmid_ds, time_t, shm_dtime); in sys_shm_h() 51 STRUCT_MEMBER(struct shmid_ds, time_t, shm_ctime); in sys_shm_h() 61 TYPE(time_t); in sys_shm_h()
|
D | sys_msg_h.c | 48 STRUCT_MEMBER(struct msqid_ds, time_t, msg_stime); in sys_msg_h() 49 STRUCT_MEMBER(struct msqid_ds, time_t, msg_rtime); in sys_msg_h() 50 STRUCT_MEMBER(struct msqid_ds, time_t, msg_ctime); in sys_msg_h() 61 TYPE(time_t); in sys_msg_h()
|
D | utime_h.c | 35 STRUCT_MEMBER(struct utimbuf, time_t, actime); in utime_h() 36 STRUCT_MEMBER(struct utimbuf, time_t, modtime); in utime_h() 38 TYPE(time_t); in utime_h()
|
D | sys_sem_h.c | 54 STRUCT_MEMBER(struct semid_ds, time_t, sem_otime); in sys_sem_h() 55 STRUCT_MEMBER(struct semid_ds, time_t, sem_ctime); in sys_sem_h() 64 TYPE(time_t); in sys_sem_h()
|
D | sys_select_h.c | 35 STRUCT_MEMBER(struct timeval, time_t, tv_sec); in sys_select_h() 38 TYPE(time_t); in sys_select_h()
|
D | sys_time_h.c | 35 STRUCT_MEMBER(struct timeval, time_t, tv_sec); in sys_time_h() 42 TYPE(time_t); in sys_time_h()
|
/bionic/tests/ |
D | time_test.cpp | 40 time_t p1, t1 = time(&p1); in TEST() 42 ASSERT_NE(static_cast<time_t>(0), t1); in TEST() 43 ASSERT_NE(static_cast<time_t>(-1), t1); in TEST() 48 time_t p2, t2 = time(&p2); in TEST() 50 ASSERT_NE(static_cast<time_t>(0), t2); in TEST() 51 ASSERT_NE(static_cast<time_t>(-1), t2); in TEST() 56 ASSERT_LE(t2 - t1, static_cast<time_t>(2)); in TEST() 60 ASSERT_LE(time(nullptr) - t2, static_cast<time_t>(1)); in TEST() 64 time_t t = 0; in TEST() 77 time_t t = 0; in TEST() [all …]
|
D | sys_types_test.cpp | 34 ASSERT_EQ(8U, sizeof(time_t)); in TEST() 38 ASSERT_EQ(4U, sizeof(time_t)); in TEST()
|
/bionic/libc/kernel/uapi/asm-generic/ |
D | socket.h | 105 #define SO_TIMESTAMP (sizeof(time_t) == sizeof(__kernel_long_t) ? SO_TIMESTAMP_OLD : SO_TIMESTAMP_N… 106 #define SO_TIMESTAMPNS (sizeof(time_t) == sizeof(__kernel_long_t) ? SO_TIMESTAMPNS_OLD : SO_TIMESTA… 107 #define SO_TIMESTAMPING (sizeof(time_t) == sizeof(__kernel_long_t) ? SO_TIMESTAMPING_OLD : SO_TIMES… 108 #define SO_RCVTIMEO (sizeof(time_t) == sizeof(__kernel_long_t) ? SO_RCVTIMEO_OLD : SO_RCVTIMEO_NEW) 109 #define SO_SNDTIMEO (sizeof(time_t) == sizeof(__kernel_long_t) ? SO_SNDTIMEO_OLD : SO_SNDTIMEO_NEW)
|
/bionic/libc/dns/resolv/ |
D | res_stats.c | 39 _res_stats_set_sample(struct __res_sample* sample, time_t now, int rcode, int rtt) in _res_stats_set_sample() 59 int* timeouts, int* internal_errors, int* rtt_avg, time_t* last_sample_time) in android_net_res_stats_aggregate() 66 time_t last = 0; in android_net_res_stats_aggregate() 126 time_t last_sample_time = 0; in _res_stats_usable_server() 145 time_t now = evNowTime().tv_sec; in _res_stats_usable_server()
|
/bionic/libc/dns/include/ |
D | resolv_stats.h | 35 time_t at; // time in s at which the sample was recorded 55 _res_stats_set_sample(struct __res_sample* sample, time_t now, int rcode, int rtt); 68 int* timeouts, int* internal_errors, int* rtt_avg, time_t* last_sample_time)
|
/bionic/libc/malloc_debug/tests/ |
D | malloc_debug_system_tests.cpp | 59 static constexpr time_t kTimeoutSeconds = 10; 70 time_t timeout_seconds = kTimeoutSeconds) { in Exec() 102 time_t start_time = time(nullptr); in Exec() 198 time_t timeout_seconds = kTimeoutSeconds) { 200 time_t start = time(nullptr);
|
/bionic/libc/upstream-netbsd/lib/libc/isc/ |
D | ev_timers.c | 74 evConsTime(time_t sec, long nsec) { in evConsTime() 112 time_t s = a.tv_sec - b.tv_sec; in evCmpTime() 140 return (evConsTime((time_t)0, 0L)); in evNowTime() 153 return (evConsTime((time_t)0, 0L)); in evUTCTime() 220 if (due.tv_sec == (time_t)0 && due.tv_nsec == 0L) in evSetTimer()
|
/bionic/libc/include/bits/ |
D | timespec.h | 48 time_t tv_sec;
|
/bionic/benchmarks/ |
D | time_benchmark.cpp | 175 time_t t = time(nullptr); in BM_time_localtime() 183 time_t t = time(nullptr); in BM_time_localtime_r()
|
/bionic/libc/bionic/ |
D | vdso.cpp | 63 time_t time(time_t* t) { in time()
|
D | sleep.cpp | 39 timespec ts = {.tv_sec = static_cast<time_t>(s)}; in sleep()
|
/bionic/docs/ |
D | 32-bit-abi.md | 84 ## `time_t` is 32-bit on LP32 (y2038) 86 On 32-bit Android, `time_t` is 32-bit, which will overflow in 2038. 88 In the 64-bit ABI, `time_t` is 64-bit, which will not overflow until 93 `time_t` and `struct timespec`/`struct timeval`. Linux 5.x kernels
|
/bionic/libc/kernel/uapi/linux/ |
D | lp.h | 63 #define LPSETTIMEOUT (sizeof(time_t) > sizeof(__kernel_long_t) ? LPSETTIMEOUT_NEW : LPSETTIMEOUT_OL…
|