| /freebsd-14.2/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-14.2/bin/date/ |
| H A D | date.c | 63 #ifndef TM_YEAR_BASE 64 #define TM_YEAR_BASE 1900 macro 309 lt->tm_year = ATOI2(p) * 100 - TM_YEAR_BASE; in setthetime() 318 lt->tm_year += 2000 - TM_YEAR_BASE; in setthetime() 320 lt->tm_year += 1900 - TM_YEAR_BASE; in setthetime()
|
| /freebsd-14.2/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-14.2/lib/libc/stdtime/ |
| H A D | strptime.c | 624 year += century * 100 - TM_YEAR_BASE; in _strptime() 632 TM_YEAR_BASE)][tm->tm_mon] + (tm->tm_mday - 1); in _strptime() 637 fwo = first_wday_of(tm->tm_year + TM_YEAR_BASE); in _strptime() 666 TM_YEAR_BASE)][i]) in _strptime() 672 TM_YEAR_BASE)][12]; in _strptime() 680 start_of_month[isleap(tm->tm_year + TM_YEAR_BASE)] in _strptime()
|
| H A D | strftime.c | 178 pt = _yconv(t->tm_year, TM_YEAR_BASE, 1, 0, in _fmt() 379 base = TM_YEAR_BASE; in _fmt() 473 pt = _yconv(t->tm_year, TM_YEAR_BASE, 0, 1, in _fmt() 477 pt = _yconv(t->tm_year, TM_YEAR_BASE, 1, 1, in _fmt()
|
| /freebsd-14.2/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-14.2/contrib/tzcode/ |
| H A D | strftime.c | 209 pt = _yconv(t->tm_year, TM_YEAR_BASE, in _fmt() 401 base = TM_YEAR_BASE; in _fmt() 496 pt = _yconv(t->tm_year, TM_YEAR_BASE, in _fmt() 501 pt = _yconv(t->tm_year, TM_YEAR_BASE, in _fmt()
|
| H A D | localtime.c | 1913 if (ckd_add(&tmp->tm_year, y, -TM_YEAR_BASE)) { in timesub() 1918 if (!TYPE_SIGNED(time_t) && y < TM_YEAR_BASE) { in timesub() 1920 tmp->tm_year = signed_y - TM_YEAR_BASE; in timesub() 1921 } else if ((!TYPE_SIGNED(time_t) || INT_MIN + TM_YEAR_BASE <= y) in timesub() 1922 && y - TM_YEAR_BASE <= INT_MAX) in timesub() 1923 tmp->tm_year = y - TM_YEAR_BASE; in timesub() 1937 - leaps_thru_end_of(TM_YEAR_BASE - 1) in timesub() 2131 if (increment_overflow32(&y, TM_YEAR_BASE)) in time2sub() 2157 if (ckd_add(&yourtm.tm_year, y, -TM_YEAR_BASE)) in time2sub() 2160 if (increment_overflow32(&y, -TM_YEAR_BASE)) in time2sub() [all …]
|
| H A D | zdump.c | 784 result += DAYSPERNYEAR + isleap_sum(tmy, TM_YEAR_BASE); in delta_nonneg() 811 yday += 365 + isleap_sum(b->tm_year, TM_YEAR_BASE); in adjusted_yday() 1255 trail = timeptr->tm_year % DIVISOR + TM_YEAR_BASE % DIVISOR; in dumptime() 1256 lead = timeptr->tm_year / DIVISOR + TM_YEAR_BASE / DIVISOR + in dumptime()
|
| H A D | private.h | 1041 TM_YEAR_BASE = 1900, enumerator
|
| H A D | NEWS | 5441 Avoid overflow problems when TM_YEAR_BASE is added to an integer.
|
| /freebsd-14.2/contrib/diff/lib/ |
| H A D | strftime.c | 116 #define TM_YEAR_BASE 1900 macro 281 int a4 = (a->tm_year >> 2) + (TM_YEAR_BASE >> 2) - ! (a->tm_year & 3); in tm_diff() 282 int b4 = (b->tm_year >> 2) + (TM_YEAR_BASE >> 2) - ! (b->tm_year & 3); in tm_diff() 794 int year = tp->tm_year + TM_YEAR_BASE; 1118 int year = tp->tm_year + TM_YEAR_BASE; 1188 DO_NUMBER (1, tp->tm_year + TM_YEAR_BASE);
|
| /freebsd-14.2/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-14.2/contrib/tzdata/ |
| H A D | NEWS | 5544 Avoid overflow problems when TM_YEAR_BASE is added to an integer.
|