| 3110 | } |
| 3111 | |
| 3112 | time_t |
| 3113 | posix2time(time_t t) |
| 3114 | { |
| 3115 | monotime_t now = get_monotonic_time(); |
| 3116 | int err = lock(); |
| 3117 | if (0 < err) { |
| 3118 | errno = err; |
| 3119 | return -1; |
| 3120 | } |
| 3121 | if (0 <= tz_change_interval || !lcl_is_set) |
| 3122 | tzset_unlocked(!err, false, now); |
| 3123 | if (lclptr) |
| 3124 | t = posix2time_z(lclptr, t); |
| 3125 | unlock(!err); |
| 3126 | return t; |
| 3127 | } |
| 3128 | |
| 3129 | # endif /* STD_INSPIRED */ |
| 3130 |
nothing calls this directly
no test coverage detected