/freebsd/contrib/ntp/libntp/ |
H A D | calyearstart.c | 25 u_int32 ndays; /* elapsed days since NTP starts */ in calyearstart() local 31 ndays = ntpcal_rd_to_ystart(split.hi + DAY_NTP_STARTS) in calyearstart() 34 return (u_int32)(ndays * SECSPERDAY); in calyearstart() 44 u_int32 ndays; /* elapsed days since NTP starts */ in calmonthstart() local 50 ndays = ntpcal_rd_to_mstart(split.hi + DAY_NTP_STARTS) in calmonthstart() 53 return (u_int32)(ndays * SECSPERDAY); in calmonthstart() 63 u_int32 ndays; /* elapsed days since NTP starts */ in calweekstart() local 69 ndays = ntpcal_weekday_le(split.hi + DAY_NTP_STARTS, CAL_MONDAY) in calweekstart() 72 return (u_int32)(ndays * SECSPERDAY); in calweekstart()
|
/freebsd/lib/libcalendar/ |
H A D | calendar.c | 67 jdate(int ndays, date *dt) in jdate() argument 77 idt.y = ndays / 365; in jdate() 80 while ((r = ndaysji(&idt)) > ndays) in jdate() 88 r = ndays - r; in jdate() 131 gdate(int ndays, date *dt) in gdate() argument 142 idt.y = ndays / 365; in gdate() 145 while ((r = ndaysgi(&idt)) > ndays) in gdate() 158 ndays = ndays - r; in gdate() 164 for (idt.m = 11; montht[idt.m] > ndays; idt.m--) in gdate() 167 idt.d = ndays - montht[idt.m]; /* the rest is the day in month */ in gdate()
|
/freebsd/contrib/bsddialog/lib/ |
H A D | datebox.c | 129 int ndays; in datectl() local 131 ndays = month_days(*yy, *mm); in datectl() 143 ndays = month_days(*yy, *mm); in datectl() 144 *dd = ndays - abs(7 - *dd); in datectl() 148 if (*dd + 7 < ndays) in datectl() 156 *dd = *dd + 7 - ndays; in datectl() 172 if (*dd < ndays) in datectl() 189 ndays = month_days(*yy, *mm); in datectl() 190 if (*dd > ndays) in datectl() 191 *dd = ndays; in datectl() 263 int ndays, i, y, x, wd, h, w; print_calendar() local [all...] |
/freebsd/usr.bin/calendar/ |
H A D | locale.c | 66 struct fixs ndays[8]; /* short national days names */ variable 88 if (ndays[i].name != NULL) in setnnames() 89 free(ndays[i].name); in setnnames() 90 if ((ndays[i].name = strdup(buf)) == NULL) in setnnames() 92 ndays[i].len = strlen(buf); in setnnames()
|
H A D | parsedata.c | 925 if (ndays[i].len != 0 && ndays[i].name != NULL) in getdayofweekname() 926 return (ndays[i].name); in getdayofweekname() 945 for (i = 0; ndays[i].name != NULL; i++) { in checkdayofweek() 946 n = ndays + i; in checkdayofweek()
|
H A D | calendar.h | 150 extern struct fixs ndays[8]; /* short national days names */
|
/freebsd/crypto/heimdal/lib/asn1/ |
H A D | timegm.c | 45 static const unsigned ndays[2][12] ={ variable 71 if (tm->tm_mday < 1 || tm->tm_mday > (int)ndays[is_leap(tm->tm_year)][tm->tm_mon]) in _der_timegm() 84 res += ndays[is_leap(tm->tm_year)][i]; in _der_timegm() 127 unsigned daysinmonth = ndays[is_leap(tm->tm_year)][tm->tm_mon]; in _der_gmtime()
|
/freebsd/crypto/heimdal/lib/roken/ |
H A D | timegm.c | 53 static const unsigned ndays[2][12] ={ in rk_timegm() local 63 if (tm->tm_mday < 1 || tm->tm_mday > ndays[is_leap(tm->tm_year)][tm->tm_mon]) in rk_timegm() 76 res += ndays[is_leap(tm->tm_year)][i]; in rk_timegm()
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | bsd-timegm.c | 52 static const unsigned ndays[2][12] ={ in timegm() local 72 res += ndays[is_leap(tm->tm_year)][i]; in timegm()
|
/freebsd/usr.sbin/newsyslog/ |
H A D | ptimes.c | 92 int ndays; in days_pmonth() local 94 ndays = mtab[month]; in days_pmonth() 110 ndays++; /* not multiple of 100 */ in days_pmonth() 112 ndays++; /* is multiple of 100 and 400 */ in days_pmonth() 115 return (ndays); in days_pmonth()
|
/freebsd/crypto/openssl/apps/ |
H A D | ocsp.c | 74 int nmin, int ndays, int badsig, 148 {"ndays", OPT_NDAYS, 'p', "Number of days before next update"}, 252 int vpmtouched = 0, badsig = 0, i, ignore_err = 0, nmin = 0, ndays = -1; in ocsp_main() local 468 if (ndays == -1) in ocsp_main() 469 ndays = 0; in ocsp_main() 475 ndays = atoi(opt_arg()); in ocsp_main() 725 rsign_md, rsign_sigopts, rother, rflags, nmin, ndays, in ocsp_main() 1033 int nmin, int ndays, int badsig, in make_ocsp_response() argument 1053 if (ndays != -1) in make_ocsp_response() 1054 nextupd = X509_time_adj_ex(NULL, ndays, nmi in make_ocsp_response() [all...] |
/freebsd/usr.bin/ncal/ |
H A D | ncal.c | 184 static date *sdater(int ndays, struct date * d); 185 static date *sdateb(int ndays, struct date * d);
|
/freebsd/crypto/openssl/doc/man1/ |
H A D | openssl-ocsp.pod.in | 67 [B<-ndays> I<n>] 397 =item B<-nmin> I<minutes>, B<-ndays> I<days>
|