Home
last modified time | relevance | path

Searched refs:ndays (Results 1 – 13 of 13) sorted by relevance

/freebsd-14-stable/contrib/ntp/libntp/
HDcalyearstart.c25 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-14-stable/contrib/bsddialog/lib/
HDcalendarbox.c70 int ndays; in datectl() local
72 ndays = month_days(*yy, *mm); in datectl()
84 ndays = month_days(*yy, *mm); in datectl()
85 *dd = ndays - abs(7 - *dd); in datectl()
89 if (*dd + 7 < ndays) in datectl()
97 *dd = *dd + 7 - ndays; in datectl()
113 if (*dd < ndays) in datectl()
130 ndays = month_days(*yy, *mm); in datectl()
131 if (*dd > ndays) in datectl()
132 *dd = ndays; in datectl()
[all …]
/freebsd-14-stable/lib/libcalendar/
HDcalendar.c67 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-14-stable/crypto/heimdal/lib/asn1/
HDtimegm.c45 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-14-stable/usr.bin/calendar/
HDlocale.c66 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()
HDparsedata.c925 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()
HDcalendar.h150 extern struct fixs ndays[8]; /* short national days names */
/freebsd-14-stable/crypto/heimdal/lib/roken/
HDtimegm.c53 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-14-stable/crypto/openssh/openbsd-compat/
HDbsd-timegm.c52 static const unsigned ndays[2][12] ={ in timegm() local
72 res += ndays[is_leap(tm->tm_year)][i]; in timegm()
/freebsd-14-stable/usr.sbin/newsyslog/
HDptimes.c92 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-14-stable/crypto/openssl/apps/
HDocsp.c74 int nmin, int ndays, int badsig,
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, nmin * 60, NULL); in make_ocsp_response()
/freebsd-14-stable/usr.bin/ncal/
HDncal.c184 static date *sdater(int ndays, struct date * d);
185 static date *sdateb(int ndays, struct date * d);
/freebsd-14-stable/crypto/openssl/doc/man1/
HDopenssl-ocsp.pod.in67 [B<-ndays> I<n>]
405 =item B<-nmin> I<minutes>, B<-ndays> I<days>