Lines Matching defs:tmp

147 				struct tm * tmp));
149 struct tm * tmp));
152 static time_t time1 P((struct tm * tmp, void (* funcp)(),
154 static time_t time2 P((struct tm *tmp, void (* funcp)(),
157 struct tm * tmp));
1028 localsub(timep, offset, tmp)
1031 struct tm * const tmp;
1042 gmtsub(timep, offset, tmp);
1059 timesub(&t, ttisp->tt_gmtoff, tmp);
1060 tmp->tm_isdst = ttisp->tt_isdst;
1062 tzname[tmp->tm_isdst] = (char *) &sp->chars[ttisp->tt_abbrind];
1064 tmp->tm_zone = &sp->chars[ttisp->tt_abbrind];
1086 gmtsub(timep, offset, tmp)
1089 struct tm * const tmp;
1097 timesub(timep, offset, tmp);
1104 tmp->tm_zone = (char *)WILDABBR;
1107 tmp->tm_zone = (char *)GMT;
1108 else tmp->tm_zone = gmtptr->chars;
1130 timesub(timep, offset, tmp)
1133 register struct tm * const tmp;
1152 tmp->tm_hour = (int) (rem / SECSPERHOUR);
1154 tmp->tm_min = (int) (rem / SECSPERMIN);
1155 tmp->tm_sec = (int) (rem % SECSPERMIN);
1156 tmp->tm_wday = (int) ((EPOCH_WDAY + days) % DAYSPERWEEK);
1157 if (tmp->tm_wday < 0)
1158 tmp->tm_wday += DAYSPERWEEK;
1173 tmp->tm_year = y - TM_YEAR_BASE;
1174 tmp->tm_yday = (int) days;
1176 for (tmp->tm_mon = 0; days >= (long) ip[tmp->tm_mon]; ++(tmp->tm_mon))
1177 days = days - (long) ip[tmp->tm_mon];
1178 tmp->tm_mday = (int) (days + 1);
1179 tmp->tm_isdst = 0;
1180 tmp->tm_gmtoff = offset;
1202 int tmp;
1208 /* tmp has the range 0 to abs(*unitptr) -1 */
1209 tmp = -1 - (*unitsptr);
1210 *tensptr -= (tmp/base + 1);
1211 *unitsptr = (base - 1) - (tmp % base);
1232 time2(tmp, funcp, offset, okayp)
1233 struct tm * const tmp;
1248 yourtm = *tmp;
1341 (*funcp)(&t, offset, tmp);
1347 time1(tmp, funcp, offset)
1348 struct tm * const tmp;
1358 if (tmp->tm_isdst > 1)
1359 tmp->tm_isdst = 1;
1360 t = time2(tmp, funcp, offset, &okay);
1361 if (okay || tmp->tm_isdst < 0)
1373 if (sp->ttis[samei].tt_isdst != tmp->tm_isdst)
1376 if (sp->ttis[otheri].tt_isdst == tmp->tm_isdst)
1378 tmp->tm_sec += sp->ttis[otheri].tt_gmtoff -
1380 tmp->tm_isdst = !tmp->tm_isdst;
1381 t = time2(tmp, funcp, offset, &okay);
1384 tmp->tm_sec -= sp->ttis[otheri].tt_gmtoff -
1386 tmp->tm_isdst = !tmp->tm_isdst;
1393 mktime(tmp)
1394 struct tm * const tmp;
1396 return time1(tmp, localsub, 0L);
1400 timelocal(tmp)
1401 struct tm * const tmp;
1403 tmp->tm_isdst = -1;
1404 return mktime(tmp);
1408 timegm(tmp)
1409 struct tm * const tmp;
1411 return time1(tmp, gmtsub, 0L);
1415 timeoff(tmp, offset)
1416 struct tm * const tmp;
1420 return time1(tmp, gmtsub, offset);