__tzset
function · crt · unreached
- Address
0x41458f· 22 bytes, up to0x4145a4- Signature
void __cdecl (void)- Meaning
- Runs __tzset_lk under lock 0xb; nothing calls it
- 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 0
None by a direct call or jump.
Callees 3
- __lock crt
- __unlock crt
- __tzset_lk crt
Calls and jumps by a bare address, from tables/calls.tsv.