| /freebsd/contrib/tzcode/ |
| H A D | asctime.c | 78 long long_TM_YEAR_BASE = TM_YEAR_BASE; in asctime_r() 115 if ((year <= LONG_MAX - TM_YEAR_BASE in asctime_r() 117 ((-999 - TM_YEAR_BASE <= year in asctime_r() 118 && year <= 9999 - TM_YEAR_BASE) in asctime_r() 126 year / 10 + TM_YEAR_BASE / 10, in asctime_r()
|
| H A D | strftime.c | 266 pt = _yconv(t->tm_year, TM_YEAR_BASE, in _fmt() 459 base = TM_YEAR_BASE; in _fmt() 554 pt = _yconv(t->tm_year, TM_YEAR_BASE, in _fmt() 559 pt = _yconv(t->tm_year, TM_YEAR_BASE, in _fmt()
|
| H A D | localtime.c | 2406 if (ckd_add(&tmp->tm_year, y, -TM_YEAR_BASE)) { in timesub() 2411 if (!TYPE_SIGNED(time_t) && y < TM_YEAR_BASE) { in timesub() 2413 tmp->tm_year = signed_y - TM_YEAR_BASE; in timesub() 2414 } else if ((!TYPE_SIGNED(time_t) || INT_MIN + TM_YEAR_BASE <= y) in timesub() 2415 && y - TM_YEAR_BASE <= INT_MAX) in timesub() 2416 tmp->tm_year = y - TM_YEAR_BASE; in timesub() 2430 - leaps_thru_end_of(TM_YEAR_BASE - 1) in timesub() 2657 y += TM_YEAR_BASE; in time2sub() 2681 if (ckd_add(&yourtm.tm_year, y, -TM_YEAR_BASE)) in time2sub() 2684 y -= TM_YEAR_BASE; in time2sub() [all …]
|
| H A D | zdump.c | 770 result += DAYSPERNYEAR + isleap_sum(tmy, TM_YEAR_BASE); in delta_nonneg() 797 yday += 365 + isleap_sum(b->tm_year, TM_YEAR_BASE); in adjusted_yday() 1242 trail = timeptr->tm_year % DIVISOR + TM_YEAR_BASE % DIVISOR; in dumptime() 1243 lead = timeptr->tm_year / DIVISOR + TM_YEAR_BASE / DIVISOR + in dumptime()
|
| H A D | private.h | 1154 TM_YEAR_BASE = 1900, enumerator
|
| H A D | NEWS | 5813 Avoid overflow problems when TM_YEAR_BASE is added to an integer.
|
| /freebsd/crypto/openssh/openbsd-compat/ |
| H A D | strptime.c | 38 #define TM_YEAR_BASE 1900 /* from tzfile.h */ macro 76 century = TM_YEAR_BASE; in _strptime() 331 tm->tm_year = i - TM_YEAR_BASE; in _strptime() 363 if (century == TM_YEAR_BASE) { in _strptime() 365 tm->tm_year = relyear + 2000 - TM_YEAR_BASE; in _strptime() 367 tm->tm_year = relyear + 1900 - TM_YEAR_BASE; in _strptime() 369 tm->tm_year = relyear + century - TM_YEAR_BASE; in _strptime()
|
| /freebsd/bin/date/ |
| H A D | date.c | 51 #ifndef TM_YEAR_BASE 52 #define TM_YEAR_BASE 1900 macro 302 lt->tm_year = ATOI2(p) * 100 - TM_YEAR_BASE; in setthetime() 311 lt->tm_year += 2000 - TM_YEAR_BASE; in setthetime() 313 lt->tm_year += 1900 - TM_YEAR_BASE; in setthetime()
|
| /freebsd/lib/libc/stdtime/ |
| H A D | strptime.c | 616 year += century * 100 - TM_YEAR_BASE; in _strptime() 624 TM_YEAR_BASE)][tm->tm_mon] + (tm->tm_mday - 1); in _strptime() 629 fwo = first_wday_of(tm->tm_year + TM_YEAR_BASE); in _strptime() 658 TM_YEAR_BASE)][i]) in _strptime() 664 TM_YEAR_BASE)][12]; in _strptime() 672 start_of_month[isleap(tm->tm_year + TM_YEAR_BASE)] in _strptime() 677 wday_offset = first_wday_of(tm->tm_year + TM_YEAR_BASE); in _strptime()
|
| H A D | strftime.c | 167 pt = _yconv(t->tm_year, TM_YEAR_BASE, 1, 0, in _fmt() 368 base = TM_YEAR_BASE; in _fmt() 462 pt = _yconv(t->tm_year, TM_YEAR_BASE, 0, 1, in _fmt() 466 pt = _yconv(t->tm_year, TM_YEAR_BASE, 1, 1, in _fmt()
|
| /freebsd/contrib/unbound/compat/ |
| H A D | strptime.c | 48 #define TM_YEAR_BASE 1900 macro 167 tm->tm_year = ret*100 - TM_YEAR_BASE; in unbound_strptime() 323 tm->tm_year = ret - TM_YEAR_BASE; in unbound_strptime()
|
| H A D | gmtime_r.c | 28 #define TM_YEAR_BASE 1900 macro 91 tmp->tm_year = y - TM_YEAR_BASE;
|
| /freebsd/crypto/krb5/src/lib/krb5/krb/ |
| H A D | strptime.c | 319 tm->tm_year = i - TM_YEAR_BASE; 333 tm->tm_year = i + 2000 - TM_YEAR_BASE; 335 tm->tm_year = i + 1900 - TM_YEAR_BASE;
|
| H A D | str_conv.c | 315 #undef TM_YEAR_BASE 316 #define TM_YEAR_BASE 1900 macro
|
| /freebsd/contrib/ntp/libntp/ |
| H A D | mktime.c | 88 #define TM_YEAR_BASE 1900 macro 205 year_lengths[isleap(yourtm.tm_year + TM_YEAR_BASE)]; in time2() 209 TM_YEAR_BASE)][yourtm.tm_mon]; in time2()
|
| /freebsd/contrib/tnftp/ |
| H A D | tnftp.h | 470 #define TM_YEAR_BASE 1900 macro
|
| H A D | ChangeLog | 1374 "%04d", tm->tm_year + TM_YEAR_BASE
|
| /freebsd/contrib/tzdata/ |
| H A D | NEWS | 5813 Avoid overflow problems when TM_YEAR_BASE is added to an integer.
|