Searched refs:tv (Results 276 - 300 of 567) sorted by relevance

<<11121314151617181920>>

/netbsd-6-1-5-RELEASE/external/bsd/wpa/dist/src/utils/
H A Deloop_none.c314 struct os_time tv, now; local
321 os_time_sub(&eloop.timeout->time, &now, &tv);
323 tv.sec = tv.usec = 0;
327 * TODO: wait for any event (read socket ready, timeout (tv),
H A Dos_unix.c53 struct timeval tv; local
54 res = gettimeofday(&tv, NULL);
55 t->sec = tv.tv_sec;
56 t->usec = tv.tv_usec;
/netbsd-6-1-5-RELEASE/lib/libpuffs/
H A Dopdump.c166 struct timeval tv_now, tv; local
251 timersub(&tv_now, &tv_prev, &tv);
253 (long long)tv.tv_sec, (long)tv.tv_usec);
/netbsd-6-1-5-RELEASE/usr.bin/script/
H A Dscript.c315 struct timeval tv; local
317 (void)gettimeofday(&tv, NULL);
319 stamp.scr_sec = tv.tv_sec;
320 stamp.scr_usec = tv.tv_usec;
/netbsd-6-1-5-RELEASE/usr.sbin/iostat/
H A Diostat.c130 struct timespec tv; local
213 tv.tv_sec = interval;
214 tv.tv_nsec = 0;
236 nanosleep(&tv, NULL);
/netbsd-6-1-5-RELEASE/usr.bin/compress/
H A Dcompress.c381 static struct timeval tv[2]; local
385 TIMESPEC_TO_TIMEVAL(&tv[0], &fs->st_atimespec);
386 TIMESPEC_TO_TIMEVAL(&tv[1], &fs->st_mtimespec);
387 if (utimes(name, tv))
/netbsd-6-1-5-RELEASE/sys/kern/
H A Dsubr_cprng.c60 struct timeval tv; local
70 microtime(&tv);
71 return (tv.tv_sec * 1000000 + tv.tv_usec);
/netbsd-6-1-5-RELEASE/crypto/external/bsd/heimdal/dist/kdc/
H A Dprocess.c44 krb5_kdc_update_time(struct timeval *tv) argument
46 if (tv == NULL)
49 _kdc_now = *tv;
/netbsd-6-1-5-RELEASE/dist/dhcp/common/
H A Dcomapi.c350 omapi_value_t *tv = (omapi_value_t *)0; local
358 status = omapi_get_value_str (ref, id, "handle", &tv);
360 status = omapi_handle_td_lookup (lp, tv -> value);
362 omapi_value_dereference (&tv, MDL);
374 status = omapi_get_value_str (ref, id, "name", &tv);
380 tv -> value -> u.buffer.value,
381 tv -> value -> u.buffer.len, MDL)) {
382 omapi_value_dereference (&tv, MDL);
577 omapi_value_t *tv = (omapi_value_t *)0; local
582 status = omapi_get_value_str (ref, id, "handle", &tv);
[all...]
/netbsd-6-1-5-RELEASE/dist/ipf/
H A Darc4random.c160 struct timeval tv; local
162 GETKTIME(&tv);
165 (tv.tv_sec > arc4_t_reseed))
/netbsd-6-1-5-RELEASE/external/bsd/dhcpcd/dist/
H A Dbind.c128 struct timeval tv; local
163 if (gettimeofday(&tv, NULL) == 0)
164 lease->leasedfrom = tv.tv_sec;
H A Dcommon.c232 struct timeval tv; local
234 if (get_monotonic(&tv) == -1)
236 return tv.tv_sec;
/netbsd-6-1-5-RELEASE/external/bsd/ntp/dist/include/
H A Dtimepps-Solaris.h462 struct timeval tv; member in struct:ppsclockev
507 infobuf.assert_timestamp.tv_sec = ev.tv.tv_sec;
508 infobuf.assert_timestamp.tv_nsec = ev.tv.tv_usec * 1000;
H A Dtimepps-SunOS.h396 struct timeval tv; member in struct:ppsclockev
449 infobuf.assert_timestamp.tv_sec = ev.tv.tv_sec;
450 infobuf.assert_timestamp.tv_nsec = ev.tv.tv_usec * 1000;
/netbsd-6-1-5-RELEASE/external/bsd/ntp/dist/libparse/
H A Dparsesolaris.c358 parse->parse_ppsclockev.tv.tv_sec = 0;
359 parse->parse_ppsclockev.tv.tv_usec = 0;
653 c_time.tv.tv_sec = hres_time.tv_sec;
654 c_time.tv.tv_usec = hres_time.tv_nsec / 1000;
734 c_time.tv.tv_sec = hres_time.tv_sec;
735 c_time.tv.tv_usec = hres_time.tv_nsec / 1000;
764 parse->parse_ppsclockev.tv = c_time.tv;
1013 cdevent.tv.tv_sec = hres_time.tv_sec;
1014 cdevent.tv
[all...]
/netbsd-6-1-5-RELEASE/external/bsd/tcpdump/dist/
H A DsctpConstants.h536 #define TIMEVAL_TO_TIMESPEC(tv, ts) \
538 (ts)->tv_sec = (tv)->tv_sec; \
539 (ts)->tv_nsec = (tv)->tv_usec * 1000; \
/netbsd-6-1-5-RELEASE/external/bsd/tmux/dist/
H A Dcmd.c379 struct timeval *tv = NULL; local
383 if (tv == NULL || timercmp(&s->activity_time, tv, >) ||
388 tv = &s->activity_time;
400 struct timeval *tv = NULL; local
408 if (tv == NULL || timercmp(&s->activity_time, tv, >)) {
410 tv = &s->activity_time;
461 struct timeval *tv = NULL; local
471 if (tv
[all...]
/netbsd-6-1-5-RELEASE/sys/compat/common/
H A Dkern_info_43.c222 struct timeval tv; local
262 TIMESPEC_TO_TIMEVAL(&tv, &boottime);
263 timeval_to_timeval50(&tv, &ksi.boottime);
/netbsd-6-1-5-RELEASE/sys/compat/netbsd32/
H A Dnetbsd32_conv.h61 netbsd32_from_timeval50(const struct timeval *tv, argument
65 tv32->tv_sec = (netbsd32_long)tv->tv_sec;
66 tv32->tv_usec = (netbsd32_long)tv->tv_usec;
70 netbsd32_from_timeval(const struct timeval *tv, argument
74 tv32->tv_sec = (time_t)tv->tv_sec;
75 tv32->tv_usec = (suseconds_t)tv->tv_usec;
80 struct timeval *tv)
83 tv->tv_sec = (time_t)tv32->tv_sec;
84 tv->tv_usec = (suseconds_t)tv32->tv_usec;
89 struct timeval *tv)
79 netbsd32_to_timeval50(const struct netbsd32_timeval50 *tv32, struct timeval *tv) argument
88 netbsd32_to_timeval(const struct netbsd32_timeval *tv32, struct timeval *tv) argument
[all...]
/netbsd-6-1-5-RELEASE/sys/dev/ic/
H A Dtpm.c308 struct timeval tv; local
310 tv.tv_sec = tmo / 1000;
311 tv.tv_usec = 1000 * (tmo % 1000);
313 return tvtohz(&tv);
892 struct timeval tv; local
897 tv.tv_sec = TPM_LEGACY_TMO;
898 tv.tv_usec = 0;
899 to = tvtohz(&tv) / TPM_LEGACY_SLEEP;
967 struct timeval tv; local
974 tv
[all...]
/netbsd-6-1-5-RELEASE/usr.bin/who/
H A Dutmpentry.c290 e->tv.tv_sec = up->ut_time;
291 e->tv.tv_usec = 0;
321 e->tv = up->ut_tv;
/netbsd-6-1-5-RELEASE/usr.sbin/rarpd/
H A Dmkarp.c188 struct timeval tv; local
205 (void)gettimeofday(&tv, 0);
206 rtm->rtm_rmx.rmx_expire = tv.tv_sec + 20 * 60;
/netbsd-6-1-5-RELEASE/usr.sbin/screenblank/
H A Dscreenblank.c95 struct timespec timo_on, timo_off, *tvp, tv; local
277 tv = *tvp;
278 if (nanosleep(&tv, NULL) == -1)
/netbsd-6-1-5-RELEASE/usr.bin/kdump/
H A Dkdump.c333 struct timeval tv; member in union:holdtime
395 if (prevtime.tv.tv_sec == 0)
396 temp.tv.tv_sec = temp.tv.tv_usec = 0;
399 &prevtime.tv, &temp.tv);
400 prevtime.tv.tv_sec = kth->ktr_otv.tv_sec;
401 prevtime.tv.tv_usec = kth->ktr_otv.tv_usec;
427 temp.tv.tv_sec = kth->ktr_otv.tv_sec;
428 temp.tv
[all...]
/netbsd-6-1-5-RELEASE/sys/nfs/
H A Dnfs_syscalls.c421 struct timeval tv; local
510 getmicrotime(&tv);
511 cur_usec = (u_quad_t)tv.tv_sec * 1000000 +
512 (u_quad_t)tv.tv_usec;
674 getmicrotime(&tv);
675 cur_usec = (u_quad_t)tv.tv_sec * 1000000 +
676 (u_quad_t)tv.tv_usec;
877 struct timeval tv; local
896 getmicrotime(&tv);
897 rt->resptime = ((tv
[all...]

Completed in 195 milliseconds

<<11121314151617181920>>