MCPcopy Create free account
hub / github.com/eggert/tz / posix2time

Function posix2time

localtime.c:3112–3127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3110}
3111
3112time_t
3113posix2time(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

Callers

nothing calls this directly

Calls 5

get_monotonic_timeFunction · 0.85
lockFunction · 0.85
tzset_unlockedFunction · 0.85
posix2time_zFunction · 0.85
unlockFunction · 0.85

Tested by

no test coverage detected