Lines Matching refs:time_t

217 struct timespec { time_t tv_sec; long tv_nsec; };
252 typedef time_t monotime_t;
265 # undef time_t
266 # define time_t timex_t macro
485 time_t ls_trans; /* transition time (positive) */
511 time_t ats[TZ_MAX_TIMES];
572 static struct tm *gmtsub(struct state const *, time_t const *, int_fast32_t,
573 struct tm *, time_t *);
574 static bool increment_overflow_time(time_t *, int_fast32_2s);
575 static int_fast32_2s leapcorr(struct state const *, time_t);
576 static struct tm *timesub(time_t const *, int_fast32_t, struct state const *,
577 struct tm *, time_t *);
1125 time_t attime in tzloadbody()
1126 = ((TYPE_SIGNED(time_t) ? at < TIME_T_MIN : at < 0) in tzloadbody()
1279 time_t t = ts->ats[i]; in tzloadbody()
1527 transtime(time_t year, register const struct rule *const rulep, in transtime()
1559 int adjustment = (TYPE_SIGNED(time_t) ? 0 : 400) - janfeb; in transtime()
1606 time_t atlo = TIME_T_MIN, leaplo = TIME_T_MIN; in tzparse()
1643 time_t janfirst, repeatbeg, year, yearbeg, yearlim; in tzparse()
1695 time_t janfirst1 = janfirst; in tzparse()
1707 time_t janfirst1 = janfirst; in tzparse()
1730 time_t at_added = TIME_T_MAX; in tzparse()
1731 time_t at = janfirst; in tzparse()
2060 localsub(struct state const *sp, time_t const *timep, int_fast32_t setname, in localsub()
2061 struct tm *tmp, time_t *ltm_year) in localsub()
2066 const time_t t = *timep; in localsub()
2076 time_t in localsub()
2097 time_t newy = ryear + years; in localsub()
2175 localtime_rz(struct state *restrict sp, time_t const *restrict timep, in localtime_rz()
2183 localtime_tzset(time_t const *timep, struct tm *tmp, bool setname) in localtime_tzset()
2199 localtime(const time_t *timep) in localtime()
2208 localtime_r(const time_t *restrict timep, struct tm *restrict tmp) in localtime_r()
2219 gmtsub(ATTRIBUTE_MAYBE_UNUSED struct state const *sp, time_t const *timep, in gmtsub()
2220 int_fast32_t offset, struct tm *tmp, time_t *ltm_year) in gmtsub()
2244 gmtime_r(time_t const *restrict timep, struct tm *restrict tmp) in gmtime_r()
2251 gmtime(const time_t *timep) in gmtime()
2265 offtime_r(time_t const *restrict timep, long offset, struct tm *restrict tmp) in offtime_r()
2272 offtime(time_t const *timep, long offset) in offtime()
2288 static time_t
2289 leaps_thru_end_of_nonneg(time_t y) in leaps_thru_end_of_nonneg()
2294 static time_t
2295 leaps_thru_end_of(time_t y) in leaps_thru_end_of()
2303 timesub(const time_t *timep, int_fast32_t offset, in timesub()
2304 const struct state *sp, struct tm *tmp, time_t *ltm_year) in timesub()
2306 register time_t tdays; in timesub()
2311 time_t y; in timesub()
2316 time_t secs_since_posleap = SECSPERMIN; in timesub()
2357 time_t newy = y + ydelta; in timesub()
2375 if (!TYPE_SIGNED(time_t) && y < TM_YEAR_BASE) { in timesub()
2378 } else if ((!TYPE_SIGNED(time_t) || INT_MIN + TM_YEAR_BASE <= y) in timesub()
2452 increment_overflow_time_iinntt(time_t *tp, iinntt j) in increment_overflow_time_iinntt()
2458 ? (TYPE_SIGNED(time_t) ? *tp < TIME_T_MIN - j : *tp <= -1 - j) in increment_overflow_time_iinntt()
2467 increment_overflow_time_64(time_t *tp, int_fast64_t j) in increment_overflow_time_64()
2473 ? (TYPE_SIGNED(time_t) ? *tp < TIME_T_MIN - j : *tp <= -1 - j) in increment_overflow_time_64()
2482 increment_overflow_time(time_t *tp, int_fast32_2s j) in increment_overflow_time()
2493 ? (TYPE_SIGNED(time_t) ? TIME_T_MIN - j <= *tp : -1 - j < *tp) in increment_overflow_time()
2543 static time_t
2545 struct tm *funcp(struct state const *, time_t const *, in time2sub()
2546 int_fast32_t, struct tm *, time_t *), in time2sub() argument
2554 register time_t lo; in time2sub()
2555 register time_t hi; in time2sub()
2557 time_t newt; in time2sub()
2558 time_t t; in time2sub()
2705 time_t altt = t; in time2sub()
2776 static time_t
2778 struct tm *funcp(struct state const *, time_t const *, in time2()
2779 int_fast32_t, struct tm *, time_t *), in time2() argument
2784 time_t t; in time2()
2795 static time_t
2797 struct tm *funcp(struct state const *, time_t const *, in time1()
2798 int_fast32_t, struct tm *, time_t *), in time1() argument
2802 register time_t t; in time1()
2872 static time_t
2886 time_t
2890 time_t t; in mktime()
2905 time_t
2915 time_t
2935 EXTERN_TIMEOFF time_t
2946 time_t
2949 time_t t; in timegm()
2961 leapcorr(struct state const *sp, time_t t) in leapcorr()
2982 decrement_overflow_time(time_t *tp, int_fast32_2s j) in decrement_overflow_time()
2989 : (TYPE_SIGNED(time_t) ? TIME_T_MIN + j <= *tp : j <= *tp))) in decrement_overflow_time()
3012 NETBSD_INSPIRED_EXTERN time_t
3013 time2posix_z(struct state *sp, time_t t) in time2posix_z()
3024 time_t
3025 time2posix(time_t t) in time2posix()
3041 NETBSD_INSPIRED_EXTERN time_t
3042 posix2time_z(struct state *sp, time_t t) in posix2time_z()
3047 time_t t_corr = t; in posix2time_z()
3067 time_t
3068 posix2time(time_t t) in posix2time()
3103 time_t
3104 time(time_t *p) in time()
3106 time_t r = sys_time(NULL); in time()
3107 if (r != (time_t) -1) { in time()