Searched refs:tv (Results 1 - 25 of 908) sorted by relevance

1234567891011>>

/netbsd-current/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.btrace/
H A Dvdso.c25 struct timeval tv; local
27 gettimeofday (&tv, 0);
/netbsd-current/external/gpl3/gdb/dist/gdb/testsuite/gdb.btrace/
H A Dvdso.c25 struct timeval tv; local
27 gettimeofday (&tv, 0);
/netbsd-current/external/bsd/ntp/dist/libntp/
H A Dbuftvtots.c23 struct timeval tv; local
28 memcpy(&tv, bufp, sizeof(tv));
33 if (tv.tv_usec > MICROSECONDS - 1)
36 *ts = tval_stamp_to_lfp(tv);
/netbsd-current/external/bsd/ntp/dist/lib/isc/unix/
H A Dstdtime.c43 fix_tv_usec(struct timeval *tv) { argument
46 if (tv->tv_usec < 0) {
49 tv->tv_sec -= 1;
50 tv->tv_usec += US_PER_S;
51 } while (tv->tv_usec < 0);
52 } else if (tv->tv_usec >= US_PER_S) {
55 tv->tv_sec += 1;
56 tv->tv_usec -= US_PER_S;
57 } while (tv->tv_usec >=US_PER_S);
69 struct timeval tv; local
[all...]
/netbsd-current/external/bsd/tmux/dist/compat/
H A Dclock_gettime.c23 #define TIMEVAL_TO_TIMESPEC(tv, ts) do { \
24 (ts)->tv_sec = (tv)->tv_sec; \
25 (ts)->tv_nsec = (tv)->tv_usec * 1000; \
32 struct timeval tv; local
34 gettimeofday(&tv, NULL);
35 TIMEVAL_TO_TIMESPEC(&tv, ts);
/netbsd-current/lib/libc/compat/sys/
H A Dcompat_utimes.c57 struct timeval tv[2]; local
60 timeval50_to_timeval(&tv50[0], &tv[0]);
61 timeval50_to_timeval(&tv50[1], &tv[1]);
63 return __utimes50(path, tv50 ? tv : NULL);
69 struct timeval tv[2]; local
72 timeval50_to_timeval(&tv50[0], &tv[0]);
73 timeval50_to_timeval(&tv50[1], &tv[1]);
75 return __lutimes50(path, tv50 ? tv : NULL);
81 struct timeval tv[2]; local
84 timeval50_to_timeval(&tv50[0], &tv[
[all...]
H A Dcompat_gettimeofday.c55 struct timeval tv; local
58 if ((rv = __gettimeofday50(&tv, tzp)) == -1)
60 timeval_to_timeval50(&tv, tv50);
H A Dcompat_settimeofday.c62 struct timeval tv; local
63 timeval50_to_timeval(tv50, &tv);
64 return __settimeofday50(&tv, tvp);
/netbsd-current/external/bsd/unbound/dist/util/
H A Dtimeval_func.h45 #define timeval_isset(tv) ((tv)->tv_sec || (tv)->tv_usec)
48 #define timeval_clear(tv) ((tv)->tv_sec = (tv)->tv_usec = 0)
/netbsd-current/external/mit/libuv/dist/test/
H A Dtest-gettimeofday.c26 uv_timeval64_t tv; local
29 tv.tv_sec = 0;
30 r = uv_gettimeofday(&tv);
32 ASSERT(tv.tv_sec != 0);
/netbsd-current/external/bsd/blocklist/port/
H A Dclock_gettime.c11 struct timeval tv; local
12 if (gettimeofday(&tv, NULL) == -1)
14 ts->tv_sec = tv.tv_sec;
15 ts->tv_nsec = tv.tv_usec * 1000;
/netbsd-current/lib/libc/gen/
H A Dutime.c52 struct timeval tv[2], *tvp; local
59 tv[0].tv_sec = times->actime;
60 tv[1].tv_sec = times->modtime;
61 tv[0].tv_usec = tv[1].tv_usec = 0;
62 tvp = tv;
/netbsd-current/external/public-domain/xz/dist/src/xz/
H A Dmytime.c38 struct timespec tv; local
39 while (clock_gettime(clk_id, &tv))
42 return (uint64_t)(tv.tv_sec) * UINT64_C(1000) + tv.tv_nsec / 1000000;
44 struct timeval tv;
45 gettimeofday(&tv, NULL);
46 return (uint64_t)(tv.tv_sec) * UINT64_C(1000) + tv.tv_usec / 1000;
/netbsd-current/sys/kern/
H A Dkern_rate.c45 struct timeval tv, delta; local
48 getmicrouptime(&tv);
49 timersub(&tv, lasttime, &delta);
57 *lasttime = tv;
70 struct timeval tv, delta; local
73 getmicrouptime(&tv);
74 timersub(&tv, lasttime, &delta);
86 *lasttime = tv;
/netbsd-current/tests/libexec/ld.elf_so/
H A Dt_dl_symver.sh42 for tv in 0 1 2; do
45 -o file:$(datadir)/symver-output-ref-stdout.v$tv-v$lv \
46 -e file:$(datadir)/symver-output-ref-stderr.v$tv-v$lv \
47 -x "LD_LIBRARY_PATH=$(atf_get_srcdir)/h_helper_symver_dso$lv $(atf_get_srcdir)/h_dl_symver_v$tv"
/netbsd-current/external/gpl2/xcvs/dist/lib/
H A Dgettime.c45 struct timeval tv;
46 gettimeofday (&tv, NULL);
47 ts->tv_sec = tv.tv_sec;
48 ts->tv_nsec = tv.tv_usec * 1000;
/netbsd-current/external/gpl3/gdb/dist/readline/readline/
H A Dposixselect.h41 #define USEC_TO_TIMEVAL(us, tv) \
43 (tv).tv_sec = (us) / USEC_PER_SEC; \
44 (tv).tv_usec = (us) % USEC_PER_SEC; \
/netbsd-current/external/gpl3/gdb.old/dist/readline/readline/
H A Dposixselect.h41 #define USEC_TO_TIMEVAL(us, tv) \
43 (tv).tv_sec = (us) / USEC_PER_SEC; \
44 (tv).tv_usec = (us) % USEC_PER_SEC; \
/netbsd-current/external/gpl3/gcc/dist/gcc/
H A Dtimevar.h111 void start (timevar_id_t tv);
112 void stop (timevar_id_t tv);
113 void push (timevar_id_t tv);
114 void pop (timevar_id_t tv);
115 bool cond_start (timevar_id_t tv);
116 void cond_stop (timevar_id_t tv);
130 void push_internal (struct timevar_def *tv);
210 timevar_push (timevar_id_t tv) argument
213 g_timer->push (tv);
217 timevar_pop (timevar_id_t tv) argument
228 auto_timevar(timer *t, timevar_id_t tv) argument
236 auto_timevar(timevar_id_t tv) argument
262 auto_cond_timevar(timer *t, timevar_id_t tv) argument
269 auto_cond_timevar(timevar_id_t tv) argument
[all...]
/netbsd-current/external/ibm-public/postfix/dist/src/global/
H A Drec_type.h143 #define REC_TYPE_WARN_ARG(tv) ((long) (tv))
144 #define REC_TYPE_WARN_SCAN(cp, tv) ((tv) = atol(cp))
151 #define REC_TYPE_TIME_ARG(tv) (long) (tv).tv_sec, (long) (tv).tv_usec
152 #define REC_TYPE_TIME_SCAN(cp, tv) \
155 (tv).tv_sec = atol(_p); \
158 (tv)
[all...]
/netbsd-current/lib/libc/compat/gen/
H A Dcompat_utime.c64 struct timeval tv[2], *tvp; local
71 tv[0].tv_sec = times50->actime;
72 tv[1].tv_sec = times50->modtime;
73 tv[0].tv_usec = tv[1].tv_usec = 0;
74 tvp = tv;
/netbsd-current/crypto/external/bsd/heimdal/dist/lib/krb5/
H A Dtest_time.c45 struct timeval tv; local
49 gettimeofday(&tv, NULL);
51 ret = krb5_set_real_time(context, tv.tv_sec + diff, tv.tv_usec);
59 diff2 = labs(sec - tv.tv_sec);
63 labs(sec - tv.tv_sec));
H A Dtime.c57 struct timeval tv; local
59 gettimeofday(&tv, NULL);
61 context->kdc_sec_offset = sec - tv.tv_sec;
68 context->kdc_usec_offset = usec - tv.tv_usec;
75 context->kdc_usec_offset = tv.tv_usec;
101 struct timeval tv; local
103 gettimeofday (&tv, NULL);
105 *sec = tv.tv_sec + context->kdc_sec_offset;
106 *usec = tv.tv_usec; /* XXX */
/netbsd-current/external/ibm-public/postfix/dist/src/util/
H A Ddoze.c48 struct timeval tv; local
52 tv.tv_sec = delay / MILLION;
53 tv.tv_usec = delay % MILLION;
54 while (select(0, (fd_set *) 0, (fd_set *) 0, (fd_set *) 0, &tv) < 0)
/netbsd-current/games/tetris/
H A Dinput.c52 #define TV_POS(tv) \
53 ((tv)->tv_sec > 0 || ((tv)->tv_sec == 0 && (tv)->tv_usec > 0))
124 struct timeval tv; local
127 tv.tv_sec = 0;
128 tv.tv_usec = fallrate;
129 while (TV_POS(&tv))
130 if (rwait(&tv) && read(0, &c, 1) != 1)

Completed in 399 milliseconds

1234567891011>>