Lines Matching refs:tmp

1566 	 struct tm *const tmp)  in localsub()  argument
1575 return gmtsub(gmtptr, timep, 0, tmp); in localsub()
1601 result = localsub(sp, &newt, setname, tmp); in localsub()
1646 result = timesub(&t, ttisp->tt_utoff, sp, tmp); in localsub()
1662 struct tm *restrict tmp) in localtime_rz() argument
1664 return localsub(sp, timep, 0, tmp); in localtime_rz()
1670 localtime_tzset(time_t const *timep, struct tm *tmp) in localtime_tzset() argument
1685 tmp = localsub(lclptr, timep, true, tmp); in localtime_tzset()
1687 return tmp; in localtime_tzset()
1700 localtime_r(const time_t *restrict timep, struct tm *restrict tmp) in localtime_r() argument
1702 return localtime_tzset(timep, tmp); in localtime_r()
1711 int_fast32_t offset, struct tm *tmp) in gmtsub() argument
1715 result = timesub(timep, offset, gmtptr, tmp); in gmtsub()
1722 tmp->TM_ZONE = ((char *) in gmtsub()
1733 gmtime_r(time_t const *restrict timep, struct tm *restrict tmp) in gmtime_r() argument
1736 return gmtsub(gmtptr, timep, 0, tmp); in gmtime_r()
1784 const struct state *sp, struct tm *tmp) in timesub() argument
1848 if (ckd_add(&tmp->tm_year, y, -TM_YEAR_BASE)) { in timesub()
1855 tmp->tm_year = signed_y - TM_YEAR_BASE; in timesub()
1858 tmp->tm_year = y - TM_YEAR_BASE; in timesub()
1864 tmp->tm_yday = idays; in timesub()
1868 tmp->tm_wday = (TM_WDAY_BASE in timesub()
1869 + ((tmp->tm_year % DAYSPERWEEK) in timesub()
1874 tmp->tm_wday %= DAYSPERWEEK; in timesub()
1875 if (tmp->tm_wday < 0) in timesub()
1876 tmp->tm_wday += DAYSPERWEEK; in timesub()
1877 tmp->tm_hour = rem / SECSPERHOUR; in timesub()
1879 tmp->tm_min = rem / SECSPERMIN; in timesub()
1880 tmp->tm_sec = rem % SECSPERMIN; in timesub()
1884 tmp->tm_sec += secs_since_posleap <= tmp->tm_sec; in timesub()
1887 for (tmp->tm_mon = 0; idays >= ip[tmp->tm_mon]; ++(tmp->tm_mon)) in timesub()
1888 idays -= ip[tmp->tm_mon]; in timesub()
1889 tmp->tm_mday = idays + 1; in timesub()
1890 tmp->tm_isdst = 0; in timesub()
1892 tmp->TM_GMTOFF = offset; in timesub()
1894 return tmp; in timesub()
2028 time2sub(struct tm *const tmp, in time2sub() argument
2048 mktmcpy(&yourtm, tmp); in time2sub()
2227 if (funcp(sp, &t, offset, tmp)) in time2sub()
2233 time2(struct tm * const tmp, in time2() argument
2247 t = time2sub(tmp, funcp, sp, offset, okayp, false); in time2()
2248 return *okayp ? t : time2sub(tmp, funcp, sp, offset, okayp, true); in time2()
2252 time1(struct tm *const tmp, in time1() argument
2267 if (tmp == NULL) { in time1()
2271 if (tmp->tm_isdst > 1) in time1()
2272 tmp->tm_isdst = 1; in time1()
2273 t = time2(tmp, funcp, sp, offset, &okay); in time1()
2276 if (tmp->tm_isdst < 0) in time1()
2281 tmp->tm_isdst = 0; /* reset to std and try again */ in time1()
2303 if (sp->ttis[samei].tt_isdst != tmp->tm_isdst) in time1()
2307 if (sp->ttis[otheri].tt_isdst == tmp->tm_isdst) in time1()
2309 tmp->tm_sec += (sp->ttis[otheri].tt_utoff in time1()
2311 tmp->tm_isdst = !tmp->tm_isdst; in time1()
2312 t = time2(tmp, funcp, sp, offset, &okay); in time1()
2315 tmp->tm_sec -= (sp->ttis[otheri].tt_utoff in time1()
2317 tmp->tm_isdst = !tmp->tm_isdst; in time1()
2324 mktime_tzname(struct state *sp, struct tm *tmp, bool setname) in mktime_tzname() argument
2327 return time1(tmp, localsub, sp, setname); in mktime_tzname()
2330 return time1(tmp, gmtsub, gmtptr, 0); in mktime_tzname()
2337 mktime_z(struct state *restrict sp, struct tm *restrict tmp) in mktime_z() argument
2339 return mktime_tzname(sp, tmp, false); in mktime_z()
2345 mktime(struct tm *tmp) in mktime() argument
2358 t = mktime_tzname(lclptr, tmp, true); in mktime()
2369 timelocal(struct tm *tmp) in timelocal() argument
2371 if (tmp != NULL) in timelocal()
2372 tmp->tm_isdst = -1; /* in case it wasn't initialized */ in timelocal()
2373 return mktime(tmp); in timelocal()
2379 timeoff(struct tm *tmp, long offset) in timeoff() argument
2381 if (tmp) in timeoff()
2382 tmp->tm_isdst = 0; in timeoff()
2384 return time1(tmp, gmtsub, gmtptr, offset); in timeoff()
2388 timegm(struct tm *tmp) in timegm() argument
2392 mktmcpy(&tmcpy, tmp); in timegm()
2396 *tmp = tmcpy; in timegm()