Home
last modified time | relevance | path

Searched refs:tv (Results 51 – 75 of 186) sorted by relevance

12345678

/illumos-gate/usr/src/lib/libresolv2/common/isc/
H A Dev_timers.c143 evTimeSpec(struct timeval tv) { in evTimeSpec() argument
146 ts.tv_sec = tv.tv_sec; in evTimeSpec()
147 ts.tv_nsec = tv.tv_usec * 1000; in evTimeSpec()
153 struct timeval tv; in evTimeVal() local
155 tv.tv_sec = ts.tv_sec; in evTimeVal()
156 tv.tv_usec = ts.tv_nsec / 1000; in evTimeVal()
157 return (tv); in evTimeVal()
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/
H A Dclnt_subr.c35 mountprog_client_create(const char *host, struct timeval *tv) in mountprog_client_create() argument
55 (void) __rpc_control(CLCR_SET_RPCB_TIMEOUT, tv); in mountprog_client_create()
/illumos-gate/usr/src/lib/libsasl/lib/
H A Dsaslutil.c377 struct timeval tv; in getranddata() local
381 if (!gettimeofday(&tv)) in getranddata()
383 if (!gettimeofday(&tv, NULL)) in getranddata()
388 ret[0] ^= (unsigned short) (tv.tv_sec & 0xFFFF); in getranddata()
390 ret[1] ^= (unsigned short) (tv.tv_usec >> 16); in getranddata()
391 ret[2] ^= (unsigned short) (tv.tv_usec & 0xFFFF); in getranddata()
/illumos-gate/usr/src/grub/grub-0.97/grub/
H A Dasmstub.c499 struct timeval tv; in currticks() local
506 gettimeofday (&tv, 0); in currticks()
509 csecs = tv.tv_sec / 10; in currticks()
515 ticks_per_usec = (((tv.tv_sec - csecs * 10) * 1000000 + tv.tv_usec) in currticks()
1057 struct timeval otv, tv; in serial_hw_delay() local
1065 gettimeofday (&tv, 0); in serial_hw_delay()
1066 delta = tv.tv_usec - otv.tv_usec; in serial_hw_delay()
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_work.c52 struct timespec tv; in dtrace_sleep() local
83 tv.tv_sec = (earliest - now) / NANOSEC; in dtrace_sleep()
84 tv.tv_nsec = (earliest - now) % NANOSEC; in dtrace_sleep()
91 (void) pthread_cond_reltimedwait_np(&dph->dph_cv, &dph->dph_lock, &tv); in dtrace_sleep()
/illumos-gate/usr/src/lib/libnsl/nis/gen/
H A Dnis_subr.c682 struct timeval tv; /* Timeout for our rpcb call */ in __map_addr() local
708 tv.tv_sec = 3; in __map_addr()
709 tv.tv_usec = 0; in __map_addr()
710 (void) clnt_control(client, CLSET_RETRY_TIMEOUT, (char *)&tv); in __map_addr()
712 tv.tv_sec = 10; in __map_addr()
713 tv.tv_usec = 0; in __map_addr()
720 xdr_wrapstring, (char *)&ua, tv); in __map_addr()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ping/
H A Dping_aux.c234 struct timeval tv; in check_reply() local
288 ping_gettime(msg, &tv); in check_reply()
480 (void) tvsub(&tv, tp); in check_reply()
481 triptime = (int64_t)tv.tv_sec * MICROSEC + tv.tv_usec; in check_reply()
680 (void) tvsub(&tv, tp); in check_reply()
681 triptime = (int64_t)tv.tv_sec * MICROSEC + tv.tv_usec; in check_reply()
998 triptime = (tv.tv_sec % (24LL * 60 * 60)) * MILLISEC + in check_reply()
999 (tv.tv_usec / (MICROSEC/MILLISEC)); in check_reply()
H A Dping_aux6.c272 struct timeval tv; in check_reply6() local
315 ping_gettime(msg, &tv); in check_reply6()
519 (void) tvsub(&tv, tp); in check_reply6()
520 triptime = (int64_t)tv.tv_sec * MICROSEC + tv.tv_usec; in check_reply6()
821 (void) tvsub(&tv, tp); in check_reply6()
822 triptime = (int64_t)tv.tv_sec * MICROSEC + tv.tv_usec; in check_reply6()
/illumos-gate/usr/src/lib/udapl/udapl_tavor/common/
H A Ddapl_osd.c113 struct timeval tv; in dapl_os_get_time() local
117 (void) gettimeofday(&tv, &tz); in dapl_os_get_time()
118 *loc = ((DAT_UINT64)(tv.tv_sec) * 1000000L) + (DAT_UINT64) tv.tv_usec; in dapl_os_get_time()
/illumos-gate/usr/src/lib/libuuid/common/
H A Duuid.c609 struct timeval tv; in uuid_time() local
626 tv.tv_sec = clock_reg / 10000000; in uuid_time()
627 tv.tv_usec = (clock_reg % 10000000) / 10; in uuid_time()
630 *ret_tv = tv; in uuid_time()
633 return (tv.tv_sec); in uuid_time()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.rarpd.c106 struct timeval tv; /* send RARP reply by when */ member
634 (void) gettimeofday(&rrp->tv, NULL); in rarp_request()
635 rrp->tv.tv_sec += 3; /* delay */ in rarp_request()
758 struct timeval tv; in do_delay_write() local
776 (void) gettimeofday(&tv, NULL); in do_delay_write()
777 if (tv.tv_sec < rrp->tv.tv_sec) in do_delay_write()
778 (void) sleep(rrp->tv.tv_sec - tv.tv_sec); in do_delay_write()
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_log.c162 struct timeval tv; in _nscd_logit() local
194 if (gettimeofday(&tv, NULL) != 0 || in _nscd_logit()
195 ctime_r(&tv.tv_sec, buffer, LOGBUFLEN) == NULL) { in _nscd_logit()
210 tv.tv_usec/100, tid_buf, pid_buf, in _nscd_logit()
/illumos-gate/usr/src/cmd/sgs/rtld/common/
H A Dexternal.c738 gettimeofday(struct timeval *tv, void *tz) in gettimeofday() argument
740 if (tv != NULL) { in gettimeofday()
746 (void) __clock_gettime_sys(CLOCK_REALTIME, (timespec_t *)tv); in gettimeofday()
747 tv->tv_usec /= 1000; in gettimeofday()
/illumos-gate/usr/src/cmd/hal/hald/
H A Dhald.c303 struct timeval tv; in parent_wait_for_child() local
327 tv.tv_sec = 250; in parent_wait_for_child()
328 tv.tv_usec = 0; in parent_wait_for_child()
330 retval = select (child_fd + 1, &rfds, NULL, &efds, &tv); in parent_wait_for_child()
/illumos-gate/usr/src/test/libc-tests/tests/select/
H A Dselect_test.c53 struct timeval tv = {0, 0}; in main() local
118 if (select(maxfd + 1, sread, swrite, serr, &tv) == -1) in main()
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/pppoe/
H A Dpppoec.c1402 struct timeval tv, tvnow; in find_server() local
1449 tv = tvnow; in find_server()
1450 if ((tv.tv_sec -= tvstart.tv_sec) < 0) { in find_server()
1452 tv.tv_sec = 1; in find_server()
1453 tv.tv_usec = 0; in find_server()
1454 } else if ((tv.tv_usec -= tvstart.tv_usec) < 0) { in find_server()
1455 tv.tv_usec += 1000000; in find_server()
1456 if (--tv.tv_sec < 0) in find_server()
1457 tv.tv_sec = 0; in find_server()
1459 psm.poesm_timer -= tv.tv_sec*1000 + tv.tv_usec/1000; in find_server()
/illumos-gate/usr/src/ucbcmd/touch/
H A Dtouch.c350 timestruc_to_timeval(timestruc_t *ts, struct timeval *tv) in timestruc_to_timeval() argument
352 tv->tv_sec = ts->tv_sec; in timestruc_to_timeval()
353 tv->tv_usec = ts->tv_nsec / 1000; in timestruc_to_timeval()
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dparseaddr.c1953 buildaddr(tv, a, flags, e) in buildaddr() argument
1954 register char **tv; in buildaddr()
1985 if (*tv == NULL || (**tv & 0377) != CANONNET)
2009 mname = *++tv;
2013 if (*++tv != NULL && (**tv & 0377) == CANONHOST)
2015 hostp = ++tv;
2021 while (*tv != NULL && (**tv & 0377) != CANONUSER)
2023 tv++;
2026 if (*tv == NULL)
2031 if (tv == hostp)
[all …]
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_ctf.c661 type_visit_t tv; in type_cb() local
663 tv.tv_cb = tvp->tv_cb; in type_cb()
664 tv.tv_arg = tvp->tv_arg; in type_cb()
672 type_cb, &tv); in type_cb()
681 type_visit_t tv; in mdb_ctf_type_visit() local
684 tv.tv_cb = func; in mdb_ctf_type_visit()
685 tv.tv_arg = arg; in mdb_ctf_type_visit()
686 tv.tv_fp = idp->mci_fp; in mdb_ctf_type_visit()
687 tv.tv_base_offset = 0; in mdb_ctf_type_visit()
688 tv.tv_base_depth = 0; in mdb_ctf_type_visit()
[all …]
/illumos-gate/usr/src/cmd/ipf/tools/
H A Dipmon_y.y461 struct timeval tv; local
490 gettimeofday(&tv, NULL);
491 t1 = tv.tv_sec - a->ac_lastsec;
492 if (tv.tv_usec <= a->ac_lastusec)
497 a->ac_lastsec = tv.tv_sec;
498 a->ac_lastusec = tv.tv_usec;
/illumos-gate/usr/src/cmd/auditreduce/
H A Dmain.c713 struct timeval tv; /* time now */ in write_file_token() local
723 tv.tv_sec = when; in write_file_token()
724 tv.tv_usec = 0; in write_file_token()
728 adr_int64(&adr, (int64_t *)&tv, 2); in write_file_token()
730 adr_int32(&adr, (int32_t *)&tv, 2); in write_file_token()
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/include/
H A Dk5-thread.h251 struct timeval tv; in get_current_time() local
252 if (gettimeofday(&tv,0) < 0) { tv.tv_sec = tv.tv_usec = 0; } in get_current_time()
253 return tv; in get_current_time()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/tests/
H A Dcomvario.sh602 nameref tv=test_variants[i]
607 …pat} ]] || err_exit "${tv.testname}: Expected stdout of $(printf '%q\n' "${tv.cmd}") to match $(pr…
609 … || err_exit "${tv.testname}: Expected empty stderr for $(printf '%q\n' "${tv.cmd}"), got $(printf…
610 …0 )) || err_exit "${tv.testname}: Unexpected exit code ${out.res} for $(printf '%q\n' "${tv.cmd}")"
/illumos-gate/usr/src/cmd/date/
H A Ddate.c91 struct timeval tv; in main() local
108 if (get_adj(optarg, &tv) < 0) { in main()
180 if (adjtime(&tv, 0) < 0) { in main()
/illumos-gate/usr/src/cmd/tip/aculib/
H A Dventel.c196 struct timeval tv = {0, 500000}; in vensync() local
198 (void) select(0, 0, 0, 0, &tv); in vensync()

12345678