| 3067 | } |
| 3068 | |
| 3069 | time_t |
| 3070 | time2posix(time_t t) |
| 3071 | { |
| 3072 | monotime_t now = get_monotonic_time(); |
| 3073 | int err = lock(); |
| 3074 | if (0 < err) { |
| 3075 | errno = err; |
| 3076 | return -1; |
| 3077 | } |
| 3078 | if (0 <= tz_change_interval || !lcl_is_set) |
| 3079 | tzset_unlocked(!err, false, now); |
| 3080 | if (lclptr) |
| 3081 | t = time2posix_z(lclptr, t); |
| 3082 | unlock(!err); |
| 3083 | return t; |
| 3084 | } |
| 3085 | |
| 3086 | NETBSD_INSPIRED_EXTERN time_t |
| 3087 | posix2time_z(struct state *sp, time_t t) |
nothing calls this directly
no test coverage detected