/netbsd-6-1-5-RELEASE/bin/dd/ |
H A D | misc.c | 60 #define tv2mS(tv) ((tv).tv_sec * 1000LL + ((tv).tv_usec + 500) / 1000) 99 struct timeval tv; local 104 (void)gettimeofday(&tv, NULL); 105 mS = tv2mS(tv) - tv2mS(st.start); 199 struct timeval tv; local 201 (void)gettimeofday(&tv, NULL); 202 mS = tv2mS(tv) - tv2mS(st.start);
|
/netbsd-6-1-5-RELEASE/crypto/dist/ipsec-tools/src/racoon/ |
H A D | schedule.c | 64 sched_get_monotonic_time(tv) 65 struct timeval *tv; 71 tv->tv_sec = ts.tv_sec; 72 tv->tv_usec = ts.tv_nsec / 1000; 74 gettimeofday(tv, NULL); 79 sched_monotonic_to_time_t(tv, now) 80 struct timeval *tv, *now; 89 timersub(now, tv, &res); 93 return tv->tv_sec;
|
H A D | schedule.h | 87 time_t sched_monotonic_to_time_t __P((struct timeval *tv, 89 void sched_get_monotonic_time __P((struct timeval *tv));
|
/netbsd-6-1-5-RELEASE/external/bsd/libevent/dist/ |
H A D | event.c | 432 event_loopexit(const struct timeval *tv) argument 435 current_base, tv)); 439 event_base_loopexit(struct event_base *event_base, const struct timeval *tv) argument 442 event_base, tv)); 477 struct timeval tv; local 511 timeout_correct(base, &tv); 513 tv_p = &tv; 521 evutil_timerclear(&tv); 582 void (*callback)(int, short, void *), void *arg, const struct timeval *tv) 584 return event_base_once(current_base, fd, events, callback, arg, tv); 581 event_once(int fd, short events, void (*callback)(int, short, void *), void *arg, const struct timeval *tv) argument 589 event_base_once(struct event_base *base, int fd, short events, void (*callback)(int, short, void *), void *arg, const struct timeval *tv) argument 693 event_pending(struct event *ev, short event, struct timeval *tv) argument 720 event_add(struct event *ev, const struct timeval *tv) argument 857 struct timeval *tv = *tv_p; local 889 timeout_correct(struct event_base *base, struct timeval *tv) argument [all...] |
/netbsd-6-1-5-RELEASE/dist/dhcp/omapip/ |
H A D | message.c | 394 omapi_value_t *tv = (omapi_value_t *)0; local 449 "type", &tv); 451 (tv -> value -> type == omapi_datatype_data || 452 tv -> value -> type == omapi_datatype_string)) { 455 if (!omapi_td_strcmp (tv -> value, 460 if (tv) 461 omapi_value_dereference (&tv, MDL); 475 "create", &tv); 477 status = omapi_get_int_value (&create, tv -> value); 478 omapi_value_dereference (&tv, MD [all...] |
/netbsd-6-1-5-RELEASE/external/bsd/dhcpcd/dist/ |
H A D | eloop.c | 176 struct timeval tv; local 178 tv.tv_sec = when; 179 tv.tv_usec = 0; 180 add_q_timeout_tv(queue, &tv, callback, arg); 288 struct timeval tv; local 307 timersub(&timeouts->when, &now, &tv); 308 if (tv.tv_sec > INT_MAX / 1000 || 309 (tv.tv_sec == INT_MAX / 1000 && 310 (tv.tv_usec + 999) / 1000 > INT_MAX % 1000)) 313 msecs = tv [all...] |
/netbsd-6-1-5-RELEASE/external/gpl2/xcvs/dist/lib/ |
H A D | gettimeofday.c | 87 rpl_gettimeofday (struct timeval *tv, struct timezone *tz) argument 99 result = gettimeofday (tv, tz);
|
/netbsd-6-1-5-RELEASE/gnu/dist/texinfo/lib/ |
H A D | tempname.c | 125 struct timeval tv; \ 126 __gettimeofday (&tv, NULL); \ 127 value = ((uint64_t) tv.tv_usec << 16) ^ tv.tv_sec; \ 271 struct timeval tv; local 272 __gettimeofday (&tv, NULL); 273 random_time_bits = ((uint64_t) tv.tv_usec << 16) ^ tv.tv_sec;
|
/netbsd-6-1-5-RELEASE/gnu/dist/diffutils/lib/ |
H A D | tempname.c | 123 struct timeval tv; \ 124 __gettimeofday (&tv, NULL); \ 125 value = ((uint64_t) tv.tv_usec << 16) ^ tv.tv_sec; \ 269 struct timeval tv; local 270 __gettimeofday (&tv, NULL); 271 random_time_bits = ((uint64_t) tv.tv_usec << 16) ^ tv.tv_sec;
|
/netbsd-6-1-5-RELEASE/usr.sbin/bthcid/ |
H A D | client.c | 185 struct timeval tv; local 244 tv.tv_sec = PIN_TIMEOUT; 245 tv.tv_usec = 0; 247 if (evtimer_add(&item->ev, &tv) < 0) { 262 struct timeval tv; local 294 tv.tv_sec = cp.time; 295 tv.tv_usec = 0; 297 if (evtimer_add(&item->ev, &tv) < 0) {
|
/netbsd-6-1-5-RELEASE/usr.bin/nvi/build/ |
H A D | port.h | 39 #define gettimeofday(tv, tz) gettimeofday(tv)
|
/netbsd-6-1-5-RELEASE/share/mk/ |
H A D | bsd.init.mk | 1 # $NetBSD: bsd.init.mk,v 1.1 2001/11/02 05:21:50 tv Exp $
|
/netbsd-6-1-5-RELEASE/external/bsd/am-utils/dist/amd/ |
H A D | amfs_host.c | 210 struct timeval tv; local 220 tv.tv_sec = 20; 221 tv.tv_usec = 0; 240 tv); 263 tv); 318 struct timeval tv; local 363 tv.tv_sec = 2; 364 tv.tv_usec = 0; 369 client = get_mount_client(host, &sin, &tv, &sock, mnt_version); 640 struct timeval tv; local [all...] |
/netbsd-6-1-5-RELEASE/usr.sbin/mtree/ |
H A D | compare.c | 299 struct timeval tv[2]; local 306 TIMESPEC_TO_TIMEVAL(&tv[0], &s->st_mtimespec); 307 TIMESPEC_TO_TIMEVAL(&tv[1], &ps->st_mtimespec); 311 tv[0].tv_sec = smtime; 312 tv[0].tv_usec = 0; 313 tv[1].tv_sec = pmtime; 314 tv[1].tv_usec = 0; 317 if (tv[0].tv_sec != tv[1].tv_sec || 318 tv[ [all...] |
/netbsd-6-1-5-RELEASE/crypto/external/bsd/heimdal/dist/kdc/ |
H A D | kdc-replay.c | 124 struct timeval tv; local 171 tv.tv_sec = t; 172 tv.tv_usec = 0; 174 krb5_kdc_update_time(&tv); 175 krb5_set_real_time(context, tv.tv_sec, 0);
|
/netbsd-6-1-5-RELEASE/external/bsd/ntp/dist/kernel/ |
H A D | tty_clk.c | 162 struct timeval tv; local 190 microtime(&tv); 202 if (putc(*( ((char*)&tv) + i ), &clk->clkbuf) == -1) 209 s = tv.tv_sec; 216 s = tv.tv_usec;
|
/netbsd-6-1-5-RELEASE/external/gpl3/gdb/dist/bfd/ |
H A D | plugin.c | 128 struct ld_plugin_tv tv[tv_size]; local 145 tv[i].tv_tag = LDPT_MESSAGE; 146 tv[i].tv_u.tv_message = message; 149 tv[i].tv_tag = LDPT_REGISTER_CLAIM_FILE_HOOK; 150 tv[i].tv_u.tv_register_claim_file = register_claim_file; 153 tv[i].tv_tag = LDPT_ADD_SYMBOLS; 154 tv[i].tv_u.tv_add_symbols = add_symbols; 157 tv[i].tv_tag = LDPT_NULL; 158 tv[i].tv_u.tv_val = 0; 160 status = (*onload)(tv); [all...] |
/netbsd-6-1-5-RELEASE/external/bsd/atf/dist/atf-report/ |
H A D | atf-report.cpp | 69 format_tv(struct timeval* tv) argument 72 output << static_cast< long >(tv->tv_sec) << '.' 74 << static_cast< long >(tv->tv_usec); 146 write_tp_end(struct timeval* tv, const std::string& reason) argument 148 const std::string timestamp = format_tv(tv); 168 write_tc_end(const std::string& state, struct timeval* tv, argument 174 (*m_os) << "tc, " << format_tv(tv) << ", " << str << "\n"; 238 write_tp_end(struct timeval* tv, const std::string& reason) argument 252 (*m_os) << "[" << format_tv(tv) << "s]\n\n"; 268 write_tc_end(const std::string& state, struct timeval* tv, argument 425 write_tp_end(struct timeval* tv, const std::string& reason) argument 452 write_tc_end(const std::string& state, struct timeval* tv, const std::string& reason) argument 532 got_tp_end(struct timeval* tv, const std::string& reason) argument 564 got_tc_end(const std::string& state, struct timeval* tv, const std::string& reason) argument [all...] |
/netbsd-6-1-5-RELEASE/tests/lib/libpthread/ |
H A D | t_cond.c | 456 struct timeval tv; local 463 gettimeofday(&tv, NULL); 464 tv.tv_sec -= 2; /* Place the time in the past */ 465 TIMEVAL_TO_TIMESPEC(&tv, &ts); 472 tv.tv_sec = 0; 473 tv.tv_usec = 0; 474 TIMEVAL_TO_TIMESPEC(&tv, &ts); 485 gettimeofday(&tv, NULL); 486 tv.tv_sec -= 2; /* Place the time in the past */ 487 TIMEVAL_TO_TIMESPEC(&tv, [all...] |
/netbsd-6-1-5-RELEASE/bin/date/ |
H A D | date.c | 190 struct timeval tv; local 313 tv.tv_sec = new_time - tval; 314 tv.tv_usec = 0; 315 if (adjtime(&tv, NULL)) 319 tv.tv_sec = tval; 320 tv.tv_usec = 0; 321 if (settimeofday(&tv, NULL))
|
/netbsd-6-1-5-RELEASE/external/bsd/ntp/dist/include/ |
H A D | timepps-SCO.h | 394 struct timeval tv; local 427 if (ioctl(instance->filedes, TIOCDCDTIMESTAMP, &tv) < 0) { 437 if (tv.tv_sec != handle->tv_save.tv_sec || tv.tv_usec != handle->tv_save.tv_usec) { 438 handle->tv_save = tv; 448 infobuf.assert_timestamp.tv_sec = tv.tv_sec; 449 infobuf.assert_timestamp.tv_nsec = tv.tv_usec * 1000;
|
/netbsd-6-1-5-RELEASE/sys/arch/sgimips/dev/ |
H A D | dpclock.c | 127 dpclock_gettime(struct todr_chip_handle *todrch, struct timeval *tv) argument 176 tv->tv_sec = (long)clock_ymdhms_to_secs(&dt); 177 if (tv->tv_sec == -1) 179 tv->tv_usec = 0; 188 dpclock_settime(struct todr_chip_handle *todrch, struct timeval *tv) argument 196 clock_secs_to_ymdhms((time_t)(tv->tv_sec + (tv->tv_usec > 500000)),&dt);
|
/netbsd-6-1-5-RELEASE/sbin/newfs/ |
H A D | mkfs.c | 184 struct timeval tv; local 190 gettimeofday(&tv, NULL); 508 sblock.fs_id[0] = (long)tv.tv_sec; /* XXXfvdl huh? */ 524 sblock.fs_time = tv.tv_sec; 526 sblock.fs_old_time = tv.tv_sec; 630 tv.tv_sec, 0); 675 initcg(cylno, &tv); 718 if (fsinit(&tv, mfsmode, mfsuid, mfsgid) == 0 && mfs) 720 sblock.fs_time = tv.tv_sec; 761 initcg(int cylno, const struct timeval *tv) argument 1023 fsinit(const struct timeval *tv, mode_t mfsmode, uid_t mfsuid, gid_t mfsgid) argument [all...] |
/netbsd-6-1-5-RELEASE/external/bsd/ntp/dist/sntp/ |
H A D | utilities.c | 146 * Converts a struct tv to a date string 150 const struct timeval *tv 164 gmt_time = tv->tv_sec; 183 (int)tv->tv_usec,
|
/netbsd-6-1-5-RELEASE/usr.bin/rump_dhcpclient/ |
H A D | common.c | 144 struct timeval tv; local 146 if (get_monotonic(&tv) == -1) 148 return tv.tv_sec;
|