Searched refs:tm (Results 1 - 25 of 492) sorted by last modified time

1234567891011>>

/freebsd-9.3-release/contrib/ntp/util/
H A Dntp-keygen.c2092 struct tm tm; /* time decode structure time */
2104 tm.tm_year = (v[0] - '0') * 10 + v[1] - '0';
2105 if (tm.tm_year < 50)
2106 tm.tm_year += 100;
2107 tm.tm_mon = (v[2] - '0') * 10 + v[3] - '0' - 1;
2108 tm.tm_mday = (v[4] - '0') * 10 + v[5] - '0';
2109 tm.tm_hour = (v[6] - '0') * 10 + v[7] - '0';
2110 tm.tm_min = (v[8] - '0') * 10 + v[9] - '0';
2111 tm
[all...]
/freebsd-9.3-release/contrib/ntp/sntp/
H A Dconfigure10184 if ((struct tm *) 0)
24828 struct tm tm;
24829 tm.tm_sec = 36; /* seconds after the minute [0, 61] */
24830 tm.tm_min = 44; /* minutes after the hour [0, 59] */
24831 tm.tm_hour = 12; /* hour since midnight [0, 23] */
24832 tm.tm_mday = 28; /* day of the month [1, 31] */
24833 tm.tm_mon = 7; /* months since January [0, 11] */
24834 tm.tm_year = 86; /* years since 1900 */
24835 tm
[all...]
/freebsd-9.3-release/contrib/ntp/ntpd/
H A Drefclock_gpsdjson.c2073 struct tm gd;
H A Dntp_control.c1694 struct tm *tm = NULL; local
1704 tm = gmtime(&fstamp);
1705 if (NULL == tm)
1709 "%04d%02d%02d%02d%02d", tm->tm_year + 1900,
1710 tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min);
H A Drefclock_jupiter.c719 struct tm *tm; local
806 tm = gmtime(&last_timecode);
807 cp = asctime(tm);
814 instance->peer->procptr->year = tm->tm_year + 1900;
815 instance->peer->procptr->day = tm->tm_yday + 1;
816 instance->peer->procptr->hour = tm->tm_hour;
817 instance->peer->procptr->minute = tm->tm_min;
818 instance->peer->procptr->second = tm->tm_sec;
843 struct tm *t local
[all...]
H A Drefclock_parse.c4250 struct tm *tm; local
4263 tm = gmtime( &t_ls );
4264 if (tm == NULL) // gmtime() failed
4273 daynames[tm->tm_wday], tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday );
/freebsd-9.3-release/contrib/ntp/libntp/
H A Dntp_calendar.c942 * Convert a RD into the date part of a 'struct tm'.
947 struct tm *utm,
998 * 'struct tm'.
1003 struct tm *utm,
1042 * and convert it to a 'struct tm'. The seconds will be normalised
1051 struct tm *utm,
1333 * Convert the date part of a 'struct tm' (that is, year, month,
1339 const struct tm *utm
1430 * take a 'struct tm' and get the seconds-of-day from it.
1435 const struct tm *ut
[all...]
/freebsd-9.3-release/contrib/ntp/
H A Dconfigure22612 if ((struct tm *) 0)
30591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
30592 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
30604 struct tm tm;
30605 int *p = &tm.tm_sec;
[all...]
/freebsd-9.3-release/crypto/openssl/ssl/
H A Dssl.h1447 void SSL_CTX_flush_sessions(SSL_CTX *ctx, long tm);
H A Dbio_ssl.c181 unsigned long tm; local
183 tm = (unsigned long)time(NULL);
184 if (tm > sb->last_time + sb->renegotiate_timeout) {
185 sb->last_time = tm;
254 unsigned long tm; local
256 tm = (unsigned long)time(NULL);
257 if (tm > bs->last_time + bs->renegotiate_timeout) {
258 bs->last_time = tm;
H A Dkssl.c1871 * Given pointers to KerberosTime and struct tm structs, convert the
1872 * KerberosTime string to struct tm. Note that KerberosTime is a
1875 * struct tm on success, return NULL on failure.
1877 struct tm *k_gmtime(ASN1_GENERALIZEDTIME *gtime, struct tm *k_tm)
2022 struct tm tm_time, *tm_l, *tm_g;
2129 memset(&tm_time, 0, sizeof(struct tm));
/freebsd-9.3-release/contrib/tzcode/zic/
H A Dzdump.c23 #include <time.h> /* for struct tm */
156 static char * abbr(struct tm * tmp);
158 static long delta(struct tm * newp, struct tm * oldp);
159 static void dumptime(const struct tm * tmp);
169 static struct tm *
173 register struct tm * tmp;
177 struct tm tm; local
180 tm
250 struct tm tm; local
479 struct tm tm; local
[all...]
/freebsd-9.3-release/sys/compat/linux/
H A Dlinux_misc.c646 l_time_t tm; local
655 tm = tv.tv_sec;
656 if (args->tm && (error = copyout(&tm, args->tm, sizeof(tm))))
658 td->td_retval[0] = tm;
/freebsd-9.3-release/crypto/openssl/crypto/x509/
H A Dx509cset.c85 int X509_CRL_set_lastUpdate(X509_CRL *x, ASN1_TIME *tm) argument
92 if (in != tm) {
93 in = M_ASN1_TIME_dup(tm);
102 int X509_CRL_set_nextUpdate(X509_CRL *x, ASN1_TIME *tm) argument
109 if (in != tm) {
110 in = M_ASN1_TIME_dup(tm);
135 int X509_REVOKED_set_revocationDate(X509_REVOKED *x, ASN1_TIME *tm) argument
142 if (in != tm) {
143 in = M_ASN1_TIME_dup(tm);
H A Dx509_set.c108 int X509_set_notBefore(X509 *x, ASN1_TIME *tm) argument
115 if (in != tm) {
116 in = M_ASN1_TIME_dup(tm);
125 int X509_set_notAfter(X509 *x, ASN1_TIME *tm) argument
132 if (in != tm) {
133 in = M_ASN1_TIME_dup(tm);
H A Dx509.h992 int X509_set_notBefore(X509 *x, ASN1_TIME *tm);
993 int X509_set_notAfter(X509 *x, ASN1_TIME *tm);
1029 int X509_CRL_set_lastUpdate(X509_CRL *x, ASN1_TIME *tm);
1030 int X509_CRL_set_nextUpdate(X509_CRL *x, ASN1_TIME *tm);
1034 int X509_REVOKED_set_revocationDate(X509_REVOKED *r, ASN1_TIME *tm);
/freebsd-9.3-release/crypto/openssl/crypto/
H A Dmem_dbg.c568 struct tm *lcl = NULL;
H A Dtmdiff.c169 void ms_time_get(MS_TM * tm) argument
176 times(&tm->ms_tms);
179 GetThreadTimes(tm->thread_id, &tmpa, &tmpb, &tmpc, &(tm->ms_win32));
181 tm->ms_clock = clock();
184 tm->ticks = tickGet();
186 ftime(&tm->ms_timeb);
H A Do_time.c73 struct tm *OPENSSL_gmtime(const time_t *timer, struct tm *result)
75 struct tm *ts = NULL;
89 memcpy(result, ts, sizeof(struct tm));
202 /* Fill in the struct tm with the result */
H A Do_time.h65 struct tm *OPENSSL_gmtime(const time_t *timer, struct tm *result);
/freebsd-9.3-release/crypto/openssl/crypto/des/
H A Ddes_opts.c407 tm[index]=Time_F(STOP); \
408 fprintf(stderr,"%ld %s's in %.2f second\n",count,name,tm[index]); \
409 tm[index]=((double)COUNT(cb))/tm[index];
413 tm[index]*8,1.0e6/tm[index]);
426 double d, tm[16], max = 0; local
435 tm[i] = 0.0;
505 max = tm[0];
509 if (max < tm[
[all...]
/freebsd-9.3-release/crypto/openssl/crypto/asn1/
H A Da_gentm.c221 struct tm *ts;
222 struct tm data;
H A Da_utctm.c193 struct tm *ts;
194 struct tm data;
231 struct tm *tm; local
232 struct tm data;
248 tm = OPENSSL_gmtime(&t, &data);
254 return_cmp(year, tm->tm_year);
255 return_cmp(g2(s->data + 2) - 1, tm->tm_mon);
256 return_cmp(g2(s->data + 4), tm->tm_mday);
257 return_cmp(g2(s->data + 6), tm
[all...]
H A Da_time.c103 struct tm *ts;
104 struct tm data;
/freebsd-9.3-release/crypto/openssl/crypto/bf/
H A Dbf_opts.c204 tm[index]=Time_F(STOP); \
205 fprintf(stderr,"%ld %s's in %.2f second\n",count,name,tm[index]); \
206 tm[index]=((double)COUNT(cb))/tm[index];
210 tm[index]*8,1.0e6/tm[index]);
220 double d, tm[16], max = 0; local
229 tm[i] = 0.0;
275 max = tm[0];
279 if (max < tm[
[all...]

Completed in 298 milliseconds

1234567891011>>