/titanic_41/usr/src/uts/common/syscall/ |
H A D | lwp_info.c | 50 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_41/usr/src/lib/libast/common/tm/ |
H A D | tvgettime.c | 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 D | tvsettime.c | 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 D | tmxgettime.c | 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 D | tmxsettime.c | 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 D | tmsleep.c | 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 D | tmxsleep.c | 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_41/usr/src/lib/libbc/libc/compat/common/ |
H A D | utime.c | 51 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_41/usr/src/uts/common/io/ |
H A D | vuid_queue.c | 43 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 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 = usec_to_tv(usecs); in tv_divide() 331 return (tv); in tv_divide() 336 tv_mult(struct timeval32 tv, int multiplier) in tv_mult() argument 340 usecs = tv_to_usec(tv); in tv_mult() [all …]
|
/titanic_41/usr/src/uts/common/netinet/ |
H A D | tcp_timer.h | 105 #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_41/usr/src/lib/libast/common/string/ |
H A D | fmttv.c | 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_41/usr/src/lib/libast/common/features/ |
H A D | tvlib | 30 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_41/usr/src/cmd/ypcmd/ |
H A D | ypserv_resolv.c | 73 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.tv_usec = 0; in resolv_req() 388 (char *)&fwd_req6, xdr_void, 0, tv); in resolv_req() 391 (char *)&fwd_req4, xdr_void, 0, tv); in resolv_req() 415 (char *)&fwd_req6, xdr_void, 0, tv); in resolv_req() [all …]
|
/titanic_41/usr/src/uts/common/gssapi/mechs/krb5/krb5/os/ |
H A D | c_ustime.c | 70 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_41/usr/src/cmd/refer/ |
H A D | refer6.c | 150 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[i][1] == c) in hastype()
|
/titanic_41/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_time.c | 40 struct timeval tv; in meta_gettimeofday() local 46 if ((retval = gettimeofday(&tv, NULL)) == 0) { in meta_gettimeofday() 47 tv32->tv_sec = (time32_t)tv.tv_sec; in meta_gettimeofday() 48 tv32->tv_usec = (int32_t)tv.tv_usec; in meta_gettimeofday()
|
/titanic_41/usr/src/lib/libresolv2/common/bsd/ |
H A D | writev.c | 43 struct iovec *tv; in __writev() local 46 for (i = 0, tv = iov; i <= iovlen; tv++) { in __writev() 47 rcode = write(fd, tv->iov_base, tv->iov_len); in __writev()
|
/titanic_41/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | ufn.c | 364 struct timeval tv; in ldap_ufn_search_s() local 366 tv.tv_sec = ld->ld_timelimit; in ldap_ufn_search_s() 370 ld->ld_timelimit ? (void *) &tv : NULL, in ldap_ufn_search_s() 452 struct timeval tv; in ldap_ufn_expand() local 470 tv.tv_sec = 0; in ldap_ufn_expand() 471 tv.tv_usec = 100000; /* 1/10 of a second */ in ldap_ufn_expand() 474 *err = ldap_result( ld, msgid, 1, &tv, &tmpres ); in ldap_ufn_expand() 530 struct timeval *tv; in ldap_ufn_timeout() local 532 tv = (struct timeval *)tvparam; in ldap_ufn_timeout() 534 if ( tv->tv_sec != 0 ) { in ldap_ufn_timeout() [all …]
|
/titanic_41/usr/src/uts/common/os/ |
H A D | timers.c | 85 uniqtime(struct timeval *tv) in uniqtime() argument 144 tv->tv_sec = sec; in uniqtime() 145 tv->tv_usec = usec; in uniqtime() 157 struct timeval tv; in uniqtime32() local 159 uniqtime(&tv); in uniqtime32() 160 TIMEVAL_TO_TIMEVAL32(tv32p, &tv); in uniqtime32() 740 itimerfix(struct timeval *tv, int minimum) in itimerfix() argument 742 if (tv->tv_sec < 0 || tv->tv_sec > 100000000 || in itimerfix() 743 tv->tv_usec < 0 || tv->tv_usec >= MICROSEC) in itimerfix() 745 if (tv->tv_sec == 0 && tv->tv_usec != 0 && tv->tv_usec < minimum) in itimerfix() [all …]
|
/titanic_41/usr/src/uts/common/cpr/ |
H A D | cpr_stat.c | 52 cpr_time_t tv; in cpr_stat_event_start() local 55 tv = *ctp; in cpr_stat_event_start() 58 cpr_tod_get(&tv); in cpr_stat_event_start() 72 cep->ce_sec.stime = cep->ce_sec.etime = tv.tv_sec; in cpr_stat_event_start() 74 cep->ce_msec.stime = cep->ce_msec.etime = tv.tv_nsec / 100000000; in cpr_stat_event_start() 83 cpr_time_t tv; in cpr_stat_event_end() local 86 tv = *ctp; in cpr_stat_event_end() 88 cpr_tod_get(&tv); in cpr_stat_event_end() 109 cep->ce_sec.etime = tv.tv_sec; in cpr_stat_event_end() 118 cep->ce_msec.etime = tv.tv_nsec / 100000000; in cpr_stat_event_end()
|
/titanic_41/usr/src/cmd/auditreduce/ |
H A D | proc.c | 629 struct timeval tv; local 714 tv.tv_sec = (time_t)secs; 715 tv.tv_usec = (suseconds_t)msecs; 725 tv.tv_sec = (time_t)secs; 726 tv.tv_usec = (suseconds_t)msecs; 734 tv.tv_sec = 0; 736 tv.tv_sec = (time_t)secs; 739 tv.tv_usec = 0; 741 tv.tv_usec = (suseconds_t)msecs; 743 tv.tv_sec = (time_t)secs; [all …]
|
/titanic_41/usr/src/lib/libshell/common/features/ |
H A D | time | 9 struct timeval tv; 11 return gettimeofday(&tv, &tz); 19 struct timeval tv; 20 return gettimeofday(&tv);
|
/titanic_41/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_time.c | 227 struct timeval tv; in fmd_simulator_init() local 231 (void) gettimeofday(&tv, NULL); in fmd_simulator_init() 233 fts->fts_tod = (hrtime_t)tv.tv_sec * NANOSEC + in fmd_simulator_init() 234 (hrtime_t)tv.tv_usec * (NANOSEC / MICROSEC); in fmd_simulator_init() 240 tv.tv_sec, fts->fts_tod); in fmd_simulator_init() 355 timespec_t tv; in fmd_native_wait() local 357 tv.tv_sec = delta / NANOSEC; in fmd_native_wait() 358 tv.tv_nsec = delta % NANOSEC; in fmd_native_wait() 360 (void) nanosleep(&tv, NULL); in fmd_native_wait()
|
/titanic_41/usr/src/cmd/fs.d/ufs/quota/ |
H A D | quota.c | 440 struct timeval tv; in warn() local 442 time(&(tv.tv_sec)); in warn() 443 tv.tv_usec = 0; in warn() 453 } else if (dqp->dqb_btimelimit > tv.tv_sec) { in warn() 456 fmttime(btimeleft, dqp->dqb_btimelimit - tv.tv_sec); in warn() 479 } else if (dqp->dqb_ftimelimit > tv.tv_sec) { in warn() 482 fmttime(ftimeleft, dqp->dqb_ftimelimit - tv.tv_sec); in warn() 519 struct timeval tv; in prquota() local 523 time(&(tv.tv_sec)); in prquota() 524 tv.tv_usec = 0; in prquota() [all …]
|
/titanic_41/usr/src/lib/libcurses/screen/ |
H A D | chkinput.c | 89 struct timeval tv; in _chkinput() local 93 tv.tv_sec = tv.t_usec = 0; in _chkinput() 94 n = select(20, &ifds, &ofds, &efds, &tv); in _chkinput()
|