Searched refs:tm (Results 76 - 100 of 516) sorted by relevance

1234567891011>>

/freebsd-11-stable/sbin/nandfs/
H A Dlssnap.c60 struct tm tm; local
65 localtime_r(&t, &tm);
66 strftime(timebuf, sizeof(timebuf), "%F %T", &tm);
/freebsd-11-stable/contrib/ntp/libntp/
H A Dmktime.c42 * timezone state file to figure out strange unnormalized struct tm values,
43 * as might result from someone doing date math on the tm struct then passing
46 * It just does as well as it can at normalizing the tm input, then does a
50 * setting of tm_isdst when comparing tm values, causing the search to be
133 static struct tm *
135 struct tm * tmp
139 static struct tm tmbuf;
150 register struct tm * atmp,
151 register struct tm * btmp
183 struct tm * tm
[all...]
/freebsd-11-stable/usr.sbin/cron/cron/
H A Dexterns.h29 # define TZONE(tm) tzname[(tm).tm_isdst]
54 extern struct tm *localtime();
66 # define TZONE(tm) (tm).tm_zone
H A Dcron.c107 struct tm *tm; local
181 tm = localtime(&TargetTime);
182 if (tm->tm_sec > 0) {
226 static struct tm lasttm;
229 struct tm otztm; /* time in the old time zone */
231 register struct tm *tm = localtime(&TargetTime); local
238 second = (secres == 0) ? 0 : tm->tm_sec -FIRST_SECOND;
239 minute = tm
380 struct tm *tm; local
[all...]
/freebsd-11-stable/contrib/libarchive/libarchive/test/
H A Dtest_write_format_zip_compression_store.c131 struct tm *tm = localtime(&now); local
169 assertEqualInt(i2(p + 12), (tm->tm_hour * 2048) + (tm->tm_min * 32) + (tm->tm_sec / 2)); /* File time */
170 assertEqualInt(i2(p + 14), ((tm->tm_year - 80) * 512) + ((tm->tm_mon + 1) * 32) + tm->tm_mday); /* File date */
202 assertEqualInt(i2(q + 10), (tm->tm_hour * 2048) + (tm
[all...]
H A Dtest_write_format_zip_file.c76 struct tm *tm = localtime(&t); local
146 assertEqualInt(i2(p + 12), (tm->tm_hour * 2048) + (tm->tm_min * 32) + (tm->tm_sec / 2)); /* File time */
147 assertEqualInt(i2(p + 14), ((tm->tm_year - 80) * 512) + ((tm->tm_mon + 1) * 32) + tm->tm_mday); /* File date */
195 assertEqualInt(i2(p + 10), (tm->tm_hour * 2048) + (tm
[all...]
/freebsd-11-stable/contrib/wpa/src/utils/
H A Dos_internal.c60 struct tm tm; local
67 os_memset(&tm, 0, sizeof(tm));
68 tm.tm_year = year - 1900;
69 tm.tm_mon = month - 1;
70 tm.tm_mday = day;
71 tm.tm_hour = hour;
72 tm.tm_min = min;
73 tm
80 os_gmtime(os_time_t t, struct os_tm *tm) argument
[all...]
/freebsd-11-stable/usr.bin/grdc/
H A Dgrdc.c30 static struct tm *tm; variable in typeref:struct:tm
146 tm = localtime(&now.tv_sec);
147 set(tm->tm_sec%10, 0);
148 set(tm->tm_sec/10, 4);
149 set(tm->tm_min%10, 10);
150 set(tm->tm_min/10, 14);
153 if (tm->tm_hour < 12) {
154 if (tm->tm_hour == 0)
155 tm
[all...]
/freebsd-11-stable/usr.sbin/ctm/ctm/
H A Dctm_pass3.c61 struct tm tm; local
78 tm.tm_isdst = tm.tm_gmtoff = 0;
81 tm.tm_year = atoi(buf) - 1900;
83 tm.tm_mon = atoi(buf) - 1;
84 if (tm.tm_mon < 0 || tm.tm_mon > 11) WRONGDATE
86 tm.tm_mday = atoi(buf);
87 if (tm
[all...]
/freebsd-11-stable/contrib/tzcode/zic/
H A Dzdump.c23 #include <time.h> /* for struct tm */
156 static char * abbr(struct tm * tmp);
158 static long delta(struct tm * newp, struct tm * oldp);
159 static void dumptime(const struct tm * tmp);
169 static struct tm *
173 register struct tm * tmp;
177 struct tm tm; local
180 tm
250 struct tm tm; local
480 struct tm tm; local
[all...]
/freebsd-11-stable/crypto/openssl/crypto/x509/
H A Dx509_set.c113 int X509_set_notBefore(X509 *x, const ASN1_TIME *tm) argument
120 if (in != tm) {
121 in = M_ASN1_TIME_dup(tm);
130 int X509_set_notAfter(X509 *x, const ASN1_TIME *tm) argument
137 if (in != tm) {
138 in = M_ASN1_TIME_dup(tm);
/freebsd-11-stable/contrib/mdocml/
H A Dmandoc.c459 struct tm tm; local
462 memset(&tm, 0, sizeof(struct tm));
466 pp = strptime(p, fmt, &tm);
469 *t = mktime(&tm);
479 struct tm *tm; local
484 tm = localtime(&t);
485 if (tm
[all...]
/freebsd-11-stable/sys/dev/vt/
H A Dvt_cpulogos.c151 struct terminal *tm; local
177 tm = vw->vw_terminal;
186 terminal_mute(tm, 1);
188 terminal_set_winsize_blank(tm, &wsz, 0, NULL);
189 terminal_set_cursor(tm, &vw->vw_buf.vb_cursor);
190 terminal_mute(tm, 0);
208 struct terminal *tm; local
218 tm = &vt_consterm;
219 vw = tm->tm_softc;
244 terminal_mute(tm,
[all...]
/freebsd-11-stable/gnu/usr.bin/gdb/arch/arm/
H A DMakefile14 tm.h:
15 #XXX this should be arm/tm-fbsd.h
16 echo '#include "tm-fbsd.h"' > ${.TARGET}
/freebsd-11-stable/gnu/usr.bin/gdb/arch/mips/
H A DMakefile15 tm.h:
16 echo '#include "mips/tm-fbsd.h"' > ${.TARGET}
/freebsd-11-stable/gnu/usr.bin/gdb/arch/powerpc/
H A DMakefile13 tm.h:
14 echo '#include "powerpc/tm-ppc-eabi.h"' > ${.TARGET}
/freebsd-11-stable/gnu/usr.bin/gdb/arch/powerpc64/
H A DMakefile13 tm.h:
14 echo '#include "powerpc/tm-ppc-eabi.h"' > ${.TARGET}
/freebsd-11-stable/crypto/openssl/crypto/asn1/
H A Da_time.c110 struct tm *ts;
111 struct tm data;
209 static int asn1_time_to_tm(struct tm *tm, const ASN1_TIME *t) argument
214 if (OPENSSL_gmtime(&now_t, tm))
220 return asn1_utctime_to_tm(tm, t);
222 return asn1_generalizedtime_to_tm(tm, t);
230 struct tm tm_from, tm_to;
/freebsd-11-stable/contrib/lua/src/
H A Dltm.c60 const TValue *tm = luaH_getshortstr(events, ename); local
62 if (ttisnil(tm)) { /* no tag method? */
66 else return tm;
126 const TValue *tm = luaT_gettmbyobj(L, p1, event); /* try first operand */ local
127 if (ttisnil(tm))
128 tm = luaT_gettmbyobj(L, p2, event); /* try second operand */
129 if (ttisnil(tm)) return 0;
130 luaT_callTM(L, tm, p1, p2, res, 1);
/freebsd-11-stable/contrib/apr-util/include/
H A Dapr_anylock.h42 apr_thread_mutex_t *tm; /**< Thread mutex */ member in union:apr_anylock_t::apr_anylock_u_t
55 ? apr_thread_mutex_lock((lck)->lock.tm) \
82 ? apr_thread_mutex_trylock((lck)->lock.tm) \
109 ? apr_thread_mutex_unlock((lck)->lock.tm) \
/freebsd-11-stable/contrib/ntp/sntp/libopts/
H A Dtime.c107 struct tm stm;
108 time_t tm; local
118 tm = mktime(&stm);
125 od->optArg.argInt = tm;
/freebsd-11-stable/usr.sbin/bhyve/
H A Drtc.c64 struct tm tm; local
69 localtime_r(&t, &tm);
70 t = timegm(&tm);
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/
H A Dltm.c53 const TValue *tm = luaH_getstr(events, ename); local
55 if (ttisnil(tm)) { /* no tag method? */
59 else return tm;
/freebsd-11-stable/sys/dev/mpr/
H A Dmpr_sas.c130 static int mprsas_send_abort(struct mpr_softc *sc, struct mpr_command *tm,
239 struct mpr_command *tm; local
242 tm = mpr_alloc_high_priority_command(sc);
243 return tm;
247 mprsas_free_tm(struct mpr_softc *sc, struct mpr_command *tm) argument
252 if (tm == NULL)
260 if (tm->cm_targ != NULL) {
261 tm->cm_targ->flags &= ~MPRSAS_TARGET_INRESET;
262 target_id = tm->cm_targ->tid;
264 if (tm
361 mprsas_remove_volume(struct mpr_softc *sc, struct mpr_command *tm) argument
547 mprsas_remove_device(struct mpr_softc *sc, struct mpr_command *tm) argument
622 mprsas_remove_complete(struct mpr_softc *sc, struct mpr_command *tm) argument
1256 struct mpr_command *tm = data; local
1267 mprsas_logical_unit_reset_complete(struct mpr_softc *sc, struct mpr_command *tm) argument
1357 mprsas_target_reset_complete(struct mpr_softc *sc, struct mpr_command *tm) argument
1429 mprsas_send_reset(struct mpr_softc *sc, struct mpr_command *tm, uint8_t type) argument
1499 mprsas_abort_complete(struct mpr_softc *sc, struct mpr_command *tm) argument
1583 mprsas_send_abort(struct mpr_softc *sc, struct mpr_command *tm, struct mpr_command *cm) argument
3418 struct mpr_command *tm; local
3460 mprsas_resetdev_complete(struct mpr_softc *sc, struct mpr_command *tm) argument
3861 mprsas_prepare_for_tm(struct mpr_softc *sc, struct mpr_command *tm, struct mprsas_target *target, lun_id_t lun_id) argument
[all...]
/freebsd-11-stable/sys/dev/mps/
H A Dmps_sas.c123 static int mpssas_send_abort(struct mps_softc *sc, struct mps_command *tm,
235 struct mps_command *tm; local
237 tm = mps_alloc_high_priority_command(sc);
238 return tm;
242 mpssas_free_tm(struct mps_softc *sc, struct mps_command *tm) argument
246 if (tm == NULL)
254 if (tm->cm_targ != NULL) {
255 tm->cm_targ->flags &= ~MPSSAS_TARGET_INRESET;
256 target_id = tm->cm_targ->tid;
258 if (tm
357 mpssas_remove_volume(struct mps_softc *sc, struct mps_command *tm) argument
549 mpssas_remove_device(struct mps_softc *sc, struct mps_command *tm) argument
622 mpssas_remove_complete(struct mps_softc *sc, struct mps_command *tm) argument
1195 struct mps_command *tm = data; local
1206 mpssas_logical_unit_reset_complete(struct mps_softc *sc, struct mps_command *tm) argument
1297 mpssas_target_reset_complete(struct mps_softc *sc, struct mps_command *tm) argument
1369 mpssas_send_reset(struct mps_softc *sc, struct mps_command *tm, uint8_t type) argument
1431 mpssas_abort_complete(struct mps_softc *sc, struct mps_command *tm) argument
1515 mpssas_send_abort(struct mps_softc *sc, struct mps_command *tm, struct mps_command *cm) argument
3152 struct mps_command *tm; local
3191 mpssas_resetdev_complete(struct mps_softc *sc, struct mps_command *tm) argument
3578 mpssas_prepare_for_tm(struct mps_softc *sc, struct mps_command *tm, struct mpssas_target *target, lun_id_t lun_id) argument
[all...]

Completed in 333 milliseconds

1234567891011>>