Searched refs:tv (Results 1 - 25 of 187) sorted by path

12345678

/illumos-gate/usr/src/boot/include/net/
H A Dif.h109 struct timeval tv; member in union:if_data::__anon25
115 #define ifi_lastchange __ifi_lastchange.tv
/illumos-gate/usr/src/boot/sys/boot/efi/libefi/
H A Dtime.c212 struct timeval tv; local
213 EFI_GetTimeOfDay(&tv, 0);
216 *tloc = tv.tv_sec;
217 return tv.tv_sec;
/illumos-gate/usr/src/boot/sys/sys/
H A Dtime.h445 int itimerfix(struct timeval *tv);
450 int tvtohz(struct timeval *tv);
H A Dtimespec.h41 #define TIMEVAL_TO_TIMESPEC(tv, ts) \
43 (ts)->tv_sec = (tv)->tv_sec; \
44 (ts)->tv_nsec = (tv)->tv_usec * 1000; \
46 #define TIMESPEC_TO_TIMEVAL(tv, ts) \
48 (tv)->tv_sec = (ts)->tv_sec; \
49 (tv)->tv_usec = (ts)->tv_nsec / 1000; \
/illumos-gate/usr/src/cmd/auditreduce/
H A Dmain.c703 struct timeval tv; /* time now */ local
713 tv.tv_sec = when;
714 tv.tv_usec = 0;
718 adr_int64(&adr, (int64_t *)&tv, 2);
720 adr_int32(&adr, (int32_t *)&tv, 2);
H A Dproc.c629 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/avs/dscfglockd/
H A Ddscfglockd.c1157 struct itimerval tv; local
1301 tv.it_interval.tv_sec = TIMEOUT_SECS;
1302 tv.it_interval.tv_usec = 0;
1303 tv.it_value = tv.it_interval;
1328 (void) setitimer(ITIMER_REAL, &tv, NULL);
/illumos-gate/usr/src/cmd/avs/sdbc/
H A Dsd_stats.c90 struct timeval tv; local
94 (void) gettimeofday(&tv, NULL);
95 return (unsigned)((tv.tv_sec - Usec_time.tv_sec) * 1000000
96 + (tv.tv_usec - Usec_time.tv_usec));
H A Dsd_trace.c118 struct timeval tv; local
122 (void) gettimeofday(&tv, NULL);
123 return (unsigned)((tv.tv_sec - Usec_time.tv_sec) * 1000000 +
124 (tv.tv_usec - Usec_time.tv_usec));
/illumos-gate/usr/src/cmd/backup/dump/
H A Ddumptape.c1009 struct timeval tv; local
1011 tv.tv_sec = ms / 1000;
1012 tv.tv_usec = (ms - tv.tv_sec * 1000) * 1000;
1013 (void) select(0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &tv);
/illumos-gate/usr/src/cmd/bnu/
H A Dconn.c1255 struct timeval tv; local
1259 tv.tv_sec = n/60;
1260 tv.tv_usec = ((n%60)*1000000L)/60;
1261 (void) select(32, 0, 0, 0, &tv);
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/dns-sd/
H A Ddns-sd.c438 struct timeval tv; local
439 gettimeofday(&tv, NULL);
440 localtime_r((time_t*)&tv.tv_sec, &tm);
441 ms = tv.tv_usec/1000;
1226 struct timeval tv;
1243 tv.tv_sec = timeOut;
1244 tv.tv_usec = 0;
1246 result = select(nfds, &readfds, (fd_set*)NULL, (fd_set*)NULL, &tv);
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/
H A Dfinger.c1395 struct timeval tv; local
1402 timerclear(&tv);
1403 tv.tv_sec = FIFOREADTIMEOUT;
1407 &exceptfds, &tv) != -1) {
H A Drcp.c1414 struct timeval tv[2]; local
1426 #define atime tv[0]
1427 #define mtime tv[1]
1592 if (utimes(np, tv) < 0)
1696 if (utimes(np, tv) < 0)
H A Drlogin.c1106 struct timeval tv; local
1111 timerclear(&tv);
1112 ret = select(rem+1, NULL, NULL, &exceptfds, &tv);
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/
H A Dftp.c152 struct timeval tv; local
158 tv.tv_sec = (time_t)timeout;
159 tv.tv_usec = 0;
164 err = select(fd + 1, &mask, NULL, NULL, &tv);
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/
H A Ddocmd.c524 struct timeval tv[2]; local
550 (void) gettimeofday(&tv[0], (struct timezone *)NULL);
551 tv[1] = tv[0];
552 (void) utimes(stamp, tv);
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.timed/
H A Din.timed.c53 struct timeval tv; local
55 if (gettimeofday(&tv, NULL) < 0) {
59 return ((uint32_t)htonl(tv.tv_sec + 2208988800U));
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/mdnsd/
H A DmDNSPosix.c1509 struct timeval tv; local
1510 gettimeofday(&tv, NULL);
1511 return(tv.tv_usec);
1526 struct timeval tv; local
1527 gettimeofday(&tv, NULL);
1528 // tv.tv_sec is seconds since 1st January 1970 (GMT, with no adjustment for daylight savings time)
1529 // tv.tv_usec is microseconds since the start of this second (i.e. values 0 to 999999)
1530 // We use the lower 22 bits of tv.tv_sec for the top 22 bits of our result
1531 // and we multiply tv.tv_usec by 16 / 15625 to get a value in the range 0-1023 to go in the bottom 10 bits.
1534 return((tv
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/pppoe/
H A Dpppoec.c1402 struct timeval tv, tvnow; local
1449 tv = tvnow;
1450 if ((tv.tv_sec -= tvstart.tv_sec) < 0) {
1452 tv.tv_sec = 1;
1453 tv.tv_usec = 0;
1454 } else if ((tv.tv_usec -= tvstart.tv_usec) < 0) {
1455 tv.tv_usec += 1000000;
1456 if (--tv.tv_sec < 0)
1457 tv.tv_sec = 0;
1459 psm.poesm_timer -= tv
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/vrrpd/
H A Dvrrpd.c4483 timeval_to_milli(struct timeval tv) argument
4485 return ((int)(tv.tv_sec * 1000 + tv.tv_usec / 1000 + 0.5));
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wpad/
H A Deloop.c241 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/cmd/cmd-inet/usr.sbin/ilbadm/
H A Dilbadm_hc.c191 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/cmd-inet/usr.sbin/
H A Din.rarpd.c106 struct timeval tv; /* send RARP reply by when */ member in struct:rarpreply
634 (void) gettimeofday(&rrp->tv, NULL);
635 rrp->tv.tv_sec += 3; /* delay */
758 struct timeval tv; local
776 (void) gettimeofday(&tv, NULL);
777 if (tv.tv_sec < rrp->tv.tv_sec)
778 (void) sleep(rrp->tv.tv_sec - tv.tv_sec);
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Dtrace.c118 ts_full(struct timeval *tv) argument
124 secs = tv->tv_sec + epoch.tv_sec;
127 (void) snprintf(s + len, sizeof (s) - len, ".%06ld", tv->tv_usec);

Completed in 198 milliseconds

12345678