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;
344 tmp = my_localtime(&t);
345 if (tmp != NULL) {
346 tm = *tmp;
356 if ((tmp == NULL || newtmp == NULL) ? (tmp != newtmp) :
371 tmp = newtmp;
481 register struct tm * tmp;
499 tmp = my_localtime(&t);
500 if (tmp != NULL)
501 tm = *tmp;
502 if ((lotmp == NULL || tmp == NULL) ? (lotmp == tmp) :
508 lotmp = tmp;
546 register struct tm * tmp;
550 tmp = gmtime(&t);
551 if (tmp == NULL) {
554 dumptime(tmp);
559 tmp = my_localtime(&t);
560 dumptime(tmp);
561 if (tmp != NULL) {
562 if (*abbr(tmp) != '\0')
563 (void) printf(" %s", abbr(tmp));
565 (void) printf(" isdst=%d", tmp->tm_isdst);
567 (void) printf(" gmtoff=%ld", tmp->TM_GMTOFF);
572 if (tmp != NULL && *abbr(tmp) != '\0')
573 abbrok(abbr(tmp), zone);
577 abbr(tmp)
578 struct tm * tmp;
583 if (tmp->tm_isdst != 0 && tmp->tm_isdst != 1)
585 result = tzname[tmp->tm_isdst];