/netbsd-current/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.btrace/ |
H A D | vdso.c | 25 struct timeval tv; local 27 gettimeofday (&tv, 0);
|
/netbsd-current/external/gpl3/gdb/dist/gdb/testsuite/gdb.btrace/ |
H A D | vdso.c | 25 struct timeval tv; local 27 gettimeofday (&tv, 0);
|
/netbsd-current/external/bsd/ntp/dist/libntp/ |
H A D | buftvtots.c | 23 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 D | stdtime.c | 43 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 D | clock_gettime.c | 23 #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 D | compat_utimes.c | 57 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 D | compat_gettimeofday.c | 55 struct timeval tv; local 58 if ((rv = __gettimeofday50(&tv, tzp)) == -1) 60 timeval_to_timeval50(&tv, tv50);
|
H A D | compat_settimeofday.c | 62 struct timeval tv; local 63 timeval50_to_timeval(tv50, &tv); 64 return __settimeofday50(&tv, tvp);
|
/netbsd-current/external/bsd/unbound/dist/util/ |
H A D | timeval_func.h | 45 #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 D | test-gettimeofday.c | 26 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 D | clock_gettime.c | 11 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 D | utime.c | 52 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 D | mytime.c | 38 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 D | kern_rate.c | 45 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 D | t_dl_symver.sh | 42 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 D | gettime.c | 45 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 D | posixselect.h | 41 #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 D | posixselect.h | 41 #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 D | timevar.h | 111 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 D | rec_type.h | 143 #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 D | compat_utime.c | 64 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 D | test_time.c | 45 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 D | time.c | 57 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 D | doze.c | 48 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 D | input.c | 52 #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)
|