Home
last modified time | relevance | path

Searched refs:tv (Results 1 – 25 of 210) sorted by relevance

123456789

/titanic_51/usr/src/uts/common/syscall/
H A Dlwp_info.c50 timestruc_t tv[2]; in lwp_info() local
60 hrt2ts(hrutime, &tv[0]); in lwp_info()
61 hrt2ts(hrstime, &tv[1]); in lwp_info()
64 if (copyout(tv, tvp, sizeof (tv))) in lwp_info()
69 if (TIMESPEC_OVERFLOW(&tv[0]) || in lwp_info()
70 TIMESPEC_OVERFLOW(&tv[1])) in lwp_info()
73 TIMESPEC_TO_TIMESPEC32(&tv32[0], &tv[0]); in lwp_info()
74 TIMESPEC_TO_TIMESPEC32(&tv32[1], &tv[1]); in lwp_info()
/titanic_51/usr/src/lib/libast/common/tm/
H A Dtvgettime.c30 tvgettime(Tv_t* tv) in tvgettime() argument
38 tv->tv_sec = s.tv_sec; in tvgettime()
39 tv->tv_nsec = s.tv_nsec; in tvgettime()
48 tv->tv_sec = v.tv_sec; in tvgettime()
49 tv->tv_nsec = v.tv_usec * 1000; in tvgettime()
56 if ((tv->tv_sec = time(NiL)) != s) in tvgettime()
58 s = tv->tv_sec; in tvgettime()
63 tv->tv_nsec = n; in tvgettime()
H A Dtvsettime.c31 tvsettime(const Tv_t* tv) in tvsettime() argument
38 s.tv_sec = tv->tv_sec; in tvsettime()
39 s.tv_nsec = tv->tv_nsec; in tvsettime()
48 v.tv_sec = tv->tv_sec; in tvsettime()
49 v.tv_usec = tv->tv_nsec / 1000; in tvsettime()
58 s = tv->tv_sec + (tv->tv_nsec != 0); in tvsettime()
H A Dtmxgettime.c40 Tv_t tv; in tmxgettime() local
42 tvgettime(&tv); in tmxgettime()
43 return tmxsns(tv.tv_sec, tv.tv_nsec); in tmxgettime()
H A Dtmxsettime.c40 Tv_t tv; in tmxsettime() local
42 tv.tv_sec = tmxsec(t); in tmxsettime()
43 tv.tv_nsec = tmxnsec(t); in tmxsettime()
44 return tvsettime(&tv); in tmxsettime()
H A Dtmsleep.c37 Tv_t tv; in tmsleep() local
39 tv.tv_sec = sec; in tmsleep()
40 tv.tv_nsec = nsec; in tmsleep()
41 return tvsleep(&tv, NiL); in tmsleep()
H A Dtmxsleep.c36 Tv_t tv; in tmxsleep() local
38 tv.tv_sec = tmxsec(t); in tmxsleep()
39 tv.tv_nsec = tmxnsec(t); in tmxsleep()
40 return tvsleep(&tv, NiL); in tmxsleep()
/titanic_51/usr/src/contrib/ast/src/lib/libast/tm/
H A Dtvgettime.c24 #include <tv.h>
30 tvgettime(Tv_t* tv) in tvgettime() argument
38 tv->tv_sec = s.tv_sec; in tvgettime()
39 tv->tv_nsec = s.tv_nsec; in tvgettime()
48 tv->tv_sec = v.tv_sec; in tvgettime()
49 tv->tv_nsec = v.tv_usec * 1000; in tvgettime()
56 if ((tv->tv_sec = time(NiL)) != s) in tvgettime()
58 s = tv->tv_sec; in tvgettime()
63 tv->tv_nsec = n; in tvgettime()
H A Dtvsettime.c24 #include <tv.h>
31 tvsettime(const Tv_t* tv) in tvsettime() argument
38 s.tv_sec = tv->tv_sec; in tvsettime()
39 s.tv_nsec = tv->tv_nsec; in tvsettime()
48 v.tv_sec = tv->tv_sec; in tvsettime()
49 v.tv_usec = tv->tv_nsec / 1000; in tvsettime()
58 s = tv->tv_sec + (tv->tv_nsec != 0); in tvsettime()
H A Dtmxgettime.c31 #include <tv.h>
40 Tv_t tv; in tmxgettime() local
42 tvgettime(&tv); in tmxgettime()
43 return tmxsns(tv.tv_sec, tv.tv_nsec); in tmxgettime()
H A Dtmxsettime.c31 #include <tv.h>
40 Tv_t tv; in tmxsettime() local
42 tv.tv_sec = tmxsec(t); in tmxsettime()
43 tv.tv_nsec = tmxnsec(t); in tmxsettime()
44 return tvsettime(&tv); in tmxsettime()
H A Dtmsleep.c32 #include <tv.h>
37 Tv_t tv; in tmsleep() local
39 tv.tv_sec = sec; in tmsleep()
40 tv.tv_nsec = nsec; in tmsleep()
41 return tvsleep(&tv, NiL); in tmsleep()
H A Dtmxsleep.c31 #include <tv.h>
36 Tv_t tv; in tmxsleep() local
38 tv.tv_sec = tmxsec(t); in tmxsleep()
39 tv.tv_nsec = tmxnsec(t); in tmxsleep()
40 return tvsleep(&tv, NiL); in tmxsleep()
/titanic_51/usr/src/lib/libbc/libc/compat/common/
H A Dutime.c51 struct timeval tv[2]; in utime() local
56 tv[0].tv_sec = (long)otv[0]; in utime()
57 tv[0].tv_usec = 0; in utime()
58 tv[1].tv_sec = (long)otv[1]; in utime()
59 tv[1].tv_usec = 0; in utime()
61 return (utimes(name, tv)); in utime()
/titanic_51/usr/src/boot/sys/sys/
H A Dtimespec.h41 #define TIMEVAL_TO_TIMESPEC(tv, ts) \ argument
43 (ts)->tv_sec = (tv)->tv_sec; \
44 (ts)->tv_nsec = (tv)->tv_usec * 1000; \
46 #define TIMESPEC_TO_TIMEVAL(tv, ts) \ argument
48 (tv)->tv_sec = (ts)->tv_sec; \
49 (tv)->tv_usec = (ts)->tv_nsec / 1000; \
/titanic_51/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) argument
320 /* tv / dividend */
322 tv_divide(struct timeval32 tv, int dividend) in tv_divide() argument
327 return (tv); in tv_divide()
328 usecs = tv_to_usec(tv); in tv_divide()
330 tv in tv_divide()
336 tv_mult(struct timeval32 tv,int multiplier) tv_mult() argument
349 struct timeval32 tv; usec_to_tv() local
[all...]
/titanic_51/usr/src/uts/common/netinet/
H A Dtcp_timer.h105 #define TCPT_RANGESET(tv, value, tvmin, tvmax) { \ argument
106 (tv) = (value); \
107 if ((tv) < (tvmin)) \
108 (tv) = (tvmin); \
109 else if ((tv) > (tvmax)) \
110 (tv) = (tvmax); \
/titanic_51/usr/src/lib/libast/common/string/
H A Dfmttv.c32 fmttv(const char* fmt, Tv_t* tv) in fmttv() argument
38 s = fmttime(fmt, (time_t)tv->tv_sec); in fmttv()
39 if (!tv->tv_nsec || tv->tv_nsec == TV_NSEC_IGNORE) in fmttv()
42 sfsprintf(t, n, "%s.%09lu", s, (unsigned long)tv->tv_nsec); in fmttv()
/titanic_51/usr/src/contrib/ast/src/lib/libast/string/
H A Dfmttv.c24 #include <tv.h>
32 fmttv(const char* fmt, Tv_t* tv) in fmttv() argument
38 s = fmttime(fmt, (time_t)tv->tv_sec); in fmttv()
39 if (!tv->tv_nsec || tv->tv_nsec == TV_NSEC_IGNORE) in fmttv()
42 sfsprintf(t, n, "%s.%09lu", s, (unsigned long)tv->tv_nsec); in fmttv()
/titanic_51/usr/src/lib/libast/common/features/
H A Dtvlib30 struct timespec tv;
31 return clock_gettime(CLOCK_REALTIME, &tv) != 0;
38 static struct timespec tv;
42 return utimets(".", &tv) != 0;
52 struct timeval tv;
55 if (gettimeofday(&tv, (struct timezone*)0) < 0)
63 if (gettimeofday(&tv, (void*)0) < 0)
71 if (gettimeofday(&tv) < 0)
/titanic_51/usr/src/contrib/ast/src/lib/libast/features/
H A Dtvlib30 struct timespec tv;
31 return clock_gettime(CLOCK_REALTIME, &tv) != 0;
38 static struct timespec tv;
42 return utimets(".", &tv) != 0;
52 struct timeval tv;
55 if (gettimeofday(&tv, (struct timezone*)0) < 0)
63 if (gettimeofday(&tv, (void*)0) < 0)
71 if (gettimeofday(&tv) < 0)
/titanic_51/usr/src/cmd/ypcmd/
H A Dypserv_resolv.c73 struct timeval tv; in setup_resolv() local
152 tv.tv_sec = 3; tv.tv_usec = 0; in setup_resolv()
155 tv, &sock, YPMSGSZ, YPMSGSZ); in setup_resolv()
186 tv.tv_sec = 10; tv.tv_usec = 0; in setup_resolv()
188 xdr_void, 0, tv)) != RPC_SUCCESS) { in setup_resolv()
294 struct timeval tv; in resolv_req() local
385 tv.tv_sec = 10; tv in resolv_req()
[all...]
/titanic_51/usr/src/uts/common/gssapi/mechs/krb5/krb5/os/
H A Dc_ustime.c70 struct timeval tv; in get_time_now() local
75 tv.tv_sec = now.tv_sec; in get_time_now()
76 tv.tv_usec = now.tv_nsec / (NANOSEC / MICROSEC); in get_time_now()
78 if (gettimeofday(&tv, (struct timezone *)0) == -1) in get_time_now()
82 n->sec = tv.tv_sec; in get_time_now()
83 n->usec = tv.tv_usec; in get_time_now()
/titanic_51/usr/src/cmd/refer/
H A Drefer6.c150 class(int nt, char *tv[]) in class() argument
152 if (hastype(nt, tv, 'J')) in class()
154 if (hastype(nt, tv, 'B')) in class()
156 if (hastype(nt, tv, 'R')) in class()
158 if (hastype(nt, tv, 'G')) in class()
160 if (hastype(nt, tv, 'I')) in class()
162 if (hastype(nt, tv, 'M')) in class()
168 hastype(int nt, char *tv[], char c) in hastype() argument
172 if (control(tv[i][0]) && tv[ in hastype()
[all...]
/titanic_51/usr/src/contrib/ast/src/lib/libast/aso/
H A Dasorelax.c33 #include <tv.h>
42 Tv_t tv;
44 tv.tv_sec = 0;
45 tv.tv_nsec = nsec;
46 return tvsleep(&tv, 0);

123456789