| 2929 | static |
| 2930 | # endif |
| 2931 | time_t |
| 2932 | mktime(struct tm *tmp) |
| 2933 | { |
| 2934 | monotime_t now = get_monotonic_time(); |
| 2935 | time_t t; |
| 2936 | int err = lock(); |
| 2937 | if (0 < err) { |
| 2938 | errno = err; |
| 2939 | return -1; |
| 2940 | } |
| 2941 | tzset_unlocked(!err, false, now); |
| 2942 | t = mktime_tzname(lclptr, tmp, true); |
| 2943 | unlock(!err); |
| 2944 | return t; |
| 2945 | } |
| 2946 | |
| 2947 | #endif |
| 2948 |
no test coverage detected