Lines Matching refs:time_t
95 time_t ls_trans; /* transition time */
121 time_t ats[TZ_MAX_TIMES];
148 static struct tm *gmtsub(struct state const *, time_t const *, int_fast32_t,
151 static bool increment_overflow_time(time_t *, int_fast32_t);
152 static int_fast32_t leapcorr(struct state const *, time_t);
154 static struct tm *timesub(time_t const *, int_fast32_t, struct state const *,
518 time_t attime in tzloadbody()
519 = ((TYPE_SIGNED(time_t) ? at < TIME_T_MIN : at < 0) in tzloadbody()
680 time_t t = ts->ats[i]; in tzloadbody()
699 time_t repeatat = sp->ats[0] + SECSPERREPEAT; in tzloadbody()
709 time_t repeatat = sp->ats[sp->timecnt - 1] - SECSPERREPEAT; in tzloadbody()
1128 time_t atlo = TIME_T_MIN, leaplo = TIME_T_MIN; in tzparse()
1190 time_t janfirst; in tzparse()
1229 time_t janfirst1 = janfirst; in tzparse()
1527 localsub(struct state const *sp, time_t const *timep, int_fast32_t setname, in localsub()
1533 const time_t t = *timep; in localsub()
1541 time_t newt; in localsub()
1542 register time_t seconds; in localsub()
1543 register time_t years; in localsub()
1623 localtime_rz(struct state *restrict sp, time_t const *restrict timep, in localtime_rz()
1632 localtime_tzset(time_t const *timep, struct tm *tmp, bool setname) in localtime_tzset()
1647 localtime(const time_t *timep) in localtime()
1656 localtime_r(const time_t *restrict timep, struct tm *restrict tmp) in localtime_r()
1666 gmtsub(ATTRIBUTE_MAYBE_UNUSED struct state const *sp, time_t const *timep, in gmtsub()
1689 gmtime_r(time_t const *restrict timep, struct tm *restrict tmp) in gmtime_r()
1696 gmtime(const time_t *timep) in gmtime()
1707 offtime(const time_t *timep, long offset) in offtime()
1724 static time_t
1725 leaps_thru_end_of_nonneg(time_t y) in leaps_thru_end_of_nonneg()
1730 static time_t
1731 leaps_thru_end_of(time_t y) in leaps_thru_end_of()
1739 timesub(const time_t *timep, int_fast32_t offset, in timesub()
1743 register time_t tdays; in timesub()
1748 time_t y; in timesub()
1753 time_t secs_since_posleap = SECSPERMIN; in timesub()
1794 time_t newy = y + ydelta; in timesub()
1809 if (!TYPE_SIGNED(time_t) && y < TM_YEAR_BASE) { in timesub()
1812 } else if ((!TYPE_SIGNED(time_t) || INT_MIN + TM_YEAR_BASE <= y) in timesub()
1907 increment_overflow_time(time_t *tp, int_fast32_t j) in increment_overflow_time()
1918 ? (TYPE_SIGNED(time_t) ? TIME_T_MIN - j <= *tp : -1 - j < *tp) in increment_overflow_time()
1983 static time_t
1985 struct tm *(*funcp)(struct state const *, time_t const *, in time2sub()
1996 register time_t lo; in time2sub()
1997 register time_t hi; in time2sub()
1999 time_t newt; in time2sub()
2000 time_t t; in time2sub()
2129 time_t altt = t; in time2sub()
2188 static time_t
2190 struct tm *(*funcp)(struct state const *, time_t const *, in time2()
2196 time_t t; in time2()
2207 static time_t
2209 struct tm *(*funcp)(struct state const *, time_t const *, in time1()
2214 register time_t t; in time1()
2279 static time_t
2292 time_t
2300 time_t
2303 time_t t; in mktime()
2316 time_t
2326 time_t
2335 time_t
2338 time_t t; in timegm()
2349 leapcorr(struct state const *sp, time_t t) in leapcorr()
2385 NETBSD_INSPIRED_EXTERN time_t
2386 time2posix_z(struct state *sp, time_t t) in time2posix_z()
2391 time_t
2392 time2posix(time_t t) in time2posix()
2407 NETBSD_INSPIRED_EXTERN time_t
2408 posix2time_z(struct state *sp, time_t t) in posix2time_z()
2410 time_t x; in posix2time_z()
2411 time_t y; in posix2time_z()
2436 time_t
2437 posix2time(time_t t) in posix2time()
2475 time_t
2476 time(time_t *p) in time()
2478 time_t r = sys_time(0); in time()
2479 if (r != (time_t) -1) { in time()