Lines Matching defs:tmp
156 static char * abbr(struct tm * tmp);
159 static void dumptime(const struct tm * tmp);
173 register struct tm * tmp;
175 tmp = localtime(tp);
176 if (tp != NULL && tmp != NULL) {
180 tm = *tmp;
187 (void) fprintf(stderr, " year=%d", tmp->tm_year);
188 (void) fprintf(stderr, " mon=%d", tmp->tm_mon);
189 (void) fprintf(stderr, " mday=%d", tmp->tm_mday);
190 (void) fprintf(stderr, " hour=%d", tmp->tm_hour);
191 (void) fprintf(stderr, " min=%d", tmp->tm_min);
192 (void) fprintf(stderr, " sec=%d", tmp->tm_sec);
193 (void) fprintf(stderr, " isdst=%d", tmp->tm_isdst);
199 return tmp;
252 register struct tm * tmp;
343 tmp = my_localtime(&t);
344 if (tmp != NULL) {
345 tm = *tmp;
355 if ((tmp == NULL || newtmp == NULL) ? (tmp != newtmp) :
370 tmp = newtmp;
480 register struct tm * tmp;
498 tmp = my_localtime(&t);
499 if (tmp != NULL)
500 tm = *tmp;
501 if ((lotmp == NULL || tmp == NULL) ? (lotmp == tmp) :
507 lotmp = tmp;
545 register struct tm * tmp;
549 tmp = gmtime(&t);
550 if (tmp == NULL) {
553 dumptime(tmp);
558 tmp = my_localtime(&t);
559 dumptime(tmp);
560 if (tmp != NULL) {
561 if (*abbr(tmp) != '\0')
562 (void) printf(" %s", abbr(tmp));
564 (void) printf(" isdst=%d", tmp->tm_isdst);
566 (void) printf(" gmtoff=%ld", tmp->TM_GMTOFF);
571 if (tmp != NULL && *abbr(tmp) != '\0')
572 abbrok(abbr(tmp), zone);
576 abbr(tmp)
577 struct tm * tmp;
582 if (tmp->tm_isdst != 0 && tmp->tm_isdst != 1)
584 result = tzname[tmp->tm_isdst];