• Home
  • Raw
  • Download

Lines Matching refs:tmp

82 localsub(const time_t * const timep, const long   offset, struct tm * const tmp);
95 struct tm * const tmp in timesub() argument
146 tmp->tm_hour = (int) (rem / SECSPERHOUR); in timesub()
148 tmp->tm_min = (int) (rem / SECSPERMIN); in timesub()
153 tmp->tm_sec = (int) (rem % SECSPERMIN) + hit; in timesub()
154 tmp->tm_wday = (int) ((EPOCH_WDAY + days) % DAYSPERWEEK); in timesub()
155 if (tmp->tm_wday < 0) in timesub()
156 tmp->tm_wday += DAYSPERWEEK; in timesub()
169 tmp->tm_year = (int)(y - TM_YEAR_BASE); in timesub()
170 tmp->tm_yday = (int) days; in timesub()
172 for (tmp->tm_mon = 0; days >= (LONG32) ip[tmp->tm_mon]; ++(tmp->tm_mon)) in timesub()
173 days = days - (LONG32) ip[tmp->tm_mon]; in timesub()
174 tmp->tm_mday = (int) (days + 1); in timesub()
175 tmp->tm_isdst = 0; in timesub()
177 tmp->TM_GMTOFF = offset; in timesub()
246 struct tm * const tmp, in time2sub() argument
263 yourtm = *tmp; // Create a copy of tmp in time2sub()
396 (*funcp)(&t, offset, tmp); in time2sub()
402 time2(struct tm * const tmp, void (* const funcp)(const time_t*, long, struct tm*), in time2() argument
412 t = time2sub(tmp, funcp, offset, okayp, FALSE); in time2()
413 return *okayp ? t : time2sub(tmp, funcp, offset, okayp, TRUE); in time2()
418 struct tm * const tmp, in time1() argument
433 if (tmp->tm_isdst > 1) in time1()
434 tmp->tm_isdst = 1; in time1()
435 t = time2(tmp, funcp, offset, &okay); in time1()
442 if (tmp->tm_isdst < 0) in time1()
443 tmp->tm_isdst = 0; /* reset to std and try again */ in time1()
446 if (okay || tmp->tm_isdst < 0) in time1()
474 if (sp->ttis[samei].tt_isdst != tmp->tm_isdst) in time1()
478 if (sp->ttis[otheri].tt_isdst == tmp->tm_isdst) in time1()
480 tmp->tm_sec += (int)(sp->ttis[otheri].tt_gmtoff - in time1()
482 tmp->tm_isdst = !tmp->tm_isdst; in time1()
483 t = time2(tmp, funcp, offset, &okay); in time1()
486 tmp->tm_sec -= (int)(sp->ttis[otheri].tt_gmtoff - in time1()
488 tmp->tm_isdst = !tmp->tm_isdst; in time1()
666 struct tm * const tmp in gmtsub() argument
683 timesub(timep, offset, gmtptr, tmp); in gmtsub()
691 tmp->TM_ZONE = (__aconst char *)__UNCONST(wildabbr); in gmtsub()
695 tmp->TM_ZONE = (__aconst char *)__UNCONST(gmt); in gmtsub()
696 else tmp->TM_ZONE = gmtptr->chars; in gmtsub()
699 tmp->TM_ZONE = gmtptr->chars; in gmtsub()
715 localsub(const time_t * const timep, const long offset, struct tm * const tmp) in localsub() argument
725 gmtsub(timep, offset, tmp); in localsub()
749 timesub(&t, ttisp->tt_gmtoff, sp, tmp); in localsub()
750 tmp->tm_isdst = ttisp->tt_isdst; in localsub()
751 tzname[tmp->tm_isdst] = &sp->chars[ttisp->tt_abbrind]; in localsub()
753 tmp->TM_ZONE = &sp->chars[ttisp->tt_abbrind]; in localsub()