/illumos-gate/usr/src/uts/common/cpr/ |
H A D | cpr_stat.c | 52 cpr_time_t tv; local 55 tv = *ctp; 58 cpr_tod_get(&tv); 72 cep->ce_sec.stime = cep->ce_sec.etime = tv.tv_sec; 74 cep->ce_msec.stime = cep->ce_msec.etime = tv.tv_nsec / 100000000; 83 cpr_time_t tv; local 86 tv = *ctp; 88 cpr_tod_get(&tv); 109 cep->ce_sec.etime = tv.tv_sec; 118 cep->ce_msec.etime = tv [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.talkd/ |
H A D | in.talkd.c | 76 struct timeval tv; local 81 tv.tv_sec = MAX_LIFE; 82 tv.tv_usec = 0; 85 if (select(1, &rfds, 0, 0, &tv) <= 0)
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/traceroute/ |
H A D | traceroute.h | 78 struct timeval tv; /* time packet left */ member in struct:outdata
|
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | ufn.c | 364 struct timeval tv; local 366 tv.tv_sec = ld->ld_timelimit; 370 ld->ld_timelimit ? (void *) &tv : NULL, 452 struct timeval tv; local 470 tv.tv_sec = 0; 471 tv.tv_usec = 100000; /* 1/10 of a second */ 474 *err = ldap_result( ld, msgid, 1, &tv, &tmpres ); 530 struct timeval *tv; local 532 tv = (struct timeval *)tvparam; 534 if ( tv [all...] |
/illumos-gate/usr/src/cmd/auditreduce/ |
H A D | proc.c | 629 struct timeval tv; local 714 tv.tv_sec = (time_t)secs; 715 tv.tv_usec = (suseconds_t)msecs; 725 tv.tv_sec = (time_t)secs; 726 tv.tv_usec = (suseconds_t)msecs; 734 tv.tv_sec = 0; 736 tv.tv_sec = (time_t)secs; 739 tv.tv_usec = 0; 741 tv.tv_usec = (suseconds_t)msecs; 743 tv [all...] |
/illumos-gate/usr/src/cmd/fs.d/ufs/quota/ |
H A D | quota.c | 440 struct timeval tv; local 442 time(&(tv.tv_sec)); 443 tv.tv_usec = 0; 453 } else if (dqp->dqb_btimelimit > tv.tv_sec) { 456 fmttime(btimeleft, dqp->dqb_btimelimit - tv.tv_sec); 479 } else if (dqp->dqb_ftimelimit > tv.tv_sec) { 482 fmttime(ftimeleft, dqp->dqb_ftimelimit - tv.tv_sec); 519 struct timeval tv; local 523 time(&(tv.tv_sec)); 524 tv 781 struct timeval tv; local [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | timers.c | 85 uniqtime(struct timeval *tv) argument 144 tv->tv_sec = sec; 145 tv->tv_usec = usec; 157 struct timeval tv; local 159 uniqtime(&tv); 160 TIMEVAL_TO_TIMEVAL32(tv32p, &tv); 740 itimerfix(struct timeval *tv, int minimum) argument 742 if (tv->tv_sec < 0 || tv->tv_sec > 100000000 || 743 tv 757 itimerspecfix(timespec_t *tv) argument 879 hzto(struct timeval *tv) argument 895 timespectohz(timespec_t *tv, timespec_t now) argument 941 timespectohz64(timespec_t *tv) argument [all...] |
/illumos-gate/usr/src/lib/libast/common/path/ |
H A D | pathtemp.c | 74 #include <tv.h> 115 Tv_t tv; local 182 tv.tv_nsec = 0; 184 tvgettime(&tv); 317 key = tmp.rng * tmp.key + tv.tv_nsec; 319 tvgettime(&tv); 320 tmp.key = tmp.rng * key + tv.tv_nsec;
|
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_time.c | 227 struct timeval tv; local 231 (void) gettimeofday(&tv, NULL); 233 fts->fts_tod = (hrtime_t)tv.tv_sec * NANOSEC + 234 (hrtime_t)tv.tv_usec * (NANOSEC / MICROSEC); 240 tv.tv_sec, fts->fts_tod); 355 timespec_t tv; local 357 tv.tv_sec = delta / NANOSEC; 358 tv.tv_nsec = delta % NANOSEC; 360 (void) nanosleep(&tv, NULL);
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | time.h | 61 #define TIMEVAL32_TO_TIMEVAL(tv, tv32) { \ 62 (tv)->tv_sec = (time_t)(tv32)->tv_sec; \ 63 (tv)->tv_usec = (tv32)->tv_usec; \ 66 #define TIMEVAL_TO_TIMEVAL32(tv32, tv) { \ 67 (tv32)->tv_sec = (time32_t)(tv)->tv_sec; \ 68 (tv32)->tv_usec = (int32_t)(tv)->tv_usec; \ 74 #define TIMEVAL_OVERFLOW(tv) \ 75 ((tv)->tv_sec < TIME32_MIN || (tv)->tv_sec > TIME32_MAX)
|
/illumos-gate/usr/src/lib/fm/libfmd_snmp/common/ |
H A D | resource.c | 577 struct timeval tv; local 579 tv.tv_sec = UPDATE_WAIT_MILLIS / 1000; 580 tv.tv_usec = (UPDATE_WAIT_MILLIS % 1000) * 1000; 582 (void) snmp_alarm_register_hr(tv, 0, sunFmResourceTable_return, 683 struct timeval tv; local 685 tv.tv_sec = UPDATE_WAIT_MILLIS / 1000; 686 tv.tv_usec = (UPDATE_WAIT_MILLIS % 1000) * 1000; 698 (void) snmp_alarm_register_hr(tv, 0, sunFmResourceTable_return, 719 struct timeval tv; local 721 tv 768 struct timeval tv; local [all...] |
H A D | problem.c | 708 struct timeval tv; local 710 tv.tv_sec = UPDATE_WAIT_MILLIS / 1000; 711 tv.tv_usec = (UPDATE_WAIT_MILLIS % 1000) * 1000; 713 (void) snmp_alarm_register_hr(tv, 0, sunFmProblemTable_return, 835 struct timeval tv; local 837 tv.tv_sec = UPDATE_WAIT_MILLIS / 1000; 838 tv.tv_usec = (UPDATE_WAIT_MILLIS % 1000) * 1000; 850 (void) snmp_alarm_register_hr(tv, 0, 876 struct timeval tv; local 878 tv 1062 struct timeval tv; local [all...] |
/illumos-gate/usr/src/lib/gss_mechs/mech_dh/dh_common/ |
H A D | generic_key.c | 61 struct timeval tv; local 63 (void) gettimeofday(&tv, (struct timezone *)NULL); 64 rseed = tv.tv_sec + tv.tv_usec;
|
/illumos-gate/usr/src/lib/libast/common/port/ |
H A D | touch.c | 43 #include <tv.h>
|
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | auth_time.c | 201 struct timeval tv; local 410 tv.tv_sec = 5; 411 tv.tv_usec = 0; 415 xdr_u_int, (char *)&thetime, tv); 642 (void) gettimeofday(&tv, 0); 645 tv.tv_sec += (tv.tv_sec > 500000) ? 1 : 0; 646 delta = (thetime > tv.tv_sec) ? thetime - tv.tv_sec : 647 tv [all...] |
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | srvsvc_clnt.c | 419 struct timeval tv; local 427 &tv, &tm) != 0) 430 if (settimeofday(&tv, 0)) 435 smb_tracef("SrvsvcTimeSync %s", ctime((time_t *)&tv.tv_sec)); 445 struct timeval tv; local 452 &tv, &tm) != 0) 455 *t = tv.tv_sec; 488 srvsvc_net_remote_tod(char *server, char *domain, struct timeval *tv, argument 529 if (tv) { 530 tv [all...] |
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | select.c | 285 select(int nfds, fd_set *in0, fd_set *out0, fd_set *ex0, struct timeval *tv) argument 290 if (tv == NULL) 294 if (tv->tv_usec < 0 || tv->tv_usec >= MICROSEC) { 305 ts.tv_sec = tv->tv_sec; 306 ts.tv_nsec = tv->tv_usec * 1000;
|
H A D | select_large_fdset.c | 337 struct timeval *tv) 342 if (tv == NULL) 346 if (tv->tv_usec < 0 || tv->tv_usec >= MICROSEC) { 357 ts.tv_sec = tv->tv_sec; 358 ts.tv_nsec = tv->tv_usec * 1000; 336 select_large_fdset(int nfds, fd_set *in0, fd_set *out0, fd_set *ex0, struct timeval *tv) argument
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wpad/ |
H A D | eloop.c | 241 struct timeval tv, now; local 249 timersub(&eloop.timeout->time, &now, &tv); 251 tv.tv_sec = tv.tv_usec = 0; 255 default_t : (tv.tv_sec * 1000 + tv.tv_usec / 1000));
|
/illumos-gate/usr/src/uts/common/io/bpf/ |
H A D | bpf.c | 1059 struct timeval32 tv; local 1061 if (copyin((void *)addr, &tv, sizeof (tv)) != 0) { 1067 d->bd_rtout = drv_usectohz(tv.tv_sec * 1000000 + 1068 tv.tv_usec); 1069 if ((d->bd_rtout == 0) && (tv.tv_usec != 0)) 1079 struct timeval32 tv; local 1083 tv.tv_sec = ticks / 1000000; 1084 tv.tv_usec = ticks - (tv 1139 struct timeval tv; local 1159 struct timeval tv; local 1483 struct timeval tv; local 1563 catchpacket(struct bpf_d *d, uchar_t *pkt, uint_t pktlen, uint_t snaplen, cp_fn_t cpfn, struct timeval *tv) argument [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/ |
H A D | ilbadm_hc.c | 191 struct tm tv; local 226 if (localtime_r(&srv->hcs_lasttime, &tv) == NULL) 228 (void) snprintf(buf, bufsize, "%02d:%02d:%02d", tv.tm_hour, 229 tv.tm_min, tv.tm_sec); 234 if (localtime_r(&srv->hcs_nexttime, &tv) == NULL) 236 (void) snprintf(buf, bufsize, "%02d:%02d:%02d", tv.tm_hour, 237 tv.tm_min, tv.tm_sec);
|
/illumos-gate/usr/src/cmd/tip/aculib/ |
H A D | ventel.c | 198 struct timeval tv = {0, 500000}; local 200 (void) select(0, 0, 0, 0, &tv);
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_work.c | 54 struct timespec tv; local 85 tv.tv_sec = (earliest - now) / NANOSEC; 86 tv.tv_nsec = (earliest - now) % NANOSEC; 89 * Wait for either 'tv' nanoseconds to pass or to receive notification 93 (void) pthread_cond_reltimedwait_np(&dph->dph_cv, &dph->dph_lock, &tv);
|
/illumos-gate/usr/src/lib/libnsl/key/ |
H A D | gen_dhkeys.c | 72 struct timeval tv; local 74 (void) gettimeofday(&tv, (struct timezone *)NULL); 75 rseed = tv.tv_sec + tv.tv_usec;
|
/illumos-gate/usr/src/cmd/lms/heci/ |
H A D | HECIUnix.cpp | 246 struct timeval tv; local 248 tv.tv_sec = timeout / 1000; 249 tv.tv_usec =(timeout % 1000) * 1000000; 267 rv = select(_fd+1 ,&set, NULL, NULL, &tv);
|