/freebsd-11-stable/contrib/mdocml/ |
H A D | test-strptime.c | 10 struct tm tm; local 12 return ! (strptime(input, "%Y-%m-%d", &tm) == input + 10 && 13 tm.tm_year == 114 && tm.tm_mon == 0 && tm.tm_mday == 4);
|
/freebsd-11-stable/contrib/ntp/libntp/ |
H A D | humandate.c | 21 struct tm * tm; local 24 tm = localtime(&cursec); 25 if (!tm) 31 tm->tm_mday, months[tm->tm_mon], 32 tm->tm_hour, tm->tm_min, tm->tm_sec); 48 struct tm * t local [all...] |
H A D | uglydate.c | 21 struct tm *tm; local 30 tm = gmtime(&sec); 36 tm->tm_yday = 0; 37 tm->tm_hour = 0; 38 tm->tm_min = 0; 39 tm->tm_sec = 0; 41 year = tm->tm_year; 47 tm->tm_yday, tm [all...] |
/freebsd-11-stable/crypto/heimdal/lib/roken/ |
H A D | timegm.c | 51 rk_timegm (struct tm *tm) argument 59 if (tm->tm_year < 0) 61 if (tm->tm_mon < 0 || tm->tm_mon > 11) 63 if (tm->tm_mday < 1 || tm->tm_mday > ndays[is_leap(tm->tm_year)][tm->tm_mon]) 65 if (tm [all...] |
H A D | localtime_r.c | 42 ROKEN_LIB_FUNCTION struct tm * ROKEN_LIB_CALL 43 localtime_r(const time_t *timer, struct tm *result) 50 struct tm *tm; 52 tm = localtime((time_t *)timer); 53 if (tm == NULL) 55 *result = *tm;
|
H A D | strftime.c | 119 * Return the week number of `tm' (Sunday being the first day of the week) 124 week_number_sun (const struct tm *tm) argument 126 return (tm->tm_yday + 7 - (tm->tm_yday % 7 - tm->tm_wday + 7) % 7) / 7; 130 * Return the week number of `tm' (Monday being the first day of the week) 135 week_number_mon (const struct tm *tm) argument 137 int wday = (tm 149 week_number_mon4(const struct tm *tm) argument 170 strftime(char *buf, size_t maxsize, const char *format, const struct tm *tm) argument [all...] |
H A D | tm2time.c | 47 tm2time (struct tm tm, int local) argument 51 tm.tm_isdst = local ? -1 : 0; 53 t = mktime (&tm);
|
H A D | strpftime-test.h | 50 const struct tm *tm); 53 strptime (const char *buf, const char *format, struct tm *timeptr);
|
/freebsd-11-stable/crypto/heimdal/lib/asn1/ |
H A D | timegm.c | 56 _der_timegm (struct tm *tm) argument 64 if (tm->tm_year > ASN1_MAX_YEAR) 67 if (tm->tm_year < 0) 69 if (tm->tm_mon < 0 || tm->tm_mon > 11) 71 if (tm->tm_mday < 1 || tm->tm_mday > (int)ndays[is_leap(tm->tm_year)][tm 96 _der_gmtime(time_t t, struct tm *tm) argument [all...] |
H A D | check-timegm.c | 42 struct tm tm; local 45 memset(&tm, 0, sizeof(tm)); 46 tm.tm_year = 106; 47 tm.tm_mon = 9; 48 tm.tm_mday = 1; 49 tm.tm_hour = 10; 50 tm.tm_min = 3; 52 t = _der_timegm(&tm); [all...] |
/freebsd-11-stable/contrib/file/src/ |
H A D | gmtime_r.c | 11 struct tm * 12 gmtime_r(const time_t *t, struct tm *tm) argument 14 struct tm *tmp = gmtime(t); 17 memcpy(tm, tmp, sizeof(*tm));
|
H A D | localtime_r.c | 11 struct tm * 12 localtime_r(const time_t *t, struct tm *tm) argument 14 struct tm *tmp = localtime(t); 17 memcpy(tm, tmp, sizeof(*tm));
|
/freebsd-11-stable/crypto/openssl/crypto/ |
H A D | o_time.h | 65 struct tm *OPENSSL_gmtime(const time_t *timer, struct tm *result); 66 int OPENSSL_gmtime_adj(struct tm *tm, int offset_day, long offset_sec); 68 const struct tm *from, const struct tm *to);
|
/freebsd-11-stable/contrib/netbsd-tests/lib/libutil/ |
H A D | t_parsedate.c | 58 struct tm * time_to_tm(const time_t *, struct tm *), 62 struct tm tm; local 87 ATF_CHECK(time_to_tm(&t, &tm) != NULL); 89 ATF_CHECK_MSG(tm.tm_year + 1900 == year, 91 argstr, year, (int)tm.tm_year); 93 ATF_CHECK_MSG(tm.tm_mon + 1 == month, 95 argstr, month, (int)tm.tm_mon); 97 ATF_CHECK_MSG(tm 195 struct tm tm; local 238 struct tm tm; local [all...] |
/freebsd-11-stable/gnu/usr.bin/rcs/lib/ |
H A D | maketime.h | 35 struct tm *time2tm __MAKETIME_P((time_t,int)); 36 time_t difftm __MAKETIME_P((struct tm const *, struct tm const *)); 38 time_t tm2time __MAKETIME_P((struct tm *, int)); 39 void adjzone __MAKETIME_P((struct tm *, long));
|
H A D | maketime.c | 49 static int month_days P((struct tm const*)); 75 month_days(tm) 76 struct tm const *tm; 78 int m = tm->tm_mon; 80 + (m==1 && isleap(tm->tm_year + TM_YEAR_ORIGIN)); 84 * Convert UNIXTIME to struct tm form. 87 struct tm * 92 struct tm *tm; local 261 struct tm tm; local [all...] |
/freebsd-11-stable/usr.bin/localedef/ |
H A D | time.c | 47 struct lc_time_T tm; variable in typeref:struct:lc_time_T 52 (void) memset(&tm, 0, sizeof (tm)); 68 tm.c_fmt = str; 71 tm.x_fmt = str; 74 tm.X_fmt = str; 77 tm.ampm_fmt = str; 84 tm.date_fmt = str; 125 add_list(tm.mon, str, 12); 128 add_list(tm [all...] |
/freebsd-11-stable/libexec/bootpd/ |
H A D | tzone.c | 37 struct tm *tm; 41 if ((tm = localtime(&now)) == NULL) { 45 secondswest = -tm->tm_gmtoff;
|
/freebsd-11-stable/usr.sbin/newsyslog/ |
H A D | ptimes.c | 74 struct tm basetm; /* Base Time expanded into fields */ 75 struct tm tm; /* Time expanded into fields */ member in struct:ptime_data 100 * We are usually called with a 'tm-year' value 133 struct tm tm; local 144 tm = ptime->tm; 148 tm.tm_year = ((l / 1000000) - 19) * 100; 152 tm 226 struct tm tm; local 494 struct tm tm; local [all...] |
/freebsd-11-stable/sys/kern/ |
H A D | subr_terminal.c | 57 #define TERMINAL_LOCK(tm) do { \ 58 if ((tm)->tm_flags & TF_CONS) \ 59 mtx_lock_spin(&(tm)->tm_mtx); \ 60 else if ((tm)->tm_tty != NULL) \ 61 tty_lock((tm)->tm_tty); \ 63 #define TERMINAL_UNLOCK(tm) do { \ 64 if ((tm)->tm_flags & TF_CONS) \ 65 mtx_unlock_spin(&(tm)->tm_mtx); \ 66 else if ((tm)->tm_tty != NULL) \ 67 tty_unlock((tm) 163 terminal_init(struct terminal *tm) argument 175 struct terminal *tm; local 187 terminal_sync_ttysize(struct terminal *tm) argument 201 terminal_maketty(struct terminal *tm, const char *fmt, ...) argument 218 terminal_set_cursor(struct terminal *tm, const term_pos_t *pos) argument 225 terminal_set_winsize_blank(struct terminal *tm, const struct winsize *size, int blank, const term_attr_t *attr) argument 251 terminal_set_winsize(struct terminal *tm, const struct winsize *size) argument 265 terminal_mute(struct terminal *tm, int yes) argument 277 terminal_input_char(struct terminal *tm, term_char_t c) argument 330 terminal_input_raw(struct terminal *tm, char c) argument 345 terminal_input_special(struct terminal *tm, unsigned int k) argument 371 struct terminal *tm = tty_softc(tp); local 380 struct terminal *tm = tty_softc(tp); local 388 struct terminal *tm = tty_softc(tp); local 414 struct terminal *tm = tty_softc(tp); local 460 struct terminal *tm = tty_softc(tp); local 488 termcn_cnregister(struct terminal *tm) argument 514 struct terminal *tm = cp->cn_arg; local 522 struct terminal *tm = cp->cn_arg; local 530 struct terminal *tm = cp->cn_arg; local 558 struct terminal *tm = cp->cn_arg; local 566 struct terminal *tm = cp->cn_arg; local 588 struct terminal *tm = softc; local 596 struct terminal *tm = softc; local 605 struct terminal *tm = softc; local 614 struct terminal *tm = softc; local 622 struct terminal *tm = softc; local 630 struct terminal *tm = softc; local [all...] |
/freebsd-11-stable/contrib/ldns/compat/ |
H A D | gmtime_r.c | 9 struct tm *gmtime_r(const time_t *timep, struct tm *result)
|
H A D | localtime_r.c | 9 struct tm *localtime_r(const time_t *timep, struct tm *result)
|
/freebsd-11-stable/usr.bin/calendar/ |
H A D | day.c | 43 const struct tm tm0; 49 settimes(time_t now, int before, int after, int friday, struct tm *tp1, struct tm *tp2) 52 struct tm tp; 89 struct tm tm, tp; local 94 tm = tm0; 95 tm.tm_mday = tp.tm_mday; 96 tm.tm_mon = tp.tm_mon; 97 tm [all...] |
/freebsd-11-stable/contrib/unbound/compat/ |
H A D | strptime.c | 103 /** Converts the character string s to values which are stored in tm 107 unbound_strptime(const char *s, const char *format, struct tm *tm) argument 139 tm->tm_wday = ret; 150 tm->tm_mon = ret; 153 if (!(s = unbound_strptime(s, "%x %X", tm))) { 164 tm->tm_year = ret*100 + (tm->tm_year%100); 167 tm->tm_year = ret*100 - TM_YEAR_BASE; 177 tm [all...] |
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | trim_map.c | 48 #define TRIM_MAP_ADD(tm, ts) do { \ 49 list_insert_tail(&(tm)->tm_head, (ts)); \ 50 (tm)->tm_pending += TRIM_MAP_SEGS((ts)->ts_end - (ts)->ts_start); \ 53 #define TRIM_MAP_REM(tm, ts) do { \ 54 list_remove(&(tm)->tm_head, (ts)); \ 55 (tm)->tm_pending -= TRIM_MAP_SEGS((ts)->ts_end - (ts)->ts_start); \ 143 trim_map_t *tm; local 148 tm = kmem_zalloc(sizeof (*tm), KM_SLEEP); 149 mutex_init(&tm 166 trim_map_t *tm; local 204 trim_map_segment_add(trim_map_t *tm, uint64_t start, uint64_t end, uint64_t txg) argument 266 trim_map_segment_remove(trim_map_t *tm, trim_seg_t *ts, uint64_t start, uint64_t end) argument 301 trim_map_free_locked(trim_map_t *tm, uint64_t start, uint64_t end, uint64_t txg) argument 324 trim_map_t *tm = vd->vdev_trimmap; local 338 trim_map_t *tm = vd->vdev_trimmap; local 384 trim_map_t *tm = vd->vdev_trimmap; local 414 trim_map_first(trim_map_t *tm, uint64_t txg, uint64_t txgsafe, hrtime_t time, boolean_t force) argument 432 trim_map_t *tm = vd->vdev_trimmap; local 488 trim_map_t *tm = vd->vdev_trimmap; local [all...] |