/osnet-11/usr/src/lib/libast/common/tm/ |
H A D | tmxgettime.c | 31 #include <tv.h> 40 Tv_t tv; local 42 tvgettime(&tv); 43 return tmxsns(tv.tv_sec, tv.tv_nsec);
|
H A D | tmsleep.c | 32 #include <tv.h> 37 Tv_t tv; local 39 tv.tv_sec = sec; 40 tv.tv_nsec = nsec; 41 return tvsleep(&tv, NiL);
|
H A D | tmxsettime.c | 31 #include <tv.h> 40 Tv_t tv; local 42 tv.tv_sec = tmxsec(t); 43 tv.tv_nsec = tmxnsec(t); 44 return tvsettime(&tv);
|
H A D | tmxsleep.c | 31 #include <tv.h> 36 Tv_t tv; local 38 tv.tv_sec = tmxsec(t); 39 tv.tv_nsec = tmxnsec(t); 40 return tvsleep(&tv, NiL);
|
H A D | tvgettime.c | 24 #include <tv.h> 30 tvgettime(Tv_t* tv) argument 38 tv->tv_sec = s.tv_sec; 39 tv->tv_nsec = s.tv_nsec; 48 tv->tv_sec = v.tv_sec; 49 tv->tv_nsec = v.tv_usec * 1000; 56 if ((tv->tv_sec = time(NiL)) != s) 58 s = tv->tv_sec; 63 tv->tv_nsec = n;
|
H A D | tvsettime.c | 24 #include <tv.h> 31 tvsettime(const Tv_t* tv) argument 38 s.tv_sec = tv->tv_sec; 39 s.tv_nsec = tv->tv_nsec; 48 v.tv_sec = tv->tv_sec; 49 v.tv_usec = tv->tv_nsec / 1000; 58 s = tv->tv_sec + (tv->tv_nsec != 0);
|
H A D | tvsleep.c | 24 #include <tv.h> 49 * sleep for tv 55 tvsleep(register const Tv_t* tv, register Tv_t* rv) argument 64 stv.tv_sec = tv->tv_sec; 65 stv.tv_nsec = tv->tv_nsec; 79 stv.tv_sec = tv->tv_sec; 80 stv.tv_usec = tv->tv_nsec / 1000; 84 *rv = *tv; 96 unsigned int s = tv->tv_sec; 97 uint32_t n = tv [all...] |
/osnet-11/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_time.c | 40 struct timeval tv; local 46 if ((retval = gettimeofday(&tv, NULL)) == 0) { 47 tv32->tv_sec = (time32_t)tv.tv_sec; 48 tv32->tv_usec = (int32_t)tv.tv_usec;
|
/osnet-11/usr/src/lib/libast/common/string/ |
H A D | fmttv.c | 24 #include <tv.h> 32 fmttv(const char* fmt, Tv_t* tv) argument 38 s = fmttime(fmt, (time_t)tv->tv_sec); 39 if (!tv->tv_nsec || tv->tv_nsec == TV_NSEC_IGNORE) 42 sfsprintf(t, n, "%s.%09lu", s, (unsigned long)tv->tv_nsec);
|
/osnet-11/usr/src/lib/libresolv2/common/bsd/ |
H A D | writev.c | 43 struct iovec *tv; local 46 for (i = 0, tv = iov; i <= iovlen; tv++) { 47 rcode = write(fd, tv->iov_base, tv->iov_len);
|
/osnet-11/usr/src/lib/libcurses/screen/ |
H A D | chkinput.c | 89 struct timeval tv; local 93 tv.tv_sec = tv.t_usec = 0; 94 n = select(20, &ifds, &ofds, &efds, &tv);
|
/osnet-11/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);
|
/osnet-11/usr/src/lib/crypt_modules/bsdbf/ |
H A D | arc4random.c | 94 struct timeval tv; member in struct:__anon948 98 (void) gettimeofday(&rdat.tv, NULL);
|
/osnet-11/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
|
/osnet-11/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;
|
/osnet-11/usr/src/grub/grub2/grub-core/lib/libgcrypt/cipher/ |
H A D | hmac-tests.c | 169 } tv[] = local 252 for (tvidx=0; tv[tvidx].desc; tvidx++) 254 what = tv[tvidx].desc; 256 tv[tvidx].data, strlen (tv[tvidx].data), 257 tv[tvidx].key, strlen (tv[tvidx].key), 258 tv[tvidx].expect, DIM (tv[tvidx].expect) ); 283 } tv[] local 425 } tv[] = local 551 } tv[] = local [all...] |
/osnet-11/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;
|
/osnet-11/usr/src/lib/udapl/udapl_tavor/common/ |
H A D | dapl_osd.c | 113 struct timeval tv; local 117 (void) gettimeofday(&tv, &tz); 118 *loc = ((DAT_UINT64)(tv.tv_sec) * 1000000L) + (DAT_UINT64) tv.tv_usec;
|
/osnet-11/usr/src/lib/librdc/common/ |
H A D | netaddrs.c | 345 struct timeval tv; local 384 tv.tv_sec = 5; 385 tv.tv_usec = 0; 387 (void) clnt_control(cl, CLSET_TIMEOUT, (char *)&tv);
|
/osnet-11/usr/src/lib/libldap4/common/ |
H A D | cldap.c | 349 struct timeval tv; local 366 if ((tv.tv_sec = crip->cri_timeout / sb->sb_naddr) < 1 ) { 367 tv.tv_sec = 1; 369 tv.tv_usec = 0; 373 tv.tv_sec, 0, 0 ); 377 if ( cldap_getmsg( ld, &tv, &ber ) == -1 ) {
|
H A D | ufn.c | 402 struct timeval tv; local 404 tv.tv_sec = ld->ld_timelimit; 408 ld->ld_timelimit ? (void *) &tv : NULL, 490 struct timeval tv; local 508 tv.tv_sec = 0; 509 tv.tv_usec = 100000; /* 1/10 of a second */ 512 *err = ldap_result( ld, msgid, 1, &tv, &tmpres ); 583 struct timeval *tv; local 585 tv = (struct timeval *)tvparam; 587 if ( tv [all...] |
/osnet-11/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...] |
/osnet-11/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;
|
/osnet-11/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...] |