Home
last modified time | relevance | path

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

12345678910>>...36

/onnv-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()
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 …]
/onnv-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()
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 …]
/onnv-gate/usr/src/cmd/sendmail/libsm/
H A Dclock.c97 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 …]
/onnv-gate/usr/src/lib/libcmd/common/
H A Ddate.c210 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 …]
/onnv-gate/usr/src/lib/libsqlite/test/
H A Ddate.test131 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 …]
/onnv-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()
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 …]
/onnv-gate/usr/src/uts/common/os/
H A Dclock_realtime.c75 timespec_t now, interval2nth; in clock_realtime_fire() local
126 gethrestime(&now); in clock_realtime_fire()
127 if (timerspeccmp(val, &now) > 0) in clock_realtime_fire()
136 ticks = timespectohz(val, now); in clock_realtime_fire()
149 timespec_t now; in clock_realtime_fire_first() local
154 gethrestime(&now); in clock_realtime_fire_first()
156 if ((val->tv_sec > now.tv_sec) || in clock_realtime_fire_first()
157 (val->tv_sec == now.tv_sec && val->tv_nsec > now.tv_nsec)) { in clock_realtime_fire_first()
186 timespec_t now; in clock_realtime_timer_settime() local
190 gethrestime(&now); in clock_realtime_timer_settime()
[all …]
/onnv-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;
/onnv-gate/usr/src/lib/libast/common/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()
/onnv-gate/usr/src/cmd/perl/5.8.4/distrib/pod/
H A Dperl570delta.pod42 Arrays now always interpolate into double-quoted strings:
43 constructs like "foo@bar" now always assume C<@bar> is an array,
53 A reference to a reference now stringify as "REF(0x81485ec)" instead
72 recognised but now cause fatal errors. The previous behaviour of
78 The (bogus) escape sequences \8 and \9 now give an optional warning
84 lstat(FILEHANDLE) now gives a warning because the operation makes no sense.
90 operators (EQ, NE, LT, LE, GE, GT) have now been removed.
94 The regular expression captured submatches ($1, $2, ...) are now
112 C<perl -d:Module=arg,arg,arg> now works (previously one couldn't pass
117 my __PACKAGE__ $obj now works.
[all …]
/onnv-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()
/onnv-gate/usr/src/cmd/lms/SyncLib/src/
H A DThreadUnix.cpp101 timeval now; in wait() local
104 gettimeofday(&now, NULL); in wait()
107 timeout.tv_sec = now.tv_sec + time.tv_sec; in wait()
108 timeout.tv_nsec = now.tv_usec + time.tv_nsec; in wait()
137 timeval now; in start() local
140 gettimeofday(&now, &tz); in start()
141 _startTime = now.tv_sec; in start()
186 timeval now; in elapsedTime() local
188 gettimeofday(&now, &tz); in elapsedTime()
189 return ((now.tv_sec - _startTime)*1000); in elapsedTime()
/onnv-gate/usr/src/lib/libc/port/sys/
H A Dtime_util.c74 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()
/onnv-gate/usr/src/cmd/perl/5.8.4/distrib/lib/Memoize/t/
H A Dexpmod_t.t61 sub now { subroutine
80 $when{$_} = now($_);
92 $again{$_} = now($_); # Should be the same as before, because of memoization
108 print "not " unless close_enough(time, $again{1} = now(1));
115 print "not " unless now($_) == $again{$_};
123 print "not " unless close_enough(time, $again{2} = now(2));
130 if (very_close(scalar(now($_)), $again{$_})) {
/onnv-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()
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 …]
/onnv-gate/usr/src/cmd/power/
H A Dpowerd.c505 time_t now; in alarm_handler() local
508 now = time(NULL); in alarm_handler()
510 if (checkidle_time <= now && checkidle_time != 0) in alarm_handler()
511 check_idleness(&now, &hr_now); in alarm_handler()
512 if (shutdown_time <= now && shutdown_time != 0) in alarm_handler()
513 check_shutdown(&now, &hr_now); in alarm_handler()
515 set_alarm(now); in alarm_handler()
522 time_t now; in work_handler() local
594 now = last_resume = time(NULL); in work_handler()
596 check_idleness(&now, &hr_now); in work_handler()
[all …]
/onnv-gate/usr/src/lib/libshell/common/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()
144 if(tpmin && (left==0 || (tp && tpmin->wakeup < (now+left)))) in sigalrm()
148 left = setalarm(tpmin->wakeup-now); in sigalrm()
[all …]
/onnv-gate/usr/src/cmd/perl/5.8.4/distrib/ext/Encode/lib/Encode/CN/
H A DHZ.pm83 my $now;
86 $now = $1;
89 $now = '~';
104 $now = $GB->decode($1, $chk);
115 next if ! defined $now;
117 $ret .= $now;
119 if ($now eq $trm) {
/onnv-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()
/onnv-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);
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 …]
/onnv-gate/usr/src/lib/libshell/common/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()
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()
/onnv-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)
/onnv-gate/usr/src/cmd/dtrace/test/tst/common/vars/
H A Dtst.walltimestamp.d31 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);
/onnv-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Dmain.c69 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 …]

12345678910>>...36