HomeSort by: relevance | last modified time | path
    Searched defs:tv (Results 1 - 25 of 613) sorted by relevancy

1 2 3 4 5 6 7 8 91011>>

  /src/external/bsd/blocklist/port/
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;
  /src/external/bsd/ntp/dist/libntp/
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);
  /src/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.btrace/
vdso.c 25 struct timeval tv; local
27 gettimeofday (&tv, 0);
  /src/external/gpl3/gdb/dist/gdb/testsuite/gdb.btrace/
vdso.c 25 struct timeval tv; local
27 gettimeofday (&tv, 0);
  /src/lib/libc/compat/gen/
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;
  /src/lib/libc/compat/sys/
compat_gettimeofday.c 55 struct timeval tv; local
58 if ((rv = __gettimeofday50(&tv, tzp)) == -1)
60 timeval_to_timeval50(&tv, tv50);
compat_settimeofday.c 62 struct timeval tv; local
63 timeval50_to_timeval(tv50, &tv);
64 return __settimeofday50(&tv, tvp);
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[0])
    [all...]
  /src/lib/libc/gen/
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;
  /src/crypto/external/apache2/openssl/dist/test/
time_test.c 16 struct timeval tv; local
20 tv = ossl_time_to_timeval(a);
21 if (!TEST_long_eq(tv.tv_sec, 0) || !TEST_long_eq(tv.tv_usec, 0))
25 if (!TEST_true(ossl_time_is_zero(ossl_time_from_timeval(tv))))
30 tv = ossl_time_to_timeval(a);
31 if (!TEST_long_eq(tv.tv_sec, 0) || !TEST_long_eq(tv.tv_usec, 1))
34 tv = ossl_time_to_timeval(a);
35 if (!TEST_long_eq(tv.tv_sec, 0) || !TEST_long_eq(tv.tv_usec, 1)
    [all...]
  /src/external/bsd/tmux/dist/compat/
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);
  /src/external/mit/libuv/dist/test/
test-gettimeofday.c 26 uv_timeval64_t tv; local
29 tv.tv_sec = 0;
30 r = uv_gettimeofday(&tv);
32 ASSERT_NE(0, tv.tv_sec);
  /src/sys/kern/
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;
  /src/sys/modules/examples/current_time/
current_time.c 48 struct timeval tv; local
55 getmicrotime(&tv);
56 clock_secs_to_ymdhms(tv.tv_sec, &dt);
  /src/external/ibm-public/postfix/dist/src/util/
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)
  /src/crypto/external/bsd/heimdal/dist/lib/krb5/
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 */
net_write.c 57 struct timeval tv, *tvp; local
68 tv.tv_sec = timeout;
69 tv.tv_usec = 0;
70 tvp = &tv;
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));
  /src/external/bsd/ntp/dist/kernel/sys/
ppsclock.h 44 struct timeval tv; member in struct:ppsclockev
  /src/external/bsd/ntp/dist/libntp/lib/isc/unix/
stdtime.c 43 fix_tv_usec(struct timeval *tv) {
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...]
  /src/external/gpl3/gdb/dist/gnulib/import/
setsockopt.c 50 const struct timeval *tv = optval; local
51 int milliseconds = tv->tv_sec * 1000 + tv->tv_usec / 1000;
  /src/external/gpl3/gdb.old/dist/gnulib/import/
setsockopt.c 50 const struct timeval *tv = optval; local
51 int milliseconds = tv->tv_sec * 1000 + tv->tv_usec / 1000;
  /src/sys/compat/common/
kern_time_30.c 68 struct timeval tv; local
77 TIMESPEC_TO_TIMEVAL(&tv, &ntv.time);
78 timeval_to_timeval50(&tv, &ntv30.time);
kern_uipc_socket_50.c 157 struct timeval tv; local
169 timeval50_to_timeval(&otv, &tv);
172 if (tv.tv_sec < 0 || tv.tv_usec < 0 || tv.tv_usec >= 1000000) {
176 if (tv.tv_sec > (INT_MAX - tv.tv_usec / tick) / hz) {
181 optval = tv.tv_sec * hz + tv.tv_usec / tick;
182 if (optval == 0 && tv.tv_usec != 0
216 struct timeval tv; local
    [all...]
  /src/tests/lib/librumphijack/
h_client.c 52 struct timeval tv; local
56 tv.tv_sec = 0;
57 tv.tv_usec = 1;
64 rv = select(pipefd[0]+1, &rfds, NULL, NULL, &tv);
75 struct timeval tv; local
78 tv.tv_sec = 0;
79 tv.tv_usec = 1;
85 rv = select(100, &rfds, &wfds, &efds, &tv);
91 rv = select(0, NULL, NULL, NULL, &tv);

Completed in 30 milliseconds

1 2 3 4 5 6 7 8 91011>>