Lines Matching defs:tmp

162                 struct tm * tmp, struct state * sp); // android-changed: added sp.
164 struct tm * tmp, struct state * sp); // android-changed: added sp.
174 static time_t time1(struct tm * tmp,
178 static time_t time2(struct tm * tmp,
182 static time_t time2sub(struct tm *tmp,
187 const struct state * sp, struct tm * tmp);
1286 struct tm * const tmp, struct state * sp) // android-changed: added sp.
1299 return gmtsub(timep, offset, tmp, sp); // android-changed: added sp.
1318 result = localsub(&newt, offset, tmp, sp); // android-changed: added sp.
1319 if (result == tmp) {
1322 newy = tmp->tm_year;
1326 tmp->tm_year = newy;
1327 if (tmp->tm_year != newy)
1352 ** timesub(&t, 0L, sp, tmp);
1354 result = timesub(&t, ttisp->tt_gmtoff, sp, tmp);
1355 tmp->tm_isdst = ttisp->tt_isdst;
1356 tzname[tmp->tm_isdst] = &sp->chars[ttisp->tt_abbrind];
1358 tmp->TM_ZONE = &sp->chars[ttisp->tt_abbrind];
1374 localtime_r(const time_t * const timep, struct tm * tmp)
1380 result = localsub(timep, 0L, tmp, NULL); // android-changed: extra parameter.
1392 struct tm *const tmp, struct state * sp __unused) // android-changed: added sp.
1406 result = timesub(timep, offset, gmtptr, tmp);
1413 tmp->TM_ZONE = offset ? wildabbr : gmtptr ? gmtptr->chars : gmt;
1429 gmtime_r(const time_t * const timep, struct tm * tmp)
1434 result = gmtsub(timep, 0L, tmp, NULL); // android-changed: extra parameter.
1465 register struct tm *const tmp)
1555 tmp->tm_year = y;
1556 if (increment_overflow(&tmp->tm_year, -TM_YEAR_BASE))
1558 tmp->tm_yday = idays;
1562 tmp->tm_wday = EPOCH_WDAY +
1568 tmp->tm_wday %= DAYSPERWEEK;
1569 if (tmp->tm_wday < 0)
1570 tmp->tm_wday += DAYSPERWEEK;
1571 tmp->tm_hour = (int) (rem / SECSPERHOUR);
1573 tmp->tm_min = (int) (rem / SECSPERMIN);
1578 tmp->tm_sec = (int) (rem % SECSPERMIN) + hit;
1580 for (tmp->tm_mon = 0; idays >= ip[tmp->tm_mon]; ++(tmp->tm_mon))
1581 idays -= ip[tmp->tm_mon];
1582 tmp->tm_mday = (int) (idays + 1);
1583 tmp->tm_isdst = 0;
1585 tmp->TM_GMTOFF = offset;
1587 return tmp;
1713 time2sub(struct tm * const tmp,
1731 yourtm = *tmp;
1886 if ((*funcp)(&t, offset, tmp, sp)) // android-changed: added sp.
1892 time2(struct tm * const tmp,
1904 t = time2sub(tmp, funcp, offset, okayp, FALSE, sp);
1905 return *okayp ? t : time2sub(tmp, funcp, offset, okayp, TRUE, sp);
1909 time1(struct tm * const tmp,
1922 if (tmp == NULL) {
1926 if (tmp->tm_isdst > 1)
1927 tmp->tm_isdst = 1;
1928 t = time2(tmp, funcp, offset, &okay, sp); // android-changed: added sp.
1931 if (tmp->tm_isdst < 0)
1936 tmp->tm_isdst = 0; /* reset to std and try again */
1963 if (sp->ttis[samei].tt_isdst != tmp->tm_isdst)
1967 if (sp->ttis[otheri].tt_isdst == tmp->tm_isdst)
1969 tmp->tm_sec += sp->ttis[otheri].tt_gmtoff -
1971 tmp->tm_isdst = !tmp->tm_isdst;
1972 t = time2(tmp, funcp, offset, &okay, sp); // android-changed: added sp.
1975 tmp->tm_sec -= sp->ttis[otheri].tt_gmtoff -
1977 tmp->tm_isdst = !tmp->tm_isdst;
1984 mktime(struct tm * const tmp)
1988 time_t result = time1(tmp, localsub, 0L, NULL); // android-changed: extra parameter.
1996 timelocal(struct tm * const tmp)
1998 if (tmp != NULL)
1999 tmp->tm_isdst = -1; /* in case it wasn't initialized */
2000 return mktime(tmp);
2004 timegm(struct tm * const tmp)
2008 if (tmp != NULL)
2009 tmp->tm_isdst = 0;
2011 result = time1(tmp, gmtsub, 0L, NULL); // android-changed: extra parameter.
2018 timeoff(struct tm *const tmp, const long offset)
2020 if (tmp != NULL)
2021 tmp->tm_isdst = 0;
2022 return time1(tmp, gmtsub, offset, NULL); // android-changed: extra parameter.
2035 gtime(struct tm * const tmp)
2037 const time_t t = mktime(tmp);
2294 __attribute__((visibility("default"))) time_t mktime_tz(struct tm* const tmp, const char* tz) {
2305 return_value = time1(tmp, localsub, 0L, st);