/illumos-gate/usr/src/boot/sys/sys/ |
H A D | time.h | 445 int itimerfix(struct timeval *tv); 450 int tvtohz(struct timeval *tv);
|
H A D | timespec.h | 41 #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/svc/startd/ |
H A D | graph.c | 437 graph_add_edge(graph_vertex_t *fv, graph_vertex_t *tv) argument 448 e->ge_vertex = tv; 450 re->ge_parent = tv; 458 r = uu_list_insert_before(tv->gv_dependents, NULL, re); 1174 graph_insert_dependency(graph_vertex_t *fv, graph_vertex_t *tv, int **pathp) argument 1186 *pathp = is_path_to(tv, fv); 1195 graph_add_edge(fv, tv); 1200 tv->gv_flags |= (should_be_in_subgraph(tv) ? GV_INSUBGRAPH : 0);
|
/illumos-gate/usr/src/boot/include/net/ |
H A D | if.h | 109 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 D | time.c | 212 struct timeval tv; local 213 EFI_GetTimeOfDay(&tv, 0); 216 *tloc = tv.tv_sec; 217 return tv.tv_sec;
|
/illumos-gate/usr/src/cmd/svc/svcs/ |
H A D | svcs.c | 1642 struct timeval tv; local 1651 SCF_PROPERTY_STATE_TIMESTAMP, &tv, 0); 1654 SCF_TYPE_TIME, &tv, NULL, 0); 1665 /* tv should be valid so we'll format it */ 1666 then = (time_t)tv.tv_sec; 1698 struct timeval tv; local 1703 SCF_PROPERTY_STATE_TIMESTAMP, &tv, 0); 1706 SCF_TYPE_TIME, &tv, NULL, 0); 1713 sec = tv.tv_sec; 1714 us = tv 2430 struct timeval tv; local [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/dns-sd/ |
H A D | dns-sd.c | 438 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.lib/mdnsd/ |
H A D | mDNSPosix.c | 1509 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/mdb/common/mdb/ |
H A D | mdb_ctf.c | 660 type_visit_t tv; local 662 tv.tv_cb = tvp->tv_cb; 663 tv.tv_arg = tvp->tv_arg; 664 tv.tv_fp = basep->mci_fp; 666 tv.tv_base_offset = off; 667 tv.tv_base_depth = depth; 668 tv.tv_min_depth = 1; /* depth = 0 has already been done */ 671 type_cb, &tv); 680 type_visit_t tv; local 683 tv [all...] |
/illumos-gate/usr/src/lib/libdns_sd/common/ |
H A D | dnssd_clientstub.c | 271 struct timeval tv = { 0, 0 }; local 297 ret = select((int)sd+1, fs, (fd_set*)NULL, (fd_set*)NULL, &tv); 316 struct timeval tv; local 321 tv.tv_sec = timeout; 322 tv.tv_usec = 0; 323 if (!select((int)(sock + 1), &set, NULL, NULL, &tv)) 357 struct timeval tv; 358 if (gettimeofday(&tv, NULL) < 0) 361 (unsigned long)(tv.tv_sec & 0xFFF), (unsigned long)(tv [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/vrrpd/ |
H A D | vrrpd.c | 4483 timeval_to_milli(struct timeval tv) argument 4485 return ((int)(tv.tv_sec * 1000 + tv.tv_usec / 1000 + 0.5));
|
/illumos-gate/usr/src/grub/grub-0.97/grub/ |
H A D | asmstub.c | 499 struct timeval tv; local 506 gettimeofday (&tv, 0); 509 csecs = tv.tv_sec / 10; 515 ticks_per_usec = (((tv.tv_sec - csecs * 10) * 1000000 + tv.tv_usec) 1057 struct timeval otv, tv; local 1065 gettimeofday (&tv, 0); 1066 delta = tv.tv_usec - otv.tv_usec;
|
/illumos-gate/usr/src/uts/common/fs/sockfs/ |
H A D | socksubr.c | 1256 struct timeval tv; local 1260 tv.tv_sec = timestamp->tv_sec; 1261 tv.tv_usec = timestamp->tv_nsec / 1268 bcopy(&tv, CMSG_CONTENT(cmsg), sizeof (tv));
|
/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/libfakekernel/common/ |
H A D | clock.c | 75 struct timeval tv; local 77 (void) gettimeofday(&tv, NULL); 78 ts->tv_sec = tv.tv_sec; 79 ts->tv_nsec = tv.tv_usec * 1000;
|
/illumos-gate/usr/src/lib/libresolv2/common/resolv/ |
H A D | res_send.c | 1128 struct timeval tv, *tvp; local 1133 tvp = &tv; 1134 tv = evTimeVal(*tsp); 1143 *tsp = evTimeSpec(tv);
|
/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/cmd/cmd-inet/usr.sbin/ping/ |
H A D | ping.c | 2560 ping_gettime(struct msghdr *msg, struct timeval *tv) argument 2568 cmsg->cmsg_len == CMSG_LEN(sizeof (*tv))) { 2569 bcopy(CMSG_DATA(cmsg), tv, sizeof (*tv)); local 2574 (void) gettimeofday(tv, (struct timezone *)NULL);
|
H A D | ping_aux.c | 234 struct timeval tv; local 288 ping_gettime(msg, &tv); 480 (void) tvsub(&tv, tp); 481 triptime = (int64_t)tv.tv_sec * MICROSEC + tv.tv_usec; 680 (void) tvsub(&tv, tp); 681 triptime = (int64_t)tv.tv_sec * MICROSEC + tv.tv_usec; 995 * Therefore we need to adjust tv value, which is 998 triptime = (tv [all...] |
H A D | ping_aux6.c | 272 struct timeval tv; local 315 ping_gettime(msg, &tv); 519 (void) tvsub(&tv, tp); 520 triptime = (int64_t)tv.tv_sec * MICROSEC + tv.tv_usec; 821 (void) tvsub(&tv, tp); 822 triptime = (int64_t)tv.tv_sec * MICROSEC + tv.tv_usec;
|
/illumos-gate/usr/src/cmd/cron/ |
H A D | at.c | 521 long tv; local 526 tv = 0; 528 tv += (365 + isleap(i)); 538 ++tv; 541 tv += dmsize[i]; 542 tv += tptr->tm_mday - 1; 543 tv = 24 * tv + tptr->tm_hour; 544 tv = 60 * tv [all...] |
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | autod_nfs.c | 2959 struct timeval tv; local 3126 tv.tv_sec = 10; 3127 tv.tv_usec = 0; 3129 xdr_void, 0, tv); 4316 struct timeval tv; local 4351 tv.tv_sec = 10; 4352 tv.tv_usec = 0; 4359 xdr_void, 0, tv);
|
/illumos-gate/usr/src/cmd/idmap/idmapd/ |
H A D | adspriv_impl.c | 117 timespec_t tv = { 15, 0 }; local 129 &_idmapdstate.addisc_lk, &tv);
|
/illumos-gate/usr/src/lib/libnisdb/ |
H A D | ldap_op.c | 562 struct timeval tv; local 565 tv = timeout; 568 ret = ldap_result(ld, ret, 0, &tv, &msg); 1352 struct timeval tv, start, now; local 1452 tv = ls->timeout; 1454 tv = lc->searchTimeout; 1483 ls->attrsonly, ctrls, 0, &tv, 1507 ls->attrsonly, ctrls, 0, &tv, 1512 &tv, &msg); 1755 * 'tv' wit 2049 struct timeval tv; local 2227 struct timeval tv; local 2521 struct timeval tv; local 2626 struct timeval tv; local [all...] |
H A D | ldap_val.c | 2402 __nis_value_t *val, **tv; local 2412 tv = am(myself, e->element.print.numSubElements * 2413 sizeof (tv[0])); 2417 (tv == 0 || np_ldap_stat == 0)) { 2419 sfree(tv); 2425 tv[i] = getMappingSubElement( 2450 tv); 2452 freeValue(tv[i], 1); 2454 sfree(tv);
|