/bind-9.11.3/lib/isc/unix/ |
H A D | stdtime.c | 32 fix_tv_usec(struct timeval *tv) { argument 35 if (tv->tv_usec < 0) { 38 tv->tv_sec -= 1; 39 tv->tv_usec += US_PER_S; 40 } while (tv->tv_usec < 0); 41 } else if (tv->tv_usec >= US_PER_S) { 44 tv->tv_sec += 1; 45 tv->tv_usec -= US_PER_S; 46 } while (tv->tv_usec >=US_PER_S); 58 struct timeval tv; local [all...] |
H A D | time.c | 57 fix_tv_usec(struct timeval *tv) { argument 60 if (tv->tv_usec < 0) { 63 tv->tv_sec -= 1; 64 tv->tv_usec += US_PER_S; 65 } while (tv->tv_usec < 0); 66 } else if (tv->tv_usec >= US_PER_S) { 69 tv->tv_sec += 1; 70 tv->tv_usec -= US_PER_S; 71 } while (tv->tv_usec >=US_PER_S); 142 struct timeval tv; local 184 struct timeval tv; local [all...] |
H A D | app.c | 445 struct timeval tv, *tvp; local 465 tv.tv_sec = 0; 466 tv.tv_usec = 0; 467 tvp = &tv; 480 tv.tv_sec = us / 1000000; 481 tv.tv_usec = us % 1000000; 482 tvp = &tv;
|
H A D | socket.c | 1385 struct timeval tv; 1387 memmove(&tv, timevalp, sizeof(tv)); 1388 dev->timestamp.seconds = tv.tv_sec; 1389 dev->timestamp.nanoseconds = tv.tv_usec * 1000;
|
/bind-9.11.3/contrib/dnsperf-2.1.0.0-1/ |
H A D | os.c | 64 struct timeval tv, *tvp; local 74 tv.tv_sec = timeout / MILLION; 75 tv.tv_usec = timeout % MILLION; 76 tvp = &tv; 99 struct timeval tv, *tvp; local 116 tv.tv_sec = timeout / MILLION; 117 tv.tv_usec = timeout % MILLION; 118 tvp = &tv;
|
H A D | util.h | 115 struct timeval tv; local 116 gettimeofday(&tv, NULL); 117 return tv.tv_sec * MILLION + tv.tv_usec;
|
/bind-9.11.3/bin/tests/virtual-time/ |
H A D | vtwrapper.c | 125 struct timeval now, tv; local 129 absolute_deflate(&now, &tv); 131 tv.tv_sec += vt->tv_sec; 132 tv.tv_usec += vt->tv_usec; 133 while (tv.tv_usec >= 1000000) { 134 tv.tv_sec += 1; 135 tv.tv_usec -= 1000000; 138 absolute_inflate(&tv, rt); 151 struct timeval now, tv; local 161 tv 185 gettimeofday(struct timeval *tv, struct timezone *tz) argument 210 struct timeval tv; local [all...] |
/bind-9.11.3/bin/tests/pkcs11/benchmarks/ |
H A D | random.c | 69 struct timeval tv; local 74 result = gettimeofday(&tv, NULL); 77 tp->tv_sec = tv.tv_sec; 78 tp->tv_nsec = (long) tv.tv_usec * 1000;
|
H A D | find.c | 71 struct timeval tv; local 76 result = gettimeofday(&tv, NULL); 79 tp->tv_sec = tv.tv_sec; 80 tp->tv_nsec = (long) tv.tv_usec * 1000;
|
H A D | login.c | 73 struct timeval tv; local 78 result = gettimeofday(&tv, NULL); 81 tp->tv_sec = tv.tv_sec; 82 tp->tv_nsec = (long) tv.tv_usec * 1000;
|
H A D | session.c | 69 struct timeval tv; local 74 result = gettimeofday(&tv, NULL); 77 tp->tv_sec = tv.tv_sec; 78 tp->tv_nsec = (long) tv.tv_usec * 1000;
|
H A D | sha1.c | 69 struct timeval tv; local 74 result = gettimeofday(&tv, NULL); 77 tp->tv_sec = tv.tv_sec; 78 tp->tv_nsec = (long) tv.tv_usec * 1000;
|
H A D | create.c | 73 struct timeval tv; local 78 result = gettimeofday(&tv, NULL); 81 tp->tv_sec = tv.tv_sec; 82 tp->tv_nsec = (long) tv.tv_usec * 1000;
|
H A D | genrsa.c | 73 struct timeval tv; local 78 result = gettimeofday(&tv, NULL); 81 tp->tv_sec = tv.tv_sec; 82 tp->tv_nsec = (long) tv.tv_usec * 1000;
|
H A D | pubrsa.c | 73 struct timeval tv; local 78 result = gettimeofday(&tv, NULL); 81 tp->tv_sec = tv.tv_sec; 82 tp->tv_nsec = (long) tv.tv_usec * 1000;
|
H A D | verify.c | 73 struct timeval tv; local 78 result = gettimeofday(&tv, NULL); 81 tp->tv_sec = tv.tv_sec; 82 tp->tv_nsec = (long) tv.tv_usec * 1000;
|
H A D | privrsa.c | 73 struct timeval tv; local 78 result = gettimeofday(&tv, NULL); 81 tp->tv_sec = tv.tv_sec; 82 tp->tv_nsec = (long) tv.tv_usec * 1000;
|
H A D | sign.c | 73 struct timeval tv; local 78 result = gettimeofday(&tv, NULL); 81 tp->tv_sec = tv.tv_sec; 82 tp->tv_nsec = (long) tv.tv_usec * 1000;
|
/bind-9.11.3/unit/atf-src/tools/ |
H A D | atf-report.cpp | 67 format_tv(struct timeval* tv) argument 70 output << static_cast< long >(tv->tv_sec) << '.' 72 << static_cast< long >(tv->tv_usec); 144 write_tp_end(struct timeval* tv, const std::string& reason) argument 146 const std::string timestamp = format_tv(tv); 166 write_tc_end(const std::string& state, struct timeval* tv, argument 172 (*m_os) << "tc, " << format_tv(tv) << ", " << str << "\n"; 236 write_tp_end(struct timeval* tv, const std::string& reason) argument 250 (*m_os) << "[" << format_tv(tv) << "s]\n\n"; 266 write_tc_end(const std::string& state, struct timeval* tv, argument 429 write_tp_end(struct timeval* tv, const std::string& reason) argument 456 write_tc_end(const std::string& state, struct timeval* tv, const std::string& reason) argument 536 got_tp_end(struct timeval* tv, const std::string& reason) argument 568 got_tc_end(const std::string& state, struct timeval* tv, const std::string& reason) argument [all...] |
H A D | reader.cpp | 132 struct timeval tv; local 133 tv.tv_sec = string_to_int< long >(t.text().substr(0, divider)); 134 tv.tv_usec = string_to_int< long >(t.text().substr(divider + 1)); 135 return tv; 172 struct timeval* tv ATF_DEFS_ATTRIBUTE_UNUSED, 198 struct timeval* tv ATF_DEFS_ATTRIBUTE_UNUSED,
|
H A D | reader_test.cpp | 66 got_tp_end(struct timeval* tv ATF_DEFS_ATTRIBUTE_UNUSED, 80 struct timeval* tv ATF_DEFS_ATTRIBUTE_UNUSED,
|
H A D | test-program.cpp | 177 struct timeval tv; local 178 if (gettimeofday(&tv, NULL) == -1) 183 static_cast< long >(tv.tv_sec), 184 static_cast< long >(tv.tv_usec));
|
/bind-9.11.3/bin/named/ |
H A D | fuzz.c | 262 struct timeval tv; local 269 tv.tv_sec = 10; 270 tv.tv_usec = 0; 273 rv = select(max, &fds, NULL, NULL, &tv);
|
/bind-9.11.3/contrib/queryperf/ |
H A D | queryperf.c | 1010 set_timenow(struct timeval *tv) { argument 1011 if (gettimeofday(tv, NULL) == -1) { 1014 tv->tv_sec = time(NULL); 1015 tv->tv_usec = 0; 1717 struct timeval tv; local 1735 tv.tv_sec = (long)floor(wait); 1736 tv.tv_usec = (long)(1000000.0 * (wait - floor(wait))); 1738 tv.tv_sec = 0; 1739 tv.tv_usec = 0; 1742 retval = select(maxfd + 1, &read_fds, NULL, NULL, &tv); [all...] |
/bind-9.11.3/lib/isc/tests/ |
H A D | socket_test.c | 109 struct timeval tv; local 115 tv.tv_sec = 0; 116 tv.tv_usec = 1000 ; 117 if (isc__socketmgr_waitevents(socketmgr, &tv, &swait) > 0)
|