| 2209 | # endif |
| 2210 | |
| 2211 | static struct tm * |
| 2212 | localtime_tzset(time_t const *timep, struct tm *tmp, bool setname) |
| 2213 | { |
| 2214 | monotime_t now = get_monotonic_time(); |
| 2215 | int err = lock(); |
| 2216 | if (0 < err) { |
| 2217 | errno = err; |
| 2218 | return NULL; |
| 2219 | } |
| 2220 | if (0 <= tz_change_interval || setname || !lcl_is_set) |
| 2221 | tzset_unlocked(!err, false, now); |
| 2222 | tmp = localsub(lclptr, timep, setname, tmp); |
| 2223 | unlock(!err); |
| 2224 | return tmp; |
| 2225 | } |
| 2226 | |
| 2227 | struct tm * |
| 2228 | localtime(const time_t *timep) |
no test coverage detected