/freebsd-10-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-10-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-10-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-10-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);
|
/freebsd-10-stable/contrib/file/src/ |
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));
|
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 | cdf_time.c | 101 struct tm tm; local 111 tm.tm_sec = (int)(t % 60); 114 tm.tm_min = (int)(t % 60); 117 tm.tm_hour = (int)(t % 24); 121 tm.tm_year = (int)(CDF_BASE_YEAR + (t / 365)); 123 rdays = cdf_getdays(tm.tm_year); 125 tm.tm_mday = cdf_getday(tm.tm_year, (int)t); 126 tm 154 struct tm tm; local [all...] |
/freebsd-10-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-10-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-10-stable/libexec/bootpd/ |
H A D | tzone.c | 37 struct tm *tm; 41 if ((tm = localtime(&now)) == NULL) { 45 secondswest = -tm->tm_gmtoff;
|
/freebsd-10-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-10-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) 138 terminal_init(struct terminal *tm) argument 150 struct terminal *tm; local 162 terminal_sync_ttysize(struct terminal *tm) argument 176 terminal_maketty(struct terminal *tm, const char *fmt, ...) argument 193 terminal_set_cursor(struct terminal *tm, const term_pos_t *pos) argument 200 terminal_set_winsize_blank(struct terminal *tm, const struct winsize *size, int blank, const term_attr_t *attr) argument 226 terminal_set_winsize(struct terminal *tm, const struct winsize *size) argument 240 terminal_mute(struct terminal *tm, int yes) argument 252 terminal_input_char(struct terminal *tm, term_char_t c) argument 305 terminal_input_raw(struct terminal *tm, char c) argument 320 terminal_input_special(struct terminal *tm, unsigned int k) argument 346 struct terminal *tm = tty_softc(tp); local 355 struct terminal *tm = tty_softc(tp); local 363 struct terminal *tm = tty_softc(tp); local 386 struct terminal *tm = tty_softc(tp); local 432 struct terminal *tm = tty_softc(tp); local 460 termcn_cnregister(struct terminal *tm) argument 486 struct terminal *tm = cp->cn_arg; local 494 struct terminal *tm = cp->cn_arg; local 502 struct terminal *tm = cp->cn_arg; local 530 struct terminal *tm = cp->cn_arg; local 538 struct terminal *tm = cp->cn_arg; local 561 struct terminal *tm = softc; local 569 struct terminal *tm = softc; local 578 struct terminal *tm = softc; local 587 struct terminal *tm = softc; local 595 struct terminal *tm = softc; local 603 struct terminal *tm = softc; local [all...] |
/freebsd-10-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-10-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-10-stable/contrib/llvm/lib/Target/R600/ |
H A D | AMDGPU.h | 28 FunctionPass *createR600VectorRegMerger(TargetMachine &tm); 30 FunctionPass *createR600ExpandSpecialInstrsPass(TargetMachine &tm); 31 FunctionPass *createR600EmitClauseMarkers(TargetMachine &tm); 32 FunctionPass *createR600ClauseMergePass(TargetMachine &tm); 33 FunctionPass *createR600Packetizer(TargetMachine &tm); 34 FunctionPass *createR600ControlFlowFinalizer(TargetMachine &tm); 35 FunctionPass *createAMDGPUCFGStructurizerPass(TargetMachine &tm); 40 FunctionPass *createSILowerControlFlowPass(TargetMachine &tm); 41 FunctionPass *createSIFixSGPRCopiesPass(TargetMachine &tm); 43 FunctionPass *createSIInsertWaits(TargetMachine &tm); [all...] |
/freebsd-10-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-10-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); \ 150 trim_map_t *tm; local 155 tm = kmem_zalloc(sizeof (*tm), KM_SLEEP); 156 mutex_init(&tm 173 trim_map_t *tm; local 211 trim_map_segment_add(trim_map_t *tm, uint64_t start, uint64_t end, uint64_t txg) argument 273 trim_map_segment_remove(trim_map_t *tm, trim_seg_t *ts, uint64_t start, uint64_t end) argument 308 trim_map_free_locked(trim_map_t *tm, uint64_t start, uint64_t end, uint64_t txg) argument 331 trim_map_t *tm = vd->vdev_trimmap; local 345 trim_map_t *tm = vd->vdev_trimmap; local 391 trim_map_t *tm = vd->vdev_trimmap; local 421 trim_map_first(trim_map_t *tm, uint64_t txg, uint64_t txgsafe, hrtime_t time, boolean_t force) argument 439 trim_map_t *tm = vd->vdev_trimmap; local 495 trim_map_t *tm = vd->vdev_trimmap; local [all...] |