/freebsd-9.3-release/usr.bin/at/ |
H A D | parsetime.c | 287 plus(struct tm *tm) argument 299 tm->tm_year += delay; 302 tm->tm_mon += delay; 307 tm->tm_mday += delay; 310 tm->tm_hour += delay; 313 tm->tm_min += delay; 323 tm->tm_isdst = -1; 324 if (mktime(tm) < 0) 335 tod(struct tm *t argument 400 assign_date(struct tm *tm, long mday, long mon, long year) argument 449 month(struct tm *tm) argument [all...] |
/freebsd-9.3-release/contrib/ntp/libntp/ |
H A D | prettydate.c | 62 static struct tm * 67 struct tm *tm = NULL; local 131 while ((tm = (*(local ? localtime : gmtime))(&ts)) == NULL) 143 /* 'tm' surely not NULL here! */ 144 INSIST(tm != NULL); 146 tm->tm_year += folds * SOLAR_CYCLE_YEARS; 147 if (tm->tm_year <= 0 || tm->tm_year >= 200) 151 return tm; 166 struct tm *tm; local [all...] |
/freebsd-9.3-release/gnu/usr.bin/rcs/lib/ |
H A D | partime.h | 44 struct tm tm; member in struct:partime 48 * then tm.tm_year is actually modulo ymodulus.
|
/freebsd-9.3-release/include/xlocale/ |
H A D | _time.h | 46 const struct tm * __restrict, locale_t) __strftimelike(3, 0); 55 struct tm * __restrict, locale_t);
|
/freebsd-9.3-release/usr.sbin/ctm/ctm_rmail/ |
H A D | error.c | 70 struct tm *tm; local 84 tm = localtime(&now); 85 fprintf(fp, "%04d-%02d-%02d %02d:%02d ", tm->tm_year+1900, 86 tm->tm_mon+1, tm->tm_mday, tm->tm_hour, tm->tm_min);
|
/freebsd-9.3-release/include/ |
H A D | time.h | 125 struct tm { struct 144 char *asctime(const struct tm *); 149 struct tm *gmtime(const time_t *); 150 struct tm *localtime(const time_t *); 151 time_t mktime(struct tm *); 153 const struct tm * __restrict); 181 char *asctime_r(const struct tm *, char *); 183 struct tm *gmtime_r(const time_t *, struct tm *); 184 struct tm *localtime_ [all...] |
/freebsd-9.3-release/sys/sys/ |
H A D | terminal.h | 82 typedef void tc_cursor_t(struct terminal *tm, const term_pos_t *p); 83 typedef void tc_putchar_t(struct terminal *tm, const term_pos_t *p, 85 typedef void tc_fill_t(struct terminal *tm, const term_rect_t *r, 87 typedef void tc_copy_t(struct terminal *tm, const term_rect_t *r, 89 typedef void tc_param_t(struct terminal *tm, int cmd, unsigned int arg); 90 typedef void tc_done_t(struct terminal *tm); 92 typedef void tc_cnprobe_t(struct terminal *tm, struct consdev *cd); 93 typedef int tc_cngetc_t(struct terminal *tm); 95 typedef void tc_opened_t(struct terminal *tm, int opened); 96 typedef int tc_ioctl_t(struct terminal *tm, u_lon [all...] |
/freebsd-9.3-release/contrib/ntp/ntpd/ |
H A D | refclock_pcf.c | 137 struct tm tm, *tp; local 148 ZERO(tm); 150 tm.tm_mday = buf[11] * 10 + buf[10]; 151 tm.tm_mon = buf[13] * 10 + buf[12] - 1; 152 tm.tm_year = buf[15] * 10 + buf[14]; 153 tm.tm_hour = buf[7] * 10 + buf[6]; 154 tm.tm_min = buf[5] * 10 + buf[4]; 155 tm.tm_sec = buf[3] * 10 + buf[2]; 156 tm [all...] |
/freebsd-9.3-release/contrib/nvi/common/ |
H A D | delete.c | 35 del(sp, fm, tm, lmode) 37 MARK *fm, *tm; 49 for (lno = tm->lno; lno >= fm->lno; --lno) { 65 if (tm->lno >= lno) { 66 if (tm->lno == lno) { 69 eof = tm->cno >= len ? 1 : 0; 73 for (lno = tm->lno; lno > fm->lno; --lno) { 92 if (tm->lno == fm->lno) { 98 memcpy(bp + fm->cno, p + (tm->cno + 1), len - (tm [all...] |
/freebsd-9.3-release/crypto/heimdal/lib/roken/ |
H A D | strpftime-test.c | 240 struct tm *tm; local 242 tm = gmtime (&tests[i].t); 247 struct tm tm2; 250 len = strftime (buf, sizeof(buf), tests[i].vals[j].format, tm); 286 struct tm tm; local 287 memset(&tm, 0, sizeof(tm)); 288 strptime ("200505", "%Y%m", &tm); [all...] |
/freebsd-9.3-release/tools/KSE/ksetest/ |
H A D | kse_threads_test.c | 89 static void runq_insert(struct uts_runq *q, struct kse_thr_mailbox *tm); 98 extern int thread_to_uts(struct kse_thr_mailbox *tm, 198 struct kse_thr_mailbox *tm; local 208 tm = (struct kse_thr_mailbox *)calloc(1, sizeof(struct kse_thr_mailbox)); 211 getcontext(&tm->tm_context); 222 pfmt("main() : 0x%x\n", tm); 223 pfmt("eip -> 0x%x\n", tm->tm_context.uc_mcontext.mc_eip); 224 tm->tm_context.uc_stack.ss_sp = p - MAIN_STACK_SIZE; 225 tm->tm_context.uc_stack.ss_size = MAIN_STACK_SIZE; 236 data->cur_thread = tm; 343 runq_insert(struct uts_runq *q, struct kse_thr_mailbox *tm) argument 357 struct kse_thr_mailbox *tm; local 391 struct kse_thr_mailbox *tm, *p; local 468 struct kse_thr_mailbox *tm; local 484 struct kse_thr_mailbox *tm; local [all...] |
/freebsd-9.3-release/crypto/openssl/crypto/asn1/ |
H A D | a_utctm.c | 193 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...] |
/freebsd-9.3-release/bin/date/ |
H A D | vary.h | 35 extern const struct vary *vary_apply(const struct vary *v, struct tm *t);
|
/freebsd-9.3-release/contrib/llvm/lib/Target/R600/ |
H A D | AMDGPUConvertToISA.cpp | 31 AMDGPUConvertToISAPass(TargetMachine &tm) : argument 32 MachineFunctionPass(ID), TM(tm) { } 44 FunctionPass *llvm::createAMDGPUConvertToISAPass(TargetMachine &tm) { argument 45 return new AMDGPUConvertToISAPass(tm);
|
/freebsd-9.3-release/contrib/file/src/ |
H A D | asctime_r.c | 12 asctime_r(const struct tm *t, char *dst)
|
/freebsd-9.3-release/usr.bin/systat/ |
H A D | keyboard.c | 57 struct timeval last, intvl, now, tm; local 70 tm.tv_sec = last.tv_sec + intvl.tv_sec - now.tv_sec; 71 tm.tv_usec = last.tv_usec + intvl.tv_usec - now.tv_usec; 72 while (tm.tv_usec < 0) { 73 tm.tv_usec += 1000000; 74 tm.tv_sec--; 76 while (tm.tv_usec >= 1000000) { 77 tm.tv_usec -= 1000000; 78 tm.tv_sec++; 80 if (tm [all...] |
/freebsd-9.3-release/tools/KSE/rr/ |
H A D | rr.c | 86 static void runq_insert(struct uts_runq *q, struct kse_thr_mailbox *tm); 95 extern int thread_to_uts(struct kse_thr_mailbox *tm, 142 struct kse_thr_mailbox *tm; local 152 tm = (struct kse_thr_mailbox *)calloc(1, sizeof(struct kse_thr_mailbox)); 155 getcontext(&tm->tm_context); 166 pfmt("main() : 0x%x\n", tm); 167 pfmt("eip -> 0x%x\n", tm->tm_context.uc_mcontext.mc_eip); 168 tm->tm_context.uc_stack.ss_sp = p - MAIN_STACK_SIZE; 169 tm->tm_context.uc_stack.ss_size = MAIN_STACK_SIZE; 181 data->cur_thread = tm; 283 runq_insert(struct uts_runq *q, struct kse_thr_mailbox *tm) argument 297 struct kse_thr_mailbox *tm; local 328 struct kse_thr_mailbox *tm, *p; local 379 struct kse_thr_mailbox *tm; local 395 struct kse_thr_mailbox *tm; local [all...] |
/freebsd-9.3-release/crypto/heimdal/lib/krb5/ |
H A D | time.c | 97 struct tm *tm; local 99 tm = gmtime (&t); 101 tm = localtime(&t); 102 if(tm == NULL || 103 strftime(s, len, include_time ? context->time_fmt : context->date_fmt, tm) == 0)
|
/freebsd-9.3-release/usr.bin/w/ |
H A D | pr_time.c | 55 struct tm tp, tm; local 61 tm = *localtime(now); 69 else if (tm.tm_mday != tp.tm_mday || 70 tm.tm_mon != tp.tm_mon || 71 tm.tm_year != tp.tm_year) {
|
/freebsd-9.3-release/lib/libc/stdtime/ |
H A D | strptime.c | 80 static char * _strptime(const char *, const char *, struct tm *, int *, locale_t); 85 _strptime(const char *buf, const char *fmt, struct tm *tm, int *GMTp, argument 124 buf = _strptime(buf, tptr->date_fmt, tm, GMTp, locale); 144 tm->tm_year = i * 100 - 1900; 148 buf = _strptime(buf, tptr->c_fmt, tm, GMTp, locale); 154 buf = _strptime(buf, "%m/%d/%y", tm, GMTp, locale); 172 buf = _strptime(buf, "%Y-%m-%d", tm, GMTp, locale); 178 buf = _strptime(buf, "%H:%M", tm, GMTp, locale); 184 buf = _strptime(buf, tptr->ampm_fmt, tm, GMT 593 strptime_l(const char * __restrict buf, const char * __restrict fmt, struct tm * __restrict tm, locale_t loc) argument 610 strptime(const char * __restrict buf, const char * __restrict fmt, struct tm * __restrict tm) argument [all...] |
/freebsd-9.3-release/crypto/openssl/crypto/des/ |
H A D | des_opts.c | 407 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/bf/ |
H A D | bf_opts.c | 204 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...] |
/freebsd-9.3-release/crypto/openssl/crypto/cast/ |
H A D | castopts.c | 214 tm[index]=Time_F(STOP); \ 215 fprintf(stderr,"%ld %s's in %.2f second\n",count,name,tm[index]); \ 216 tm[index]=((double)COUNT(cb))/tm[index]; 220 tm[index]*8,1.0e6/tm[index]); 230 double d, tm[16], max = 0; local 239 tm[i] = 0.0; 285 max = tm[0]; 289 if (max < tm[ [all...] |
/freebsd-9.3-release/crypto/openssl/crypto/x509/ |
H A D | x509cset.c | 85 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);
|
/freebsd-9.3-release/usr.bin/calendar/ |
H A D | locale.c | 77 struct tm tm; local 79 memset(&tm, 0, sizeof(struct tm)); 81 tm.tm_wday = i; 82 strftime(buf, sizeof(buf), "%a", &tm); 94 strftime(buf, sizeof(buf), "%A", &tm); 107 memset(&tm, 0, sizeof(struct tm)); 109 tm [all...] |