/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 | 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 | 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 | 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 | 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 | 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...] |
H A D | tvcmp.c | 24 #include <tv.h>
|
/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);
|
H A D | fmttmx.c | 25 #include <tv.h>
|
/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/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/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...] |
H A D | rijndael.c | 937 struct tv 947 } tv[2] = 1018 gcry_assert (sizeof tv[0].data[0].input == sizeof scratch); 1019 gcry_assert (sizeof tv[0].data[0].output == sizeof scratch); 1021 for (tvi=0; tvi < DIM (tv); tvi++) 1022 if (tv[tvi].mode == requested_mode) 1024 if (tvi == DIM (tv)) 1027 err = _gcry_cipher_open (&hdenc, GCRY_CIPHER_AES, tv[tvi].mode, 0); 1030 err = _gcry_cipher_open (&hddec, GCRY_CIPHER_AES, tv[tvi].mode, 0); 1033 err = _gcry_cipher_setkey (hdenc, tv[tv 934 struct tv struct 944 } tv[2] = local [all...] |
/osnet-11/usr/src/grub/grub2/grub-core/kern/emu/ |
H A D | misc.c | 215 struct timeval tv; local 217 gettimeofday (&tv, 0); 219 return (tv.tv_sec * 1000 + tv.tv_usec / 1000); 225 struct timeval tv; local 227 gettimeofday (&tv, 0); 229 return (tv.tv_sec * GRUB_TICKS_PER_SECOND 230 + (((tv.tv_sec % GRUB_TICKS_PER_SECOND) * 1000000 + tv.tv_usec)
|
/osnet-11/usr/src/lib/libldap4/common/ |
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/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/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...] |
/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/lib/libast/common/port/ |
H A D | touch.c | 43 #include <tv.h>
|
/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...] |
/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
|