Searched refs:tv (Results 1 - 25 of 187) sorted by relevance

12345678

/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 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 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 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 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 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...]
H A Dtvcmp.c24 #include <tv.h>
/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/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);
H A Dfmttmx.c25 #include <tv.h>
/illumos-gate/usr/src/boot/sys/sys/
H A Dtimespec.h41 #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/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/uts/common/netinet/
H A Dtcp_timer.h105 #define TCPT_RANGESET(tv, value, tvmin, tvmax) { \
106 (tv) = (value); \
107 if ((tv) < (tvmin)) \
108 (tv) = (tvmin); \
109 else if ((tv) > (tvmax)) \
110 (tv) = (tvmax); \
/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/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/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/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/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/uts/common/io/
H A Dvuid_queue.c43 static struct timeval32 tv_divide(struct timeval32 tv, int dividend);
44 static struct timeval32 tv_mult(struct timeval32 tv, int multiplier);
45 #define tv_to_usec(tv) (((tv).tv_sec * 1000000) + (tv).tv_usec)
320 /* tv / dividend */
322 tv_divide(struct timeval32 tv, int dividend) argument
327 return (tv);
328 usecs = tv_to_usec(tv);
330 tv
336 tv_mult(struct timeval32 tv, int multiplier) argument
349 struct timeval32 tv; local
[all...]
/illumos-gate/usr/src/ucbcmd/rusage/
H A Drusage.c43 fprintt(s, tv)
45 struct timeval *tv;
49 tv->tv_sec, tv->tv_usec/10000, s);
/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/cmd/ypcmd/
H A Dypserv_resolv.c73 struct timeval tv; local
152 tv.tv_sec = 3; tv.tv_usec = 0;
155 tv, &sock, YPMSGSZ, YPMSGSZ);
186 tv.tv_sec = 10; tv.tv_usec = 0;
188 xdr_void, 0, tv)) != RPC_SUCCESS) {
294 struct timeval tv; local
385 tv.tv_sec = 10; tv
[all...]
/illumos-gate/usr/src/cmd/refer/
H A Drefer6.c150 class(int nt, char *tv[]) argument
152 if (hastype(nt, tv, 'J'))
154 if (hastype(nt, tv, 'B'))
156 if (hastype(nt, tv, 'R'))
158 if (hastype(nt, tv, 'G'))
160 if (hastype(nt, tv, 'I'))
162 if (hastype(nt, tv, 'M'))
168 hastype(int nt, char *tv[], char c) argument
172 if (control(tv[i][0]) && tv[
[all...]

Completed in 138 milliseconds

12345678