weak_alias(__timezone, timezone);
weak_alias(__daylight, daylight);
weak_alias(__tzname, tzname);
-weak_alias(__dst_offset, dst_offset);
static char std_name[TZNAME_MAX+1];
static char dst_name[TZNAME_MAX+1];
/* all elements are zero-based */
static struct rule {
- char month;
- char week;
+ signed char month;
+ signed char week;
short day;
int time;
} __dst_start, __dst_end;
void __tzset(void)
{
- static int lock, init;
+ static int lock[2], init;
if (init) return;
- LOCK(&lock);
+ LOCK(lock);
if (!init) tzset();
init=1;
- UNLOCK(&lock);
+ UNLOCK(lock);
}
static int is_leap(int year)