/dragonfly/usr.sbin/newsyslog/ |
H A D | ptimes.c | 132 struct tm tm; in parse8601() local 143 tm = ptime->tm; in parse8601() 172 if (tm.tm_year < 70 || tm.tm_mon < 0 || tm.tm_mon > 12 in parse8601() 201 if (tm.tm_sec < 0 || tm.tm_sec > 60 || tm.tm_min < 0 in parse8601() 206 ptime->tm = tm; in parse8601() 231 struct tm tm; in parseDWM() local 234 tm = ptime->tm; in parseDWM() 320 ptime->tm = tm; in parseDWM() 499 struct tm tm; in ptimeget_ctime_rfc5424() local 543 tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, in ptimeget_ctime_rfc5424() [all …]
|
/dragonfly/gnu/usr.bin/rcs/lib/ |
H A D | maketime.c | 77 struct tm const *tm; in month_days() 93 struct tm *tm; local 195 struct tm *tm; in tm2time() 215 tm->tm_yday = month_yday[tm->tm_mon] + tm->tm_mday 262 struct tm tm; local 269 tm = pt->tm; 295 if (!TM_DEFINED(tm.tm_mon)) tm.tm_mon = 0; 296 if (!TM_DEFINED(tm.tm_mday)) tm.tm_mday = 1; 297 if (!TM_DEFINED(tm.tm_hour)) tm.tm_hour = 0; 298 if (!TM_DEFINED(tm.tm_min)) tm.tm_min = 0; [all …]
|
H A D | partime.c | 211 t->tm.tm_sec = t->tm.tm_min = t->tm.tm_hour = t->tm.tm_mday = t->tm.tm_mon 212 = t->tm.tm_year = t->tm.tm_wday = t->tm.tm_yday 648 conflict (t->tm.tm_sec, u->tm.tm_sec) || 649 conflict (t->tm.tm_min, u->tm.tm_min) || 666 merge_ (t->tm.tm_sec, u->tm.tm_sec) 667 merge_ (t->tm.tm_min, u->tm.tm_min) 668 merge_ (t->tm.tm_hour, u->tm.tm_hour) 669 merge_ (t->tm.tm_mday, u->tm.tm_mday) 670 merge_ (t->tm.tm_mon, u->tm.tm_mon) 671 merge_ (t->tm.tm_year, u->tm.tm_year) [all …]
|
/dragonfly/usr.bin/localedef/ |
H A D | time.c | 50 (void) memset(&tm, 0, sizeof (tm)); in init_time() 66 tm.c_fmt = str; in add_time_str() 69 tm.x_fmt = str; in add_time_str() 72 tm.X_fmt = str; in add_time_str() 75 tm.ampm_fmt = str; in add_time_str() 82 tm.date_fmt = str; in add_time_str() 135 tm.am = str; in add_time_list() 137 tm.pm = str; in add_time_list() 222 tm.am = NULL; in reset_time_list() 224 tm.pm = NULL; in reset_time_list() [all …]
|
/dragonfly/lib/libc/stdtime/ |
H A D | strptime.c | 79 _strptime(const char *buf, const char *fmt, struct tm *tm, int *GMTp, in _strptime() argument 251 tm->tm_min = i; in _strptime() 255 tm->tm_sec = i; in _strptime() 288 tm->tm_hour = i; in _strptime() 455 tm->tm_mon = i; in _strptime() 619 tm->tm_yday = start_of_month[isleap(tm->tm_year + in _strptime() 620 TM_YEAR_BASE)][tm->tm_mon] + (tm->tm_mday - 1); in _strptime() 648 tm->tm_yday -= in _strptime() 657 tm->tm_mday = tm->tm_yday - in _strptime() 679 struct tm * __restrict tm, locale_t loc) in strptime_l() argument [all …]
|
H A D | getdate.c | 63 struct tm * 173 struct tm tm; in getdate() local 175 memset(&tm, 0, sizeof(struct tm)); in getdate() 177 tm.tm_mon = rtm.tm_mon; in getdate() 178 tm.tm_mday = 1; in getdate() 179 mktime(&tm); in getdate() 237 struct tm tm; in getdate() local 239 memset(&tm, 0, sizeof(struct tm)); in getdate() 241 tm.tm_mon = rtm.tm_mon; in getdate() 242 tm.tm_mday = 1; in getdate() [all …]
|
/dragonfly/crypto/libressl/crypto/asn1/ |
H A D | a_time_tm.c | 35 ASN1_time_tm_cmp(struct tm *tm1, struct tm *tm2) in ASN1_time_tm_cmp() 65 ASN1_time_tm_clamp_notafter(struct tm *tm) in ASN1_time_tm_clamp_notafter() argument 75 memcpy(tm, &broken_os_epoch_tm, sizeof(*tm)); in ASN1_time_tm_clamp_notafter() 82 tm_to_gentime(struct tm *tm, ASN1_TIME *atime) in tm_to_gentime() argument 94 tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, in tm_to_gentime() 133 tm->tm_year % 100, tm->tm_mon + 1, tm->tm_mday, in tm_to_utctime() 134 tm->tm_hour, tm->tm_min, tm->tm_sec) == -1) { in tm_to_utctime() 326 struct tm tml, *tmp = tm ? tm : &tml; in ASN1_time_parse() 380 struct tm tm; in ASN1_TIME_adj_internal() local 436 struct tm tm; in ASN1_TIME_to_generalizedtime() local [all …]
|
/dragonfly/usr.bin/at/ |
H A D | parsetime.c | 283 plus(struct tm *tm) in plus() argument 332 tod(struct tm *tm) in tod() argument 380 tm->tm_mday++; in tod() 381 tm->tm_wday++; in tod() 388 tm->tm_mday++; in tod() 397 assign_date(struct tm *tm, long mday, long mon, long year) in assign_date() argument 409 struct tm *lt; in assign_date() 425 (tm->tm_mon > mon ||(tm->tm_mon == mon && tm->tm_mday > mday))) in assign_date() 446 month(struct tm *tm) in month() argument 454 plus(tm); in month() [all …]
|
/dragonfly/crypto/libressl/crypto/ |
H A D | o_time.c | 75 static int julian_adj(const struct tm *tm, int off_day, long offset_sec, 79 OPENSSL_gmtime_adj(struct tm *tm, int off_day, long offset_sec) in OPENSSL_gmtime_adj() argument 90 offset_hms += tm->tm_hour * 3600 + tm->tm_min * 60 + tm->tm_sec; in OPENSSL_gmtime_adj() 104 time_month = tm->tm_mon + 1; in OPENSSL_gmtime_adj() 105 time_day = tm->tm_mday; in OPENSSL_gmtime_adj() 125 tm->tm_mon = time_month - 1; in OPENSSL_gmtime_adj() 126 tm->tm_mday = time_day; in OPENSSL_gmtime_adj() 138 const struct tm *to) in OPENSSL_gmtime_diff() 170 julian_adj(const struct tm *tm, int off_day, long offset_sec, long *pday, in julian_adj() argument 183 offset_hms += tm->tm_hour * 3600 + tm->tm_min * 60 + tm->tm_sec; in julian_adj() [all …]
|
/dragonfly/contrib/file/src/ |
H A D | cdf_time.c | 101 struct tm tm; in cdf_timestamp_to_timespec() local 125 tm.tm_mday = cdf_getday(tm.tm_year, CAST(int, t)); in cdf_timestamp_to_timespec() 126 tm.tm_mon = cdf_getmonth(tm.tm_year, CAST(int, t)); in cdf_timestamp_to_timespec() 127 tm.tm_wday = 0; in cdf_timestamp_to_timespec() 128 tm.tm_yday = 0; in cdf_timestamp_to_timespec() 129 tm.tm_isdst = 0; in cdf_timestamp_to_timespec() 131 tm.tm_gmtoff = 0; in cdf_timestamp_to_timespec() 134 tm.tm_zone = UTC; in cdf_timestamp_to_timespec() 136 tm.tm_year -= 1900; in cdf_timestamp_to_timespec() 154 struct tm tm; in cdf_timespec_to_timestamp() local [all …]
|
H A D | print.c | 275 struct tm *tm, tmz; in file_fmtdatetime() local 290 tm = gmtime_r(&t, &tmz); in file_fmtdatetime() 292 if (tm == NULL) in file_fmtdatetime() 294 pp = asctime_r(tm, buf); in file_fmtdatetime() 312 struct tm tm; in file_fmtdate() local 314 memset(&tm, 0, sizeof(tm)); in file_fmtdate() 315 tm.tm_mday = v & 0x1f; in file_fmtdate() 317 tm.tm_year = (v >> 9) + 80; in file_fmtdate() 331 struct tm tm; in file_fmttime() local 333 memset(&tm, 0, sizeof(tm)); in file_fmttime() [all …]
|
/dragonfly/contrib/cvs-1.12/lib/ |
H A D | mktime.c | 274 struct tm *(*convert) (const time_t *, struct tm *), in __mktime_internal() argument 278 struct tm tm; in __mktime_internal() local 424 if (isdst != tm.tm_isdst && 0 <= isdst && 0 <= tm.tm_isdst) in __mktime_internal() 461 struct tm otm; in __mktime_internal() 492 *tp = tm; in __mktime_internal() 529 not_equal_tm (const struct tm *a, const struct tm *b) in weak_alias() 573 struct tm tm, tmk, tml; in main() local 574 struct tm *lt; in main() 580 &tm.tm_year, &tm.tm_mon, &tm.tm_mday, &trailer) in main() 583 &tm.tm_hour, &tm.tm_min, &tm.tm_sec, &trailer) in main() [all …]
|
/dragonfly/gnu/usr.bin/diff/libdiffutils/ |
H A D | time.h | 622 _GL_CXXALIAS_RPL (mktime, time_t, (struct tm *__tp)); 624 _GL_CXXALIAS_SYS (mktime, time_t, (struct tm *__tp)); 703 _GL_FUNCDECL_RPL (gmtime, struct tm *, (time_t const *__timer) 705 _GL_CXXALIAS_RPL (gmtime, struct tm *, (time_t const *__timer)); 707 _GL_CXXALIAS_SYS (gmtime, struct tm *, (time_t const *__timer)); 719 struct tm *restrict __tm) 769 _GL_FUNCDECL_SYS (localtime_rz, struct tm *, 772 _GL_CXXALIAS_SYS (localtime_rz, struct tm *, 774 struct tm *restrict __result)); 790 _GL_CXXALIAS_RPL (timegm, time_t, (struct tm *__tm)); [all …]
|
/dragonfly/contrib/diffutils/lib/ |
H A D | mktime.c | 247 struct tm const *tp) in tm_diff() 257 static struct tm * 258 convert_time (struct tm *(*convert) (const time_t *, struct tm *), in convert_time() argument 259 long_int t, struct tm *tm) in convert_time() argument 270 static struct tm * 271 ranged_convert (struct tm *(*convert) (const time_t *, struct tm *), in ranged_convert() argument 323 struct tm *(*convert) (const time_t *, struct tm *), in __mktime_internal() argument 326 struct tm tm; in __mktime_internal() local 400 && (tm.tm_isdst < 0 in __mktime_internal() 464 struct tm otm; in __mktime_internal() [all …]
|
H A D | time_rz.c | 69 equal_tm (const struct tm *a, const struct tm *b) in equal_tm() 119 save_abbr (timezone_t tz, struct tm *tm) in save_abbr() argument 130 zone = tm->tm_zone; in save_abbr() 142 if (!zone || ((char *) tm <= zone && zone < (char *) (tm + 1))) in save_abbr() 286 struct tm * 287 localtime_rz (timezone_t tz, time_t const *t, struct tm *tm) in localtime_rz() argument 311 bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); in localtime_rz() 313 return tm; in localtime_rz() 321 mktime_z (timezone_t tz, struct tm *tm) in mktime_z() argument 324 return timegm (tm); in mktime_z() [all …]
|
H A D | localtime-buffer.c | 27 static struct tm tm_zero_buffer; 28 struct tm *localtime_buffer_addr = &tm_zero_buffer; 35 struct tm * 39 struct tm *tm = localtime (timep); in rpl_localtime() local 42 localtime_buffer_addr = tm; in rpl_localtime() 44 return tm; in rpl_localtime() 48 struct tm * 52 struct tm *tm = gmtime (timep); in rpl_gmtime() local 55 localtime_buffer_addr = tm; in rpl_gmtime() 57 return tm; in rpl_gmtime()
|
/dragonfly/sys/dev/raid/mps/ |
H A D | mps_sas.c | 241 if (tm != NULL) { in mpssas_alloc_tm() 249 return tm; in mpssas_alloc_tm() 255 if (tm == NULL) in mpssas_free_tm() 1130 mpssas_log_command(tm, "task mgmt %p timed out\n", tm); in mpssas_tm_timeout() 1161 mpssas_log_command(tm, "NULL reset reply for tm %p\n", tm); in mpssas_logical_unit_reset_complete() 1192 tm->cm_lun); in mpssas_logical_unit_reset_complete() 1195 tm->cm_lun); in mpssas_logical_unit_reset_complete() 1247 mpssas_log_command(tm, "NULL reset reply for tm %p\n", tm); in mpssas_target_reset_complete() 1336 tm->cm_complete_data = (void *)tm; in mpssas_send_reset() 1373 tm->cm_flags, tm, req->TaskMID); in mpssas_abort_complete() [all …]
|
/dragonfly/include/ |
H A D | time.h | 131 struct tm { struct 150 char *asctime(const struct tm *); 154 struct tm *gmtime(const time_t *); 155 struct tm *localtime(const time_t *); 156 time_t mktime(struct tm *); 175 struct tm *gmtime_r(const time_t * __restrict, struct tm * __restrict); 176 struct tm *localtime_r(const time_t * __restrict, struct tm * __restrict); 199 struct tm * __restrict) __strftimelike(2, 0); 205 time_t timelocal(struct tm * const); 206 time_t timegm(struct tm * const); [all …]
|
/dragonfly/contrib/nvi2/common/ |
H A D | delete.c | 32 del(SCR *sp, MARK *fm, MARK *tm, int lmode) in del() argument 59 if (tm->lno >= lno) { in del() 60 if (tm->lno == lno) { in del() 63 eof = tm->cno != ENTIRE_LINE && tm->cno >= len ? 1 : 0; in del() 86 if (tm->lno == fm->lno) { in del() 93 MEMCPY(bp + fm->cno, p + (tm->cno + 1), in del() 94 len - (tm->cno + 1)); in del() 117 if (len != 0 && tm->cno != len - 1) { in del() 124 nlen = (len - (tm->cno + 1)) + tlen; in del() 134 MEMCPY(bp + tlen, p + (tm->cno + 1), len - (tm->cno + 1)); in del() [all …]
|
/dragonfly/sbin/dhclient/ |
H A D | parse.c | 355 struct tm tm; in parse_date() local 366 tm.tm_wday = atoi(val); in parse_date() 376 tm.tm_year = atoi(val); in parse_date() 377 if (tm.tm_year > 1900) in parse_date() 378 tm.tm_year -= 1900; in parse_date() 416 tm.tm_mday = atoi(val); in parse_date() 445 tm.tm_min = atoi(val); in parse_date() 464 tm.tm_sec = atoi(val); in parse_date() 465 tm.tm_isdst = 0; in parse_date() 468 tm.tm_yday = 0; in parse_date() [all …]
|
/dragonfly/contrib/wpa_supplicant/src/utils/ |
H A D | os_win32.c | 65 struct tm tm, *tm1; in os_mktime() local 74 memset(&tm, 0, sizeof(tm)); in os_mktime() 76 tm.tm_mon = month - 1; in os_mktime() 77 tm.tm_mday = day; in os_mktime() 78 tm.tm_hour = hour; in os_mktime() 79 tm.tm_min = min; in os_mktime() 80 tm.tm_sec = sec; in os_mktime() 82 t_local = mktime(&tm); in os_mktime() 104 struct tm *tm2; in os_gmtime() 110 tm->sec = tm2->tm_sec; in os_gmtime() [all …]
|
/dragonfly/usr.sbin/zic/ |
H A D | zdump.c | 149 struct tm * tmp; in my_localtime() 153 struct tm tm; in my_localtime() local 156 tm = *tmp; in my_localtime() 218 struct tm tm; in main() local 220 struct tm *tmp; in main() 341 tm = *tmp; in main() 367 tm = newtm; in main() 441 struct tm tm; in hunt() local 462 tm = *tmp; in hunt() 468 lotm = tm; in hunt() [all …]
|
/dragonfly/sys/dev/raid/mpr/ |
H A D | mpr_sas.c | 240 return tm; in mprsas_alloc_tm() 249 if (tm == NULL) in mprsas_free_tm() 261 if (tm->cm_ccb) { in mprsas_free_tm() 1263 "out\n", tm); in mprsas_tm_timeout() 1302 tm); in mprsas_logical_unit_reset_complete() 1340 tm->cm_lun); in mprsas_logical_unit_reset_complete() 1476 mprsas_prepare_for_tm(sc, tm, target, tm->cm_lun); in mprsas_send_reset() 1504 tm->cm_complete_data = (void *)tm; in mprsas_send_reset() 1540 tm->cm_flags, tm, le16toh(req->TaskMID)); in mprsas_abort_complete() 1634 tm->cm_complete_data = (void *)tm; in mprsas_send_abort() [all …]
|
/dragonfly/contrib/binutils-2.34/gas/config/ |
H A D | tc-i386.c | 3535 i.tm.base_opcode ^= (i.tm.base_opcode & 0xee) != 0x6e in build_vex_prefix() 3538 i.tm = t[1]; in build_vex_prefix() 4112 i.tm.base_opcode = 0x84 | (i.tm.base_opcode & 1); in optimize_encoding() 6229 i.tm = *t; in match_template() 6250 = i.tm.opcode_modifier.modrm && i.tm.opcode_modifier.d in match_template() 6251 && i.tm.operands > 2U - i.tm.opcode_modifier.sse2avx in match_template() 6689 i.tm.name, in check_long_reg() 6760 i.tm.name, in check_qword_reg() 6810 i.tm.name, in check_word_reg() 6964 i.tm.operand_types[j - 1] = i.tm.operand_types[j]; in process_operands() [all …]
|
/dragonfly/crypto/libressl/crypto/x509/ |
H A D | x509cset.c | 96 X509_CRL_set_lastUpdate(X509_CRL *x, const ASN1_TIME *tm) in X509_CRL_set_lastUpdate() argument 103 if (in != tm) { in X509_CRL_set_lastUpdate() 104 in = ASN1_STRING_dup(tm); in X509_CRL_set_lastUpdate() 114 X509_CRL_set1_lastUpdate(X509_CRL *x, const ASN1_TIME *tm) in X509_CRL_set1_lastUpdate() argument 116 return X509_CRL_set_lastUpdate(x, tm); in X509_CRL_set1_lastUpdate() 120 X509_CRL_set_nextUpdate(X509_CRL *x, const ASN1_TIME *tm) in X509_CRL_set_nextUpdate() argument 127 if (in != tm) { in X509_CRL_set_nextUpdate() 128 in = ASN1_STRING_dup(tm); in X509_CRL_set_nextUpdate() 140 return X509_CRL_set_nextUpdate(x, tm); in X509_CRL_set1_nextUpdate() 186 if (in != tm) { in X509_REVOKED_set_revocationDate() [all …]
|