Searched refs:tm (Results 1 - 25 of 492) sorted by relevance

1234567891011>>

/freebsd-9.3-release/contrib/ntp/libntp/
H A Dhumandate.c21 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 Duglydate.c21 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-9.3-release/crypto/heimdal/lib/asn1/
H A Dtimegm.c52 _der_timegm (struct tm *tm) argument
60 if (tm->tm_year < 0)
62 if (tm->tm_mon < 0 || tm->tm_mon > 11)
64 if (tm->tm_mday < 1 || tm->tm_mday > ndays[is_leap(tm->tm_year)][tm->tm_mon])
66 if (tm
[all...]
H A Dcheck-timegm.c42 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-9.3-release/crypto/heimdal/lib/roken/
H A Dtimegm.c54 rk_timegm (struct tm *tm) argument
62 if (tm->tm_year < 0)
64 if (tm->tm_mon < 0 || tm->tm_mon > 11)
66 if (tm->tm_mday < 1 || tm->tm_mday > ndays[is_leap(tm->tm_year)][tm->tm_mon])
68 if (tm
[all...]
H A Dlocaltime_r.c45 struct tm * ROKEN_LIB_FUNCTION
46 localtime_r(const time_t *timer, struct tm *result)
48 struct tm *tm; local
50 tm = localtime((time_t *)timer);
51 if (tm == NULL)
53 *result = *tm;
H A Dstrftime.c123 * Return the week number of `tm' (Sunday being the first day of the week)
128 week_number_sun (const struct tm *tm) argument
130 return (tm->tm_yday + 7 - (tm->tm_yday % 7 - tm->tm_wday + 7) % 7) / 7;
134 * Return the week number of `tm' (Monday being the first day of the week)
139 week_number_mon (const struct tm *tm) argument
141 int wday = (tm
153 week_number_mon4(const struct tm *tm) argument
174 strftime(char *buf, size_t maxsize, const char *format, const struct tm *tm) argument
[all...]
H A Dtm2time.c50 tm2time (struct tm tm, int local) argument
54 tm.tm_isdst = local ? -1 : 0;
56 t = mktime (&tm);
/freebsd-9.3-release/contrib/ntp/tests/libntp/
H A Dhumandate.c27 struct tm* tm; local
29 tm = localtime(&sample);
30 TEST_ASSERT_TRUE(tm != NULL);
32 snprintf(expected, 15, "%02d:%02d:%02d", tm->tm_hour, tm->tm_min, tm->tm_sec);
44 struct tm* tm; local
48 tm
[all...]
/freebsd-9.3-release/crypto/openssl/crypto/
H A Do_time.h65 struct tm *OPENSSL_gmtime(const time_t *timer, struct tm *result);
/freebsd-9.3-release/gnu/usr.bin/rcs/lib/
H A Dmaketime.h35 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 Dmaketime.c49 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...]
H A Dpartime.c210 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...]
/freebsd-9.3-release/sys/kern/
H A Dsubr_terminal.c57 #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_winsize_blank(struct terminal *tm, const struct winsize *size, int blank) argument
219 terminal_set_winsize(struct terminal *tm, const struct winsize *size) argument
232 terminal_mute(struct terminal *tm, int yes) argument
244 terminal_input_char(struct terminal *tm, term_char_t c) argument
297 terminal_input_raw(struct terminal *tm, char c) argument
312 terminal_input_special(struct terminal *tm, unsigned int k) argument
338 struct terminal *tm = tty_softc(tp); local
347 struct terminal *tm = tty_softc(tp); local
355 struct terminal *tm = tty_softc(tp); local
378 struct terminal *tm = tty_softc(tp); local
424 struct terminal *tm = tty_softc(tp); local
452 termcn_cnregister(struct terminal *tm) argument
490 struct terminal *tm = cp->cn_arg; local
518 struct terminal *tm = cp->cn_arg; local
526 struct terminal *tm = cp->cn_arg; local
549 struct terminal *tm = softc; local
557 struct terminal *tm = softc; local
566 struct terminal *tm = softc; local
575 struct terminal *tm = softc; local
583 struct terminal *tm = softc; local
591 struct terminal *tm = softc; local
[all...]
/freebsd-9.3-release/contrib/bind9/lib/isc/include/isc/
H A Dtm.h20 /*! \file isc/tm.h
21 * Provides portable conversion routines for struct tm.
32 isc_tm_timegm(struct tm *tm);
34 * Convert a tm structure to time_t, using UTC rather than the local
39 isc_tm_strptime(const char *buf, const char *fmt, struct tm *tm);
41 * Parse a formatted date string into struct tm.
/freebsd-9.3-release/libexec/bootpd/
H A Dtzone.c37 struct tm *tm;
41 if ((tm = localtime(&now)) == NULL) {
45 secondswest = -tm->tm_gmtoff;
/freebsd-9.3-release/contrib/file/src/
H A Dcdf_time.c101 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-9.3-release/usr.sbin/newsyslog/
H A Dptimes.c74 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
[all...]
/freebsd-9.3-release/usr.bin/calendar/
H A Dday.c43 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-9.3-release/contrib/llvm/lib/Target/R600/
H A DAMDGPU.h28 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-9.3-release/contrib/bind9/lib/isc/
H A Dtm.c53 #include <isc/tm.h>
57 * Portable conversion routines for struct tm, replacing
119 isc_tm_timegm(struct tm *tm) { argument
124 leapday = ((((tm->tm_year + 1900 ) % 4) == 0 &&
125 ((tm->tm_year + 1900 ) % 100) != 0) ||
126 ((tm->tm_year + 1900 ) % 400) == 0) ? 1 : 0;
129 yday = tm->tm_mday - 1;
130 for (i = 1; i <= tm->tm_mon; i++)
132 ret = tm
144 isc_tm_strptime(const char *buf, const char *fmt, struct tm *tm) argument
[all...]
/freebsd-9.3-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dtrim_map.c43 #define TRIM_MAP_SINC(tm, size) \
44 atomic_add_64(&(tm)->tm_bytes, (size))
46 #define TRIM_MAP_SDEC(tm, size) \
47 atomic_add_64(&(tm)->tm_bytes, -(size))
49 #define TRIM_MAP_QINC(tm) \
50 atomic_inc_64(&(tm)->tm_pending); \
52 #define TRIM_MAP_QDEC(tm) \
53 atomic_dec_64(&(tm)->tm_pending);
156 trim_map_t *tm; local
163 tm
181 trim_map_t *tm; local
221 trim_map_segment_add(trim_map_t *tm, uint64_t start, uint64_t end, uint64_t txg) argument
283 trim_map_segment_remove(trim_map_t *tm, trim_seg_t *ts, uint64_t start, uint64_t end) argument
318 trim_map_free_locked(trim_map_t *tm, uint64_t start, uint64_t end, uint64_t txg) argument
341 trim_map_t *tm = vd->vdev_trimmap; local
355 trim_map_t *tm = vd->vdev_trimmap; local
401 trim_map_t *tm = vd->vdev_trimmap; local
431 trim_map_first(trim_map_t *tm, uint64_t txg, uint64_t txgsafe, hrtime_t time) argument
450 trim_map_t *tm = vd->vdev_trimmap; local
490 trim_map_t *tm = vd->vdev_trimmap; local
[all...]
/freebsd-9.3-release/contrib/bind9/lib/dns/
H A Dtime.c42 struct tm tm; local
55 tm.tm_year = 70;
57 if (tm.tm_year == 0)
59 tm.tm_year--;
60 secs = year_secs(tm.tm_year + 1900);
63 while ((secs = year_secs(tm.tm_year + 1900)) <= t) {
65 tm.tm_year++;
66 if (tm.tm_year + 1900 > 9999)
69 tm
[all...]
/freebsd-9.3-release/usr.sbin/bsnmpd/modules/snmp_hostres/
H A Dhostres_snmp.c185 * 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-9.3-release/crypto/openssh/openbsd-compat/
H A Dstrptime.c57 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...]

Completed in 707 milliseconds

1234567891011>>