/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 | 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()
|
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 …]
|
/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) __INTRODUCED_IN(12); [all …]
|
D | time64.h | 36 #error Your time_t is already 64-bit.
|
D | utmp.h | 62 time_t ll_time;
|
/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 | 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_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 | 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()
|
D | sys_types_h.c | 65 TYPE(time_t); in sys_types_h()
|
D | sched_h.c | 37 TYPE(time_t); in sched_h()
|
/bionic/libc/kernel/uapi/asm-mips/asm/ |
D | stat.h | 36 time_t st_atime; 38 time_t st_mtime; 40 time_t st_ctime; 57 time_t st_atime; 59 time_t st_mtime; 61 time_t st_ctime;
|
/bionic/tests/ |
D | sys_types_test.cpp | 34 ASSERT_EQ(8U, sizeof(time_t)); in TEST() 38 ASSERT_EQ(4U, sizeof(time_t)); in TEST()
|
D | time_test.cpp | 36 time_t p1, t1 = time(&p1); in TEST() 38 ASSERT_NE(static_cast<time_t>(0), t1); in TEST() 39 ASSERT_NE(static_cast<time_t>(-1), t1); in TEST() 44 time_t p2, t2 = time(&p2); in TEST() 46 ASSERT_NE(static_cast<time_t>(0), t2); in TEST() 47 ASSERT_NE(static_cast<time_t>(-1), t2); in TEST() 52 ASSERT_LE(t2 - t1, static_cast<time_t>(2)); in TEST() 56 ASSERT_LE(time(nullptr) - t2, static_cast<time_t>(1)); in TEST() 60 time_t t = 0; in TEST() 73 time_t t = 0; in TEST() [all …]
|
/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/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/include/bits/ |
D | timespec.h | 48 time_t tv_sec;
|
/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/kernel/uapi/linux/ |
D | lp.h | 63 #define LPSETTIMEOUT (sizeof(time_t) > sizeof(__kernel_long_t) ? LPSETTIMEOUT_NEW : LPSETTIMEOUT_OL…
|
/bionic/libc/malloc_debug/tests/ |
D | malloc_debug_system_tests.cpp | 50 static constexpr time_t kTimeoutSeconds = 10; 53 time_t timeout_seconds = kTimeoutSeconds) { in Exec() 82 time_t start_time = time(nullptr); in Exec() 177 time_t timeout_seconds = kTimeoutSeconds) { in FindStrings() 179 time_t start = time(nullptr); in FindStrings()
|
/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()
|