/titanic_50/usr/src/uts/common/gssapi/mechs/krb5/krb5/os/ |
H A D | c_ustime.c | 72 timestruc_t now; in get_time_now() local 74 gethrestime(&now); in get_time_now() 75 tv.tv_sec = now.tv_sec; in get_time_now() 76 tv.tv_usec = now.tv_nsec / (NANOSEC / MICROSEC); in get_time_now() 94 struct time_now now; in krb5_crypto_us_timeofday() local 97 err = get_time_now(&now); in krb5_crypto_us_timeofday() 112 if ((now.sec == last_time.sec) && (now.usec <= last_time.usec)) { in krb5_crypto_us_timeofday() 114 now.usec = ++last_time.usec; in krb5_crypto_us_timeofday() 115 if (now.usec >= 1000000) { in krb5_crypto_us_timeofday() 116 ++now.sec; in krb5_crypto_us_timeofday() [all …]
|
/titanic_50/usr/src/uts/common/syscall/ |
H A D | lwp_timer.c | 58 timespec_t now, delta; in lwp_timer_timeout() local 61 gethrestime(&now); in lwp_timer_timeout() 67 (lwptp->lwpt_rqtime.tv_sec > now.tv_sec || in lwp_timer_timeout() 68 (lwptp->lwpt_rqtime.tv_sec == now.tv_sec && in lwp_timer_timeout() 69 lwptp->lwpt_rqtime.tv_nsec > now.tv_nsec))) { in lwp_timer_timeout() 72 timespecsub(&delta, &now); in lwp_timer_timeout() 97 timespec_t now; in lwp_timer_copyin() local 103 gethrestime(&now); /* do this before copyin() */ in lwp_timer_copyin() 136 timespecadd(&lwptp->lwpt_rqtime, &now); in lwp_timer_copyin() 148 timespec_t now, delta; in lwp_timer_enqueue() local [all …]
|
/titanic_50/usr/src/cmd/sendmail/libsm/ |
H A D | clock.c | 97 auto struct timeval now, nowi, ival; local 100 auto time_t now, nowi; local 112 (void) gettimeofday(&now, NULL); 113 nowi = now; 114 timeradd(&now, &ival, &nowi); 116 now = time(NULL); 117 nowi = now + (time_t)(intvl / 1000); 168 timersub(&SmEventQueue->ev_time, &now, &itime.it_value); 177 intvl = SmEventQueue->ev_time - now; 329 struct timeval now; local [all …]
|
/titanic_50/usr/src/lib/libcmd/common/ |
H A D | date.c | 210 settime(void* context, const char* cmd, Time_t now, int adjust, int network) in settime() argument 218 return tmxsettime(now); in settime() 226 tmxfmt(buf, sizeof(buf), "%m%d%H" "%M%Y.%S", now); in settime() 232 tmxfmt(buf, sizeof(buf), "%Y%m%d%H" "%M.%S", now); in settime() 251 convert(register Fmt_t* f, char* s, Time_t now) in convert() argument 258 now = tmxscan(s, &t, f->format, &u, now, 0); in convert() 264 return now; in convert() 275 Time_t now; in b_date() local 366 now = tmxgettime(); in b_date() 389 ts = convert(fmts, s, now); in b_date() [all …]
|
/titanic_50/usr/src/lib/libsqlite/test/ |
H A D | date.test | 131 set now [clock format [clock seconds] -format "%Y-%m-%d" -gmt 1] 132 datetest 4.1 {date('now')} $now 171 datetest 6.16 {datetime('now','localtime')} {2000-07-01 08:34:56} 179 datetest 7.2 {datetime('now',null)} NULL 180 datetest 7.3 {datetime('now','localtime',null)} NULL 182 datetest 7.5 {time('now',null)} NULL 183 datetest 7.6 {time('now','localtime',null)} NULL 185 datetest 7.8 {date('now',null)} NULL 186 datetest 7.9 {date('now','localtime',null)} NULL 188 datetest 7.11 {julianday('now',null)} NULL [all …]
|
/titanic_50/usr/src/grub/grub-0.97/netboot/ |
H A D | i386_timer.c | 158 unsigned long long now; in __timer_running() local 159 rdtscll(now); in __timer_running() 160 return now < timer_timeout; in __timer_running() 165 unsigned long long now; in udelay() local 166 rdtscll(now); in udelay() 167 timer_timeout = now + usecs * ((clocks_per_tick * TICKS_PER_SEC)/(1000*1000)); in udelay() 172 unsigned long long now; in ndelay() local 173 rdtscll(now); in ndelay() 174 timer_timeout = now + nsecs * ((clocks_per_tick * TICKS_PER_SEC)/(1000*1000*1000)); in ndelay() 180 unsigned long long now; in load_timer2() local [all …]
|
/titanic_50/usr/src/uts/common/os/ |
H A D | clock_realtime.c | 77 timespec_t now, interval2nth; in clock_realtime_fire() local 127 gethrestime(&now); in clock_realtime_fire() 128 if (timerspeccmp(val, &now) > 0) in clock_realtime_fire() 137 ticks = timespectohz(val, now); in clock_realtime_fire() 150 timespec_t now; in clock_realtime_fire_first() local 155 gethrestime(&now); in clock_realtime_fire_first() 157 if ((val->tv_sec > now.tv_sec) || in clock_realtime_fire_first() 158 (val->tv_sec == now.tv_sec && val->tv_nsec > now.tv_nsec)) { in clock_realtime_fire_first() 188 timespec_t now; in clock_realtime_timer_settime() local 192 gethrestime(&now); in clock_realtime_timer_settime() [all …]
|
/titanic_50/usr/src/cmd/oamuser/lib/ |
H A D | vexpire.c | 44 time_t tmp, now; local 50 now = time( (time_t *)0 ); 53 tm = localtime( &now ); 54 now -= tm->tm_hour * 60*60 + tm->tm_min * 60 + tm->tm_sec; 55 now += 24 * 60 * 60; 57 if( tmp < now ) return( INVALID ); 59 if( expire ) *expire = now;
|
/titanic_50/usr/src/lib/libast/common/tm/ |
H A D | tmxduration.c | 38 Time_t now; in tmxduration() local 45 now = TMX_NOW; in tmxduration() 49 ns = tmxdate(s, &last, now) - now; in tmxduration() 57 ts = tmxdate(t, &x, now); in tmxduration() 61 ns = ts - now; in tmxduration() 67 ts = tmxdate(t, &x, now); in tmxduration() 71 ns = ts - now; in tmxduration()
|
H A D | tvtouch.c | 94 Tv_t now; in tvtouch() local 169 tvgettime(&now); in tvtouch() 171 av = (const Tv_t*)&now; in tvtouch() 173 mv = (const Tv_t*)&now; in tvtouch() 198 if (errno != ENOENT && av == (const Tv_t*)&now && mv == (const Tv_t*)&now && !utimets(path, NiL)) in tvtouch() 227 if (errno != ENOENT && av == (const Tv_t*)&now && mv == (const Tv_t*)&now && !utimes(path, NiL)) in tvtouch() 239 if (errno != ENOENT && av == (const Tv_t*)&now && mv == (const Tv_t*)&now && !utime(path, NiL)) in tvtouch() 249 if (av != (const Tv_t*)&now || mv != (const Tv_t*)&now) in tvtouch() 278 if (av == (const Tv_t*)&now && mv == (const Tv_t*)&now) in tvtouch()
|
/titanic_50/usr/src/lib/commpage/common/ |
H A D | cp_main.c | 120 timespec_t now; in __cp_clock_gettime_realtime() local 125 now.tv_sec = cp->cp_hrestime[0]; in __cp_clock_gettime_realtime() 126 now.tv_nsec = cp->cp_hrestime[1]; in __cp_clock_gettime_realtime() 135 now.tv_nsec += nslt; in __cp_clock_gettime_realtime() 144 now.tv_nsec += nslt; in __cp_clock_gettime_realtime() 149 now.tv_nsec += nslt; in __cp_clock_gettime_realtime() 155 while ((unsigned long)now.tv_nsec >= NANOSEC) { in __cp_clock_gettime_realtime() 156 now.tv_nsec -= NANOSEC; in __cp_clock_gettime_realtime() 157 now.tv_sec++; in __cp_clock_gettime_realtime() 163 *tsp = now; in __cp_clock_gettime_realtime()
|
/titanic_50/usr/src/lib/libnisdb/ |
H A D | nis_ldap.c | 115 struct timeval now; in rootDirExpired() local 117 (void) gettimeofday(&now, 0); in rootDirExpired() 119 if (rootDirExpire >= now.tv_sec) in rootDirExpired() 131 struct timeval now; in touchRootDir() local 134 (void) gettimeofday(&now, 0); in touchRootDir() 147 srand48(now.tv_sec); in touchRootDir() 161 rootDirExpire = now.tv_sec + ttl; in touchRootDir()
|
/titanic_50/usr/src/lib/libc/port/sys/ |
H A D | time_util.c | 74 timespec_t now; in abstime_to_reltime() local 77 hrt2ts(gethrtime(), &now); in abstime_to_reltime() 79 (void) __clock_gettime(clock_id, &now); in abstime_to_reltime() 80 if (abstime->tv_nsec >= now.tv_nsec) { in abstime_to_reltime() 81 reltime->tv_sec = abstime->tv_sec - now.tv_sec; in abstime_to_reltime() 82 reltime->tv_nsec = abstime->tv_nsec - now.tv_nsec; in abstime_to_reltime() 84 reltime->tv_sec = abstime->tv_sec - now.tv_sec - 1; in abstime_to_reltime() 85 reltime->tv_nsec = abstime->tv_nsec - now.tv_nsec + NANOSEC; in abstime_to_reltime()
|
/titanic_50/usr/src/uts/common/inet/sctp/ |
H A D | sctp_heartbeat.c | 123 int64_t now; in sctp_send_heartbeat() local 160 now = ddi_get_lbolt64(); in sctp_send_heartbeat() 162 bcopy(&now, t, sizeof (now)); in sctp_send_heartbeat() 188 fp->sf_lastactive = now; in sctp_send_heartbeat() 207 int64_t now; in sctp_validate_peer() local 211 now = ddi_get_lbolt64(); in sctp_validate_peer() 226 fp->sf_hb_expiry = now + fp->sf_rto; in sctp_validate_peer() 235 fp->sf_hb_expiry = now + in sctp_validate_peer() 259 earliest_expiry -= now; in sctp_validate_peer() 280 int64_t now; in sctp_process_heartbeat() local [all …]
|
/titanic_50/usr/src/cmd/power/ |
H A D | powerd.c | 504 time_t now; in alarm_handler() local 507 now = time(NULL); in alarm_handler() 509 if (checkidle_time <= now && checkidle_time != 0) in alarm_handler() 510 check_idleness(&now, &hr_now); in alarm_handler() 511 if (shutdown_time <= now && shutdown_time != 0) in alarm_handler() 512 check_shutdown(&now, &hr_now); in alarm_handler() 514 set_alarm(now); in alarm_handler() 521 time_t now; in work_handler() local 593 now = last_resume = time(NULL); in work_handler() 595 check_idleness(&now, &hr_now); in work_handler() [all …]
|
/titanic_50/usr/src/lib/libshell/common/sh/ |
H A D | timers.c | 49 register double now; in getnow() local 53 now = tp.tv_sec + 1.e-6*tp.tv_usec; in getnow() 56 now = (double)time((time_t*)0); in getnow() 58 return(now+.001); in getnow() 90 double now; in sigalrm() local 109 now = getnow(); in sigalrm() 116 if(tp->wakeup <=now) in sigalrm() 140 while((tp->wakeup += tp->incr) <= now); in sigalrm() 144 if(tpmin && (left==0 || (tp && tpmin->wakeup < (now+left)))) in sigalrm() 148 left = setalarm(tpmin->wakeup-now); in sigalrm() [all …]
|
/titanic_50/usr/src/lib/libshell/common/bltins/ |
H A D | sleep.c | 73 Time_t now,ns; in b_sleep() local 75 now = TMX_NOW; in b_sleep() 77 ns = tmxdate(cp, &last, now); in b_sleep() 81 ns = tmxdate(pp, &last, now); in b_sleep() 83 ns = tmxdate(pp, &last, now); in b_sleep() 87 d = ns - now; in b_sleep() 104 time_t now; in b_sleep() local 111 if(tloc < (now=time(NIL(time_t*)))) in b_sleep() 113 d = (double)(tloc-now); in b_sleep()
|
/titanic_50/usr/src/cmd/stat/common/ |
H A D | common.c | 66 hrtime_t now, pause, pause_left; in sleep_until() local 70 now = gethrtime(); in sleep_until() 71 pause = *wakeup + interval - now; in sleep_until() 76 *wakeup = now + interval; in sleep_until() 107 now = gethrtime(); in sleep_until() 108 pause_left = *wakeup - now; in sleep_until()
|
/titanic_50/usr/src/cmd/sendmail/src/ |
H A D | ratectrl.c | 102 time_t now; local 106 now = time(NULL); 112 totalrate = total_rate(now, e == NULL); 118 clientrate = client_rate(now, hostaddr, e == NULL); 222 client_rate(now, saddr, update) in client_rate() argument 223 time_t now; in client_rate() 241 ticks = now / ChtGran; 339 if (coll && (now - chBest->ch_LTime < CollTime)) 390 chBest->ch_LTime = now; 435 total_rate(now, update) in total_rate() argument [all …]
|
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/in.routed/ |
H A D | main.c | 69 struct timeval now; /* current idea of time */ variable 145 now.tv_sec = EPOCH; in main() 460 timevalsub(&now, &clk, &epoch); in main() 461 now_stale = now.tv_sec - STALE_TIME; in main() 462 now_expire = now.tv_sec - EXPIRE_TIME; in main() 463 now_garbage = now.tv_sec - GARBAGE_TIME; in main() 474 timevalsub(&select_timeout, &ifscan_timer, &now); in main() 486 timevalsub(&result, &sync_kern_timer, &now); in main() 489 sync_kern_timer.tv_sec = (now.tv_sec in main() 498 timevalsub(&result, &next_bcast, &now); in main() [all …]
|
/titanic_50/usr/src/cmd/sendmail/db/os/ |
H A D | os_fid.c | 41 time_t now; local 70 (void)time(&now); 71 for (p = (u_int8_t *)&now + 72 sizeof(now), i = 0; i < sizeof(now); ++i)
|
/titanic_50/usr/src/lib/udapl/udapl_tavor/common/ |
H A D | dapl_osd.c | 238 struct timeval now; in dapl_os_wait_object_wait() local 242 (void) gettimeofday(&now, &tz); in dapl_os_wait_object_wait() 243 microsecs = now.tv_usec + (timeout_val % 1000000); in dapl_os_wait_object_wait() 245 now.tv_sec = now.tv_sec + timeout_val / 1000000 + 1; in dapl_os_wait_object_wait() 246 now.tv_usec = microsecs - 1000000; in dapl_os_wait_object_wait() 248 now.tv_sec = now.tv_sec + timeout_val / 1000000; in dapl_os_wait_object_wait() 249 now.tv_usec = microsecs; in dapl_os_wait_object_wait() 253 future.tv_sec = now.tv_sec; in dapl_os_wait_object_wait() 254 future.tv_nsec = now.tv_usec * 1000; in dapl_os_wait_object_wait()
|
/titanic_50/usr/src/lib/libslp/clib/ |
H A D | slp_da_cache.c | 105 time_t now; in slp_find_das_cached() local 118 now = time(NULL); in slp_find_das_cached() 119 if ((*ans)->expires < now || (*ans)->max_life < now) { in slp_find_das_cached() 152 time_t now; in slp_put_das_cached() local 180 now = time(NULL); in slp_put_das_cached() 181 ce->max_life = now + MAX_LIFETIME; in slp_put_das_cached() 182 ce->expires = now + INIT_LIFETIME; in slp_put_das_cached()
|
/titanic_50/usr/src/cmd/dtrace/test/tst/common/vars/ |
H A D | tst.walltimestamp.d | 31 uint64_t now; variable 35 now = 18252813184; /* Jan 1, 2004 00:00:00 */ 46 /walltimestamp < now/ 48 printf("%d (%Y) is before %Y", walltimestamp, walltimestamp, now);
|
/titanic_50/usr/src/cmd/rpcsvc/ |
H A D | rpc.rusersd.c | 79 static int findidle(char *name, int ln, time_t now); 199 time_t now; local 202 time(&now); /* only one call to time() for this rpc call */ 222 sizeof (utent->ut_line), now); 226 console_idle(now)); 251 sizeof (utent->ut_line), now); 256 console_idle(now)); 294 console_idle(now) in console_idle() argument 295 time_t now; in console_idle() 304 return (min((unsigned)findidle("kbd", strlen("kbd"), now), [all …]
|