Lines Matching refs:temp
79 struct tm *temp; in localtime_r() local
84 if ((temp = gmtime_r(&time_v, result))==NULL) in localtime_r()
86 if (temp->tm_year < 66) in localtime_r()
87 return temp; in localtime_r()
143 for (p=chart; p->year > temp->tm_year; p++) in localtime_r()
148 month = temp->tm_mon; in localtime_r()
155 return temp; /* isdst=0 */ in localtime_r()
161 day = (temp->tm_year < 87) ? 30: 7; in localtime_r()
162 month = temp->tm_mon; in localtime_r()
169 return temp; /* isdst=0 */ in localtime_r()
174 sunday_mday = (temp->tm_mday-temp->tm_wday); in localtime_r()
179 else if (temp->tm_wday) /* sunday_mday is the boundary, in localtime_r()
183 else if (temp->tm_hour>=2) /* after 2am on a sunday */ in localtime_r()
186 temp->tm_isdst = isdst; in localtime_r()
188 if ( ++(temp->tm_hour)==24 ) { in localtime_r()
189 temp->tm_hour=0; in localtime_r()
190 ++(temp->tm_yday); /* can't overflow dst not on Dec. 31 */ in localtime_r()
191 if ( ++(temp->tm_wday)==7 ) temp->tm_wday=0; in localtime_r()
192 if ( ++(temp->tm_mday)>mons[month] ) { in localtime_r()
193 temp->tm_mday=1; in localtime_r()
194 ++(temp->tm_mon); /* can't overflow dst not on Dec. 31 */ in localtime_r()
198 return( temp ); in localtime_r()
202 struct tm *temp = __ghs_GetThreadLocalStorageItem(__ghs_TLS_gmtime_temp); in localtime() local
203 if (!temp) in localtime()
204 temp = &__ghs_static_gmtime_temp; in localtime()
205 return(localtime_r(timer, temp)); in localtime()