Lines Matching refs:time_t
1 /* Convert timestamp from time_t to struct tm. */
96 time_t ls_trans; /* transition time */
127 time_t ats[TZ_MAX_TIMES];
154 static struct tm *gmtsub(struct state const *, time_t const *, int_fast32_t,
157 static bool increment_overflow_time(time_t *, int_fast32_t);
158 static int_fast32_t leapcorr(struct state const *, time_t);
160 static struct tm *timesub(time_t const *, int_fast32_t, struct state const *,
520 /* Read transitions, discarding those out of time_t range.
529 time_t attime
530 = ((TYPE_SIGNED(time_t) ? at < TIME_T_MIN : at < 0)
574 /* Read leap seconds, discarding those out of time_t range. */
691 time_t t = ts->ats[i];
1097 time_t atlo = TIME_T_MIN, leaplo = TIME_T_MIN;
1160 time_t janfirst;
1198 time_t janfirst1 = janfirst;
1496 localsub(struct state const *sp, time_t const *timep, int_fast32_t setname,
1502 const time_t t = *timep;
1510 time_t newt;
1511 register time_t seconds;
1512 register time_t years;
1520 be close to the maximum time_t. */
1592 localtime_rz(struct state *restrict sp, time_t const *restrict timep,
1601 localtime_tzset(time_t const *timep, struct tm *tmp, bool setname)
1616 localtime(const time_t *timep)
1625 localtime_r(const time_t *restrict timep, struct tm *restrict tmp)
1635 gmtsub(ATTRIBUTE_MAYBE_UNUSED struct state const *sp, time_t const *timep,
1658 gmtime_r(time_t const *restrict timep, struct tm *restrict tmp)
1665 gmtime(const time_t *timep)
1679 offtime(const time_t *timep, long offset)
1696 static time_t
1697 leaps_thru_end_of_nonneg(time_t y)
1702 static time_t
1703 leaps_thru_end_of(time_t y)
1711 timesub(const time_t *timep, int_fast32_t offset,
1715 register time_t tdays;
1720 time_t y;
1725 time_t secs_since_posleap = SECSPERMIN;
1740 time_t is unsigned. */
1750 for localtime values before 1970 when time_t is unsigned. */
1766 time_t newy = y + ydelta;
1781 if (!TYPE_SIGNED(time_t) && y < TM_YEAR_BASE) {
1784 } else if ((!TYPE_SIGNED(time_t) || INT_MIN + TM_YEAR_BASE <= y)
1829 ** It does a binary search of the time_t space. Since time_t's are
1879 increment_overflow_time(time_t *tp, int_fast32_t j)
1890 ? (TYPE_SIGNED(time_t) ? TIME_T_MIN - j <= *tp : -1 - j < *tp)
1955 static time_t
1957 struct tm *(*funcp)(struct state const *, time_t const *,
1968 register time_t lo;
1969 register time_t hi;
1971 time_t newt;
1972 time_t t;
2049 ** Do a binary search (this works whatever time_t's type is).
2101 time_t altt = t;
2160 static time_t
2162 struct tm *(*funcp)(struct state const *, time_t const *,
2168 time_t t;
2179 static time_t
2181 struct tm *(*funcp)(struct state const *, time_t const *,
2186 register time_t t;
2251 static time_t
2264 time_t
2272 time_t
2275 time_t t;
2290 time_t
2308 EXTERN_TIMEOFF time_t
2317 time_t
2320 time_t t;
2331 leapcorr(struct state const *sp, time_t t)
2367 NETBSD_INSPIRED_EXTERN time_t
2368 time2posix_z(struct state *sp, time_t t)
2373 time_t
2374 time2posix(time_t t)
2389 NETBSD_INSPIRED_EXTERN time_t
2390 posix2time_z(struct state *sp, time_t t)
2392 time_t x;
2393 time_t y;
2418 time_t
2419 posix2time(time_t t)
2446 /* Convert from the underlying system's time_t to the ersatz time_tz,
2447 which is called 'time_t' in this file. Typically, this merely
2453 returns time_t, the macros in private.h cause this code to actually
2457 time_t
2458 time(time_t *p)
2460 time_t r = sys_time(0);
2461 if (r != (time_t) -1) {