Searched refs:tv (Results 1 - 25 of 169) 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 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.c26 #include "tv.h"
29 * sleep for tv
36 int tvsleep(const Tv_t *tv, Tv_t *rv) { argument
41 stv.tv_sec = tv->tv_sec;
42 stv.tv_nsec = tv->tv_nsec;
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/uts/common/netinet/
H A Dtcp_timer.h106 #define TCPT_RANGESET(tv, value, tvmin, tvmax) { \
107 (tv) = (value); \
108 if ((tv) < (tvmin)) \
109 (tv) = (tvmin); \
110 else if ((tv) > (tvmax)) \
111 (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.c39 struct iovec *tv; local
42 for (i = 0, tv = iov; i <= iovlen; tv++) {
43 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/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/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...]
/illumos-gate/usr/src/uts/common/cpr/
H A Dcpr_stat.c52 cpr_time_t tv; local
55 tv = *ctp;
58 cpr_tod_get(&tv);
72 cep->ce_sec.stime = cep->ce_sec.etime = tv.tv_sec;
74 cep->ce_msec.stime = cep->ce_msec.etime = tv.tv_nsec / 100000000;
83 cpr_time_t tv; local
86 tv = *ctp;
88 cpr_tod_get(&tv);
109 cep->ce_sec.etime = tv.tv_sec;
118 cep->ce_msec.etime = tv
[all...]
/illumos-gate/usr/src/boot/sys/boot/efi/libefi/
H A Dtime.c267 struct timeval tv; local
269 memset(&tv, 0, sizeof (tv));
270 EFI_GetTimeOfDay(&tv, NULL);
273 *tloc = tv.tv_sec;
274 return (tv.tv_sec);
/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)

Completed in 174 milliseconds

1234567