Lines Matching defs:tmp
225 static char * abbr(struct tm * tmp);
228 static void dumptime(const struct tm * tmp);
252 register struct tm * tmp;
254 tmp = localtime(tp);
255 if (tp != NULL && tmp != NULL) {
259 tm = *tmp;
266 (void) fprintf(stderr, " year=%d", tmp->tm_year);
267 (void) fprintf(stderr, " mon=%d", tmp->tm_mon);
268 (void) fprintf(stderr, " mday=%d", tmp->tm_mday);
269 (void) fprintf(stderr, " hour=%d", tmp->tm_hour);
270 (void) fprintf(stderr, " min=%d", tmp->tm_min);
271 (void) fprintf(stderr, " sec=%d", tmp->tm_sec);
272 (void) fprintf(stderr, " isdst=%d", tmp->tm_isdst);
278 return tmp;
345 register struct tm * tmp;
589 tmp = my_localtime(&t);
590 if (tmp != NULL) {
591 tm = *tmp;
607 if ((tmp == NULL || newtmp == NULL) ? (tmp != newtmp) :
621 if ((tmp == NULL || newtmp == NULL) ? (tmp != newtmp) :
639 tmp = newtmp;
733 register struct tm * tmp;
751 tmp = my_localtime(&t);
752 if (tmp != NULL)
753 tm = *tmp;
754 if ((lotmp == NULL || tmp == NULL) ? (lotmp == tmp) :
760 lotmp = tmp;
796 register struct tm * tmp;
800 tmp = gmtime(&t);
801 if (tmp == NULL) {
804 dumptime(tmp);
809 tmp = my_localtime(&t);
810 dumptime(tmp);
811 if (tmp != NULL) {
812 if (*abbr(tmp) != '\0')
813 (void) printf(" %s", abbr(tmp));
815 (void) printf(" isdst=%d", tmp->tm_isdst);
817 (void) printf(" gmtoff=%ld", tmp->TM_GMTOFF);
822 if (tmp != NULL && *abbr(tmp) != '\0')
823 abbrok(abbr(tmp), zone);
827 abbr(struct tm *tmp)
832 if (tmp->tm_isdst != 0 && tmp->tm_isdst != 1)
834 result = tzname[tmp->tm_isdst];
928 register struct tm * tmp;
946 tmp = my_localtime(&t);
947 if (tmp != NULL)
948 tm = *tmp;
951 if ((lotmp == NULL || tmp == NULL) ? (lotmp == tmp) :
956 lotmp = tmp;