benilla-re systems structs docs

___tzset

function · crt · orchestration

Address
0x414561 · 46 bytes, up to 0x41458e
Signature
void __cdecl (void)
Meaning
Runs __tzset_lk under lock 0xb on the first call only, marked in 0x883c60
Confidence
verified, proof one
Name from
the community database (idb)
Finding
crt/time#the-zone-read-once

Finding: The zone, read once in crt: calendar time

___tzset runs __tzset_lk on its first call only, so the zone is read once per process, by the first localtime, mktime, strftime %Z or ___loctotime_t (0x7426e9, its call at 0x742728, which time and the stat functions reach from 12 sites). With the environment variable TZ set and not empty, the zone is its text: up to three bytes of standard name, then hours west of UTC with an optional - for east, optional :minutes and :seconds, then up to three bytes of daylight name. _daylight is the first byte of that name, 0 without one, and _dstbias keeps its value. An empty TZ leaves the file's zone. _tzset, which would read the zone again, has no caller.

The derivation is in the doc.

Callers 4

Callees 3

Calls and jumps by a bare address, from tables/calls.tsv.