|
|
@ -77,6 +77,12 @@ static const char elsieid[] = "@(#)localtime.c 7.57";
|
|
|
|
#define OPEN_MODE O_RDONLY
|
|
|
|
#define OPEN_MODE O_RDONLY
|
|
|
|
#endif /* !defined O_BINARY */
|
|
|
|
#endif /* !defined O_BINARY */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef SOLARIS
|
|
|
|
|
|
|
|
#undef TM_ZONE
|
|
|
|
|
|
|
|
#undef TM_GMTOFF
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef TM_ZONE
|
|
|
|
#ifndef WILDABBR
|
|
|
|
#ifndef WILDABBR
|
|
|
|
/*! \note
|
|
|
|
/*! \note
|
|
|
|
* Someone might make incorrect use of a time zone abbreviation:
|
|
|
|
* Someone might make incorrect use of a time zone abbreviation:
|
|
|
@ -101,6 +107,7 @@ static const char elsieid[] = "@(#)localtime.c 7.57";
|
|
|
|
#endif /* !defined WILDABBR */
|
|
|
|
#endif /* !defined WILDABBR */
|
|
|
|
|
|
|
|
|
|
|
|
static char wildabbr[] = "WILDABBR";
|
|
|
|
static char wildabbr[] = "WILDABBR";
|
|
|
|
|
|
|
|
#endif /* TM_ZONE */
|
|
|
|
|
|
|
|
|
|
|
|
/*! \brief FreeBSD defines 'zone' in 'struct tm' as non-const, so don't declare this
|
|
|
|
/*! \brief FreeBSD defines 'zone' in 'struct tm' as non-const, so don't declare this
|
|
|
|
string as const. */
|
|
|
|
string as const. */
|
|
|
@ -130,12 +137,6 @@ struct lsinfo {
|
|
|
|
#define MY_TZNAME_MAX 255
|
|
|
|
#define MY_TZNAME_MAX 255
|
|
|
|
#endif /* !defined TZNAME_MAX */
|
|
|
|
#endif /* !defined TZNAME_MAX */
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef SOLARIS
|
|
|
|
|
|
|
|
#undef TM_ZONE
|
|
|
|
|
|
|
|
#undef TM_GMTOFF
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct state {
|
|
|
|
struct state {
|
|
|
|
char name[TZ_STRLEN_MAX + 1];
|
|
|
|
char name[TZ_STRLEN_MAX + 1];
|
|
|
|
int leapcnt;
|
|
|
|
int leapcnt;
|
|
|
|