Home
last modified time | relevance | path

Searched refs:now (Results 1 – 25 of 721) sorted by relevance

12345678910>>...29

/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/krb5/os/
H A Dc_ustime.c72 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()
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()
117 now.usec = 0; in krb5_crypto_us_timeofday()
[all …]
/illumos-gate/usr/src/uts/common/syscall/
H A Dlwp_timer.c58 timespec_t now, delta; in lwp_timer_timeout() local
61 gethrestime(&now); in lwp_timer_timeout()
72 timespecsub(&delta, &now); in lwp_timer_timeout()
97 timespec_t now; in lwp_timer_copyin() local
136 timespecadd(&lwptp->lwpt_rqtime, &now); in lwp_timer_copyin()
148 timespec_t now, delta; in lwp_timer_enqueue() local
152 gethrestime(&now); in lwp_timer_enqueue()
162 timespecsub(&delta, &now); in lwp_timer_enqueue()
199 timespec_t now; in lwp_timer_copyout() local
206 gethrestime(&now); in lwp_timer_copyout()
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dclock.c113 nowi = now;
116 now = time(NULL);
329 struct timeval now; local
343 now = time(NULL);
388 now = time(NULL);
395 ev->ev_time <= now
444 - now));
462 now = time(NULL);
538 time_t begin, now;
562 begin = now;
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Ddate.c227 return tmxsettime(now); in settime()
267 now = tmxscan(s, &t, f->format, &u, now, 0); in convert()
273 return now; in convert()
284 Time_t now; in b_date() local
392 now = tmxgettime(); in b_date()
415 ts = convert(fmts, s, now); in b_date()
450 now = tmxgetatime(&st); in b_date()
453 now = tmxgetctime(&st); in b_date()
456 now = tmxgetmtime(&st); in b_date()
480 now = convert(fmts, s, now); in b_date()
[all …]
/illumos-gate/usr/src/lib/libsqlite/test/
H A Ddate.test132 datetest 4.1 {date('now')} $now
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
189 datetest 7.12 {julianday('now','localtime',null)} NULL
190 datetest 7.13 {strftime(null,'now')} NULL
[all …]
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Di386_timer.c158 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()
180 unsigned long long now; in load_timer2() local
182 rdtscll(now); in load_timer2()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dclock_realtime.c77 timespec_t now, interval2nth; in clock_realtime_fire() local
127 gethrestime(&now); 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()
250 timespec_t now; in clock_realtime_timer_gettime() local
[all …]
/illumos-gate/usr/src/cmd/oamuser/lib/
H A Dvexpire.c44 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;
/illumos-gate/usr/src/boot/sys/boot/i386/libi386/
H A Dtime.c73 time_t now, check; in time() local
79 now = check; in time()
81 if (check != now) in time()
85 if (now < lasttime) in time()
86 now += 24 * 3600; in time()
87 lasttime = now; in time()
90 *t = now; in time()
91 return(now); in time()
/illumos-gate/usr/src/lib/commpage/common/
H A Dcp_main.c128 timespec_t now; in __cp_clock_gettime_realtime() local
133 now.tv_sec = cp->cp_hrestime[0]; in __cp_clock_gettime_realtime()
134 now.tv_nsec = cp->cp_hrestime[1]; in __cp_clock_gettime_realtime()
143 now.tv_nsec += nslt; in __cp_clock_gettime_realtime()
152 now.tv_nsec += nslt; in __cp_clock_gettime_realtime()
157 now.tv_nsec += nslt; in __cp_clock_gettime_realtime()
163 while ((unsigned long)now.tv_nsec >= NANOSEC) { in __cp_clock_gettime_realtime()
164 now.tv_nsec -= NANOSEC; in __cp_clock_gettime_realtime()
165 now.tv_sec++; in __cp_clock_gettime_realtime()
171 *tsp = now; in __cp_clock_gettime_realtime()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/tm/
H A Dtmxduration.c38 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 Dtvtouch.c94 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()
/illumos-gate/usr/src/lib/libnisdb/
H A Dnis_ldap.c115 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()
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_heartbeat.c123 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()
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
331 now = ddi_get_lbolt64(); in sctp_process_heartbeat()
[all …]
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dtime_util.c78 timespec_t now; in abstime_to_reltime() local
81 hrt2ts(gethrtime(), &now); in abstime_to_reltime()
83 (void) __clock_gettime(clock_id, &now); in abstime_to_reltime()
84 if (abstime->tv_nsec >= now.tv_nsec) { in abstime_to_reltime()
85 reltime->tv_sec = abstime->tv_sec - now.tv_sec; in abstime_to_reltime()
86 reltime->tv_nsec = abstime->tv_nsec - now.tv_nsec; in abstime_to_reltime()
88 reltime->tv_sec = abstime->tv_sec - now.tv_sec - 1; in abstime_to_reltime()
89 reltime->tv_nsec = abstime->tv_nsec - now.tv_nsec + NANOSEC; in abstime_to_reltime()
/illumos-gate/usr/src/cmd/power/
H A Dpowerd.c513 time_t now; in alarm_handler() local
516 now = time(NULL); in alarm_handler()
523 set_alarm(now); in alarm_handler()
530 time_t now; in work_handler() local
606 set_alarm(now); in work_handler()
635 if ((s < f && *now >= s && *now < f) || in check_shutdown()
636 (s >= f && (*now < f || *now >= s))) { in check_shutdown()
754 (void) time(now); in check_shutdown()
756 shutdown_time = *now + in check_shutdown()
976 set_alarm(time_t now) in set_alarm() argument
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dtimers.c49 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()
148 left = setalarm(tpmin->wakeup-now); in sigalrm()
149 if(left && (now+left) < tpmin->wakeup) in sigalrm()
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/
H A Dsleep.c73 Time_t now,ns; in b_sleep() local
75 now = TMX_NOW; in b_sleep()
77 ns = tmxdate(cp, &last, now); in b_sleep()
90 ns = tmxdate(pp, &last, now); in b_sleep()
92 ns = tmxdate(pp, &last, now); in b_sleep()
96 d = ns - now; in b_sleep()
114 time_t now; in b_sleep() local
121 if(tloc < (now=time(NIL(time_t*)))) in b_sleep()
123 d = (double)(tloc-now); in b_sleep()
/illumos-gate/usr/src/cmd/stat/common/
H A Dcommon.c66 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()
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dratectrl.c102 time_t now; local
106 now = time(NULL);
112 totalrate = total_rate(now, 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
436 time_t now; in total_rate()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Dmain.c145 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()
489 sync_kern_timer.tv_sec = (now.tv_sec in main()
542 timevalsub(&result, &no_flash, &now); in main()
633 ifscan_timer.tv_sec = now.tv_sec; in sigalrm()
875 ifscan_timer.tv_sec = now.tv_sec; in rip_on()
987 if (lim->reuse > now.tv_sec) { in msglim()
990 lim->reuse = now.tv_sec + 10*60; in msglim()
[all …]
/illumos-gate/usr/src/uts/i86pc/io/vmm/io/
H A Dvhpet.c104 sbintime_t now);
157 sbintime_t now, delta; in vhpet_counter() local
161 now = sbinuptime(); in vhpet_counter()
162 delta = now - vhpet->countbase_sbt; in vhpet_counter()
172 *nowptr = now; in vhpet_counter()
292 sbintime_t now; in vhpet_handler() local
317 counter = vhpet_counter(vhpet, &now); in vhpet_handler()
338 if (vhpet->timer[n].callout_sbt < now) { in vhpet_stop_timer()
391 vhpet_stop_timer(vhpet, i, now); in vhpet_stop_counting()
486 sbintime_t now, *nowptr; in vhpet_mmio_write() local
[all …]
/illumos-gate/usr/src/lib/udapl/udapl_tavor/common/
H A Ddapl_osd.c238 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()
/illumos-gate/usr/src/cmd/sendmail/db/os/
H A Dos_fid.c41 time_t now; local
70 (void)time(&now);
71 for (p = (u_int8_t *)&now +
72 sizeof(now), i = 0; i < sizeof(now); ++i)
/illumos-gate/usr/src/cmd/rpcsvc/
H A Drpc.rusersd.c79 static int findidle(char *name, int ln, time_t now);
199 time_t now; local
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()
305 (unsigned)findidle("mouse", strlen("mouse"), now)));
401 findidle(char *name, int ln, time_t now) in findidle() argument
[all …]

12345678910>>...29