Searched defs:tv (Results 1 - 25 of 158) sorted by relevance

1234567

/illumos-gate/usr/src/lib/libast/common/tm/
H A Dtmxgettime.c31 #include <tv.h>
40 Tv_t tv; local
42 tvgettime(&tv);
43 return tmxsns(tv.tv_sec, tv.tv_nsec);
H A Dtmsleep.c32 #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 Dtmxsettime.c31 #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 Dtmxsleep.c31 #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 Dtvgettime.c24 #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 Dtvsettime.c24 #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 Dtvsleep.c24 #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...]
/illumos-gate/usr/src/lib/lvm/libmeta/common/
H A Dmeta_time.c40 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;
/illumos-gate/usr/src/lib/libbc/libc/compat/common/
H A Dutime.c51 struct timeval tv[2]; local
56 tv[0].tv_sec = (long)otv[0];
57 tv[0].tv_usec = 0;
58 tv[1].tv_sec = (long)otv[1];
59 tv[1].tv_usec = 0;
61 return (utimes(name, tv));
/illumos-gate/usr/src/uts/common/syscall/
H A Dlwp_info.c50 timestruc_t tv[2]; local
60 hrt2ts(hrutime, &tv[0]);
61 hrt2ts(hrstime, &tv[1]);
64 if (copyout(tv, tvp, sizeof (tv)))
69 if (TIMESPEC_OVERFLOW(&tv[0]) ||
70 TIMESPEC_OVERFLOW(&tv[1]))
73 TIMESPEC_TO_TIMESPEC32(&tv32[0], &tv[0]);
74 TIMESPEC_TO_TIMESPEC32(&tv32[1], &tv[1]);
/illumos-gate/usr/src/lib/libast/common/string/
H A Dfmttv.c24 #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);
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dchkinput.c89 struct timeval tv; local
93 tv.tv_sec = tv.t_usec = 0;
94 n = select(20, &ifds, &ofds, &efds, &tv);
/illumos-gate/usr/src/lib/libresolv2/common/bsd/
H A Dwritev.c43 struct iovec *tv; local
46 for (i = 0, tv = iov; i <= iovlen; tv++) {
47 rcode = write(fd, tv->iov_base, tv->iov_len);
/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/uts/common/gssapi/mechs/krb5/krb5/os/
H A Dc_ustime.c70 struct timeval tv; local
75 tv.tv_sec = now.tv_sec;
76 tv.tv_usec = now.tv_nsec / (NANOSEC / MICROSEC);
78 if (gettimeofday(&tv, (struct timezone *)0) == -1)
82 n->sec = tv.tv_sec;
83 n->usec = tv.tv_usec;
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/traceroute/
H A Dtraceroute.h78 struct timeval tv; /* time packet left */ member in struct:outdata
/illumos-gate/usr/src/lib/libfakekernel/common/
H A Dclock.c75 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/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/lib/crypt_modules/bsdbf/
H A Darc4random.c94 struct timeval tv; member in struct:__anon2453
98 (void) gettimeofday(&rdat.tv, NULL);
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_work.c54 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);
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dselect.c285 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;
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.talkd/
H A Din.talkd.c76 struct timeval tv; local
81 tv.tv_sec = MAX_LIFE;
82 tv.tv_usec = 0;
85 if (select(1, &rfds, 0, 0, &tv) <= 0)
/illumos-gate/usr/src/cmd/tip/aculib/
H A Dventel.c198 struct timeval tv = {0, 500000}; local
200 (void) select(0, 0, 0, 0, &tv);
/illumos-gate/usr/src/cmd/idmap/idmapd/
H A Dadspriv_impl.c117 timespec_t tv = { 15, 0 }; local
129 &_idmapdstate.addisc_lk, &tv);
/illumos-gate/usr/src/lib/gss_mechs/mech_dh/dh_common/
H A Dgeneric_key.c61 struct timeval tv; local
63 (void) gettimeofday(&tv, (struct timezone *)NULL);
64 rseed = tv.tv_sec + tv.tv_usec;

Completed in 151 milliseconds

1234567