Searched refs:tv (Results 126 - 150 of 187) sorted by relevance

12345678

/illumos-gate/usr/src/cmd/avs/sdbc/
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/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/
H A Dfinger.c1395 struct timeval tv; local
1402 timerclear(&tv);
1403 tv.tv_sec = FIFOREADTIMEOUT;
1407 &exceptfds, &tv) != -1) {
H A Drlogin.c1106 struct timeval tv; local
1111 timerclear(&tv);
1112 ret = select(rem+1, NULL, NULL, &exceptfds, &tv);
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)
/illumos-gate/usr/src/cmd/keyserv/
H A Dkeyserv.c443 struct timeval tv; local
448 (void) gettimeofday(&tv, (struct timezone *)NULL);
450 seed ^= (tv.tv_usec << shift) | (tv.tv_usec >> (32 - shift));
/illumos-gate/usr/src/cmd/ldapcachemgr/
H A Dcachemgr.c1040 struct timeval tv; local
1049 (void) gettimeofday(&tv, NULL);
1050 (void) ctime_r(&tv.tv_sec, buffer, BUFSIZ);
1052 tv.tv_usec/100);
/illumos-gate/usr/src/lib/libast/common/tm/
H A Dtvtouch.c42 #include <tv.h>
/illumos-gate/usr/src/lib/libresolv2/common/resolv/
H A Dres_send.c1128 struct timeval tv, *tvp; local
1133 tvp = &tv;
1134 tv = evTimeVal(*tsp);
1143 *tsp = evTimeSpec(tv);
/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/lib/libdns_sd/common/
H A Ddnssd_clientstub.c271 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/lib/gss_mechs/mech_krb5/krb5/os/
H A Dsendto_kdc.c127 struct timeval *tv; local
213 tv = va_arg(args, struct timeval *);
214 if (tv) {
216 (long) tv->tv_sec, (long) tv->tv_usec);
/illumos-gate/usr/src/uts/common/fs/hsfs/
H A Dhsfs_vfsops.c582 struct timeval tv; local
711 uniqtime(&tv);
712 fsid = tv.tv_sec;
716 uniqtime(&tv);
717 fsid = tv.tv_sec;
/illumos-gate/usr/src/lib/libnisdb/
H A Dldap_val.c2402 __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);
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_asru.c719 struct timeval tv; local
743 fmd_time_gettimeofday(&tv);
748 hrt = (hrtime_t)(tv.tv_sec - lp->log_stat.st_mtime);
763 struct timeval tv; local
772 fmd_time_gettimeofday(&tv);
776 hrt = (hrtime_t)(tv.tv_sec - lp->log_stat.st_mtime);
/illumos-gate/usr/src/cmd/lms/
H A DProtocol.cpp480 struct timeval tv; local
485 tv.tv_sec = 1;
486 tv.tv_usec = 0;
531 res = select(fdCount, &rset, NULL, NULL, &tv);
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs4_srv_deleg.c203 struct timeval tv; local
297 tv.tv_sec = 30;
298 tv.tv_usec = 0;
299 if (clnt_call(ch, CB_NULL, xdr_void, NULL, xdr_void, NULL, tv) != 0) {
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dlufs.c490 timestruc_t tv; local
492 gethrestime(&tv);
494 seed = (tv.tv_nsec << 3);
495 seed ^= tv.tv_sec;
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibcm/
H A Dibcm_utils.c825 timespec_t tv; local
847 gethrestime(&tv);
848 ibcm_local_sid_seed = ((uint64_t)tv.tv_sec << 20) & 0x007FFFFFFFF00000;
852 ibcm_local_cid_seed = (ib_com_id_t)tv.tv_sec;
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Ddigest_md5.c132 struct timeval tv; local
136 gettimeofday(&tv, NULL);
137 r ^= tv.tv_usec;
/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);
/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/cmd-inet/usr.sbin/ping/
H A Dping.c2560 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);
/illumos-gate/usr/src/uts/common/fs/sockfs/
H A Dsocksubr.c1256 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/lib/lvm/libmeta/common/
H A Dmeta_raid.c658 md_timeval32_t tv; local
679 col_state = raid_col_state_to_name(colp, &tv,
690 col_state = raid_col_state_to_name(colp, &tv, tstate);
722 char *timep = meta_print_time(&tv);
792 md_timeval32_t tv; local
828 raid_state = raid_state_to_name(raidp, &tv, tstate);
830 timep = meta_print_time(&tv);

Completed in 170 milliseconds

12345678