/freebsd-10.0-release/usr.sbin/bsnmpd/modules/snmp_hostres/ |
H A D | hostres_snmp.c | 185 * Make an SNMP DateAndTime from a struct tm. This should be in the library. 188 make_date_time(u_char *str, const struct tm *tm, u_int decisecs) argument 191 str[0] = (u_char)((tm->tm_year + 1900) >> 8); 192 str[1] = (u_char)(tm->tm_year + 1900); 193 str[2] = tm->tm_mon + 1; 194 str[3] = tm->tm_mday; 195 str[4] = tm->tm_hour; 196 str[5] = tm->tm_min; 197 str[6] = tm [all...] |
/freebsd-10.0-release/crypto/openssh/openbsd-compat/ |
H A D | strptime.c | 57 static char *_strptime(const char *, const char *, struct tm *, int); 61 strptime(const char *buf, const char *fmt, struct tm *tm) argument 63 return(_strptime(buf, fmt, tm, 1)); 67 _strptime(const char *buf, const char *fmt, struct tm *tm, int initialize) argument 126 if (!(bp = _strptime(bp, _ctloc(d_t_fmt), tm, 0))) 132 if (!(bp = _strptime(bp, "%m/%d/%y", tm, 0))) 138 if (!(bp = _strptime(bp, "%H:%M", tm, 0))) 144 if (!(bp = _strptime(bp, "%I:%M:%S %p", tm, [all...] |
/freebsd-10.0-release/gnu/usr.bin/rcs/lib/ |
H A D | partime.c | 210 t->tm.tm_sec = t->tm.tm_min = t->tm.tm_hour = t->tm.tm_mday = t->tm.tm_mon 211 = t->tm.tm_year = t->tm.tm_wday = t->tm.tm_yday 469 s = parse_fixed (s, 4, &t->tm.tm_year); 484 if (t->tm [all...] |
H A D | partime.h | 44 struct tm tm; member in struct:partime 48 * then tm.tm_year is actually modulo ymodulus.
|
/freebsd-10.0-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-10.0-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-10.0-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-10.0-release/contrib/ntp/ntpd/ |
H A D | refclock_pcf.c | 136 struct tm tm, *tp; local 147 tm.tm_mday = buf[11] * 10 + buf[10]; 148 tm.tm_mon = buf[13] * 10 + buf[12] - 1; 149 tm.tm_year = buf[15] * 10 + buf[14]; 150 tm.tm_hour = buf[7] * 10 + buf[6]; 151 tm.tm_min = buf[5] * 10 + buf[4]; 152 tm.tm_sec = buf[3] * 10 + buf[2]; 153 tm.tm_isdst = (buf[8] & 1) ? 1 : (buf[8] & 2) ? 0 : -1; 158 if (tm [all...] |
/freebsd-10.0-release/contrib/wpa/src/utils/ |
H A D | os_win32.c | 53 struct tm tm, *tm1; local 62 memset(&tm, 0, sizeof(tm)); 63 tm.tm_year = year - 1900; 64 tm.tm_mon = month - 1; 65 tm.tm_mday = day; 66 tm.tm_hour = hour; 67 tm.tm_min = min; 68 tm 90 os_gmtime(os_time_t t, struct os_tm *tm) argument [all...] |
/freebsd-10.0-release/contrib/nvi/common/ |
H A D | delete.c | 39 MARK *tm, 51 for (lno = tm->lno; lno >= fm->lno; --lno) { 67 if (tm->lno >= lno) { 68 if (tm->lno == lno) { 71 eof = tm->cno != ENTIRE_LINE && tm->cno >= len ? 1 : 0; 75 for (lno = tm->lno; lno > fm->lno; --lno) { 94 if (tm->lno == fm->lno) { 100 MEMCPY(bp + fm->cno, p + (tm->cno + 1), 101 len - (tm 36 del( SCR *sp, MARK *fm, MARK *tm, int lmode) argument [all...] |
/freebsd-10.0-release/contrib/llvm/lib/Target/R600/ |
H A D | SIRegisterInfo.cpp | 21 SIRegisterInfo::SIRegisterInfo(AMDGPUTargetMachine &tm, argument 23 : AMDGPURegisterInfo(tm, tii), 24 TM(tm),
|
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-10.0-release/crypto/heimdal/lib/asn1/ |
H A D | der_locl.h | 58 time_t _der_timegm (struct tm *); 59 struct tm * _der_gmtime(time_t t, struct tm *);
|
H A D | der-private.h | 55 struct tm * 58 struct tm */*tm*/);
|
/freebsd-10.0-release/crypto/heimdal/lib/roken/ |
H A D | strpftime-test.c | 236 struct tm *tm; local 238 tm = gmtime (&tests[i].t); 243 struct tm tm2; 246 len = strftime (buf, sizeof(buf), tests[i].vals[j].format, tm); 282 struct tm tm; local 283 memset(&tm, 0, sizeof(tm)); 284 strptime ("200505", "%Y%m", &tm); [all...] |
/freebsd-10.0-release/crypto/openssl/crypto/asn1/ |
H A D | a_utctm.c | 196 struct tm *ts; 197 struct tm data; 254 struct tm *tm; local 255 struct tm data; 272 tm = OPENSSL_gmtime(&t, &data); 276 if (tm == NULL) 283 return_cmp(year, tm->tm_year); 284 return_cmp(g2(s->data+2) - 1, tm->tm_mon); 285 return_cmp(g2(s->data+4), tm [all...] |
/freebsd-10.0-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-10.0-release/bin/date/ |
H A D | vary.h | 35 extern const struct vary *vary_apply(const struct vary *v, struct tm *t);
|
/freebsd-10.0-release/contrib/apr/time/unix/ |
H A D | timestr.c | 135 struct tm tm; local 136 memset(&tm, 0, sizeof tm); 137 tm.tm_sec = xt->tm_sec; 138 tm.tm_min = xt->tm_min; 139 tm.tm_hour = xt->tm_hour; 140 tm.tm_mday = xt->tm_mday; 141 tm.tm_mon = xt->tm_mon; 142 tm [all...] |
/freebsd-10.0-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-10.0-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-10.0-release/crypto/heimdal/lib/krb5/ |
H A D | time.c | 112 struct tm *tm; local 114 tm = gmtime (&t); 116 tm = localtime(&t); 117 if(tm == NULL || 118 strftime(s, len, include_time ? context->time_fmt : context->date_fmt, tm) == 0)
|
/freebsd-10.0-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-10.0-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-10.0-release/contrib/ntp/libntp/ |
H A D | caljulian.c | 134 struct tm *tm; local 136 tm = ntp2unix_tm(ntptime, 0); 138 jt->hour = (u_char) tm->tm_hour; 139 jt->minute = (u_char) tm->tm_min; 140 jt->month = (u_char) (tm->tm_mon + 1); 141 jt->monthday = (u_char) tm->tm_mday; 142 jt->second = (u_char) tm->tm_sec; 143 jt->year = (u_short) (tm->tm_year + 1900); 144 jt->yearday = (u_short) (tm [all...] |