Searched refs:now (Results 1 - 25 of 233) sorted by relevance

12345678910

/osnet-11/usr/src/grub/grub-0.97/netboot/
H A Di386_timer.c158 unsigned long long now; local
159 rdtscll(now);
160 return now < timer_timeout;
165 unsigned long long now; local
166 rdtscll(now);
167 timer_timeout = now + usecs * ((clocks_per_tick * TICKS_PER_SEC)/(1000*1000));
172 unsigned long long now; local
173 rdtscll(now);
174 timer_timeout = now + nsecs * ((clocks_per_tick * TICKS_PER_SEC)/(1000*1000*1000));
180 unsigned long long now; local
[all...]
/osnet-11/usr/src/lib/libast/common/tm/
H A Dtmxduration.c38 Time_t now; local
45 now = TMX_NOW;
49 ns = tmxdate(s, &last, now) - now;
57 ts = tmxdate(t, &x, now);
61 ns = ts - now;
67 ts = tmxdate(t, &x, now);
71 ns = ts - now;
H A Dtvtouch.c94 Tv_t now; local
169 tvgettime(&now);
171 av = (const Tv_t*)&now;
173 mv = (const Tv_t*)&now;
198 if (errno != ENOENT && av == (const Tv_t*)&now && mv == (const Tv_t*)&now && !utimets(path, NiL))
227 if (errno != ENOENT && av == (const Tv_t*)&now && mv == (const Tv_t*)&now && !utimes(path, NiL))
239 if (errno != ENOENT && av == (const Tv_t*)&now && mv == (const Tv_t*)&now
[all...]
H A Dtmxtime.c53 time_t now; local
95 now = tmxsec(tmxtime(tm, tm_info.zone->west));
97 if (!(tl = tmlocaltime(&now)))
113 now = tmxsec(tmxtime(tm, tm_info.zone->west));
115 if (!(tl = tmlocaltime(&now)))
/osnet-11/usr/src/lib/libnisdb/
H A Dnis_ldap.c110 struct timeval now; local
112 (void) gettimeofday(&now, 0);
114 if (rootDirExpire >= now.tv_sec)
121 * Update the expiration time of the root dir to be now plus the TTL.
126 struct timeval now; local
129 (void) gettimeofday(&now, 0);
142 srand48(now.tv_sec);
156 rootDirExpire = now.tv_sec + ttl;
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/Memoize/t/
H A Dexpmod_t.t61 sub now { subroutine
67 memoize 'now',
80 $when{$_} = now($_);
87 # values will now expire at T=15, 21, 27
88 # it is now T=12
92 $again{$_} = now($_); # Should be the same as before, because of memoization
107 wait_until(18); # now(1) expires
108 print "not " unless close_enough(time, $again{1} = now(1));
115 print "not " unless now($_) == $again{$_};
119 wait_until(24); # now(
[all...]
/osnet-11/usr/src/lib/libc/port/sys/
H A Dtime_util.c74 timespec_t now; local
77 hrt2ts(gethrtime(), &now); local
79 (void) __clock_gettime(clock_id, &now);
80 if (abstime->tv_nsec >= now.tv_nsec) {
81 reltime->tv_sec = abstime->tv_sec - now.tv_sec;
82 reltime->tv_nsec = abstime->tv_nsec - now.tv_nsec;
84 reltime->tv_sec = abstime->tv_sec - now.tv_sec - 1;
85 reltime->tv_nsec = abstime->tv_nsec - now.tv_nsec + NANOSEC;
/osnet-11/usr/src/lib/libcmd/common/
H A Ddate.c219 settime(void* context, const char* cmd, Time_t now, int adjust, int network) argument
227 return tmxsettime(now);
235 tmxfmt(buf, sizeof(buf), "%m%d%H" "%M%Y.%S", now);
241 tmxfmt(buf, sizeof(buf), "%Y%m%d%H" "%M.%S", now);
260 convert(register Fmt_t* f, char* s, Time_t now) argument
267 now = tmxscan(s, &t, f->format, &u, now, 0);
273 return now;
284 Time_t now; local
392 now
[all...]
/osnet-11/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)
/osnet-11/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;
220 /* now remov
329 struct timeval now; local
331 register time_t now; local
[all...]
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Dcontext_time.c38 krb5_timestamp now; local
54 if ((code = krb5_timeofday(ctx->k5_context, &now))) {
60 if ((lifetime = ctx->krb_times.endtime - now) <= 0) {
/osnet-11/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) {
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/t/op/
H A Dtime.t31 while (($now = time) == $beg) { sleep 1 }
33 ok($now > $beg && $now - $beg < 10, 'very basic time test');
45 ($xsec,$foo) = localtime($now);
60 ($xsec,$foo) = localtime($now);
/osnet-11/usr/src/lib/libumem/common/
H A Dumem_update_thread.c38 struct timeval now; local
52 * we wait until now to set the next update time
77 (void) gettimeofday(&now, NULL);
78 if (now.tv_sec > umem_update_next.tv_sec ||
79 (now.tv_sec == umem_update_next.tv_sec &&
80 now.tv_usec >= umem_update_next.tv_usec)) {
/osnet-11/usr/src/lib/libparted/common/libparted/
H A Dtimer.c162 * First it updates \p timer->now and recomputes \p timer->predicted_end,
171 timer->now = time (NULL);
172 if (timer->now > timer->predicted_end)
173 timer->predicted_end = timer->now;
183 * It resets the \p timer, by setting \p timer->start and \p timer->now
192 timer->start = timer->now = timer->predicted_end = time (NULL);
213 timer->now = time (NULL);
219 + (long) ((timer->now - timer->start) / frac);
/osnet-11/usr/src/lib/libslp/clib/
H A Dslp_da_cache.c105 time_t now; local
118 now = time(NULL);
119 if ((*ans)->expires < now || (*ans)->max_life < now) {
152 time_t now; local
180 now = time(NULL);
181 ce->max_life = now + MAX_LIFETIME;
182 ce->expires = now + INIT_LIFETIME;
/osnet-11/usr/src/lib/libshell/common/sh/
H A Dtimers.c49 register double now; local
53 now = tp.tv_sec + 1.e-6*tp.tv_usec;
56 now = (double)time((time_t*)0);
58 return(now+.001);
90 double now; local
109 now = getnow();
116 if(tp->wakeup <=now)
140 while((tp->wakeup += tp->incr) <= now);
144 if(tpmin && (left==0 || (tp && tpmin->wakeup < (now+left))))
148 left = setalarm(tpmin->wakeup-now);
[all...]
/osnet-11/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);
209 ** now - current time in secs
222 client_rate(now, saddr, update)
223 time_t now;
241 ticks = now / ChtGran;
339 if (coll && (now - chBest->ch_LTime < CollTime))
390 chBest->ch_LTime = now;
[all...]
/osnet-11/usr/src/lib/libldap4/util/
H A Dlog.c107 time_t now; local
154 time(&now);
155 if (now-timelast > 60) {
157 timelast = now;
158 ctime_r(&now, timestr, 128);
/osnet-11/usr/src/lib/libldap5/sources/ldap/util/
H A Dlog.c107 time_t now; local
154 time(&now);
155 if (now-timelast > 60) {
157 timelast = now;
158 ctime_r(&now, timestr, 128);
/osnet-11/usr/src/lib/udapl/udapl_tavor/common/
H A Ddapl_osd.c238 struct timeval now; local
242 (void) gettimeofday(&now, &tz);
243 microsecs = now.tv_usec + (timeout_val % 1000000);
245 now.tv_sec = now.tv_sec + timeout_val / 1000000 + 1;
246 now.tv_usec = microsecs - 1000000;
248 now.tv_sec = now.tv_sec + timeout_val / 1000000;
249 now.tv_usec = microsecs;
253 future.tv_sec = now
[all...]
/osnet-11/usr/src/lib/libnisdb/yptol/
H A Dttl_utils.c68 struct timeval now; local
136 gettimeofday(&now, NULL);
144 return (is_greater_timeval(&now, &old_time));
189 struct timeval now; local
193 gettimeofday(&now, NULL);
198 if (FAILURE == add_to_timeval(&now, ttl))
203 expire.dptr = (char *)&now;
H A Dyptol_utils.c168 struct timeval now; local
170 if (0 != gettimeofday(&now, NULL)) {
174 sprintf(time_string, "%010ld", (long)now.tv_sec);
/osnet-11/usr/src/lib/libshell/common/bltins/
H A Dsleep.c73 Time_t now,ns; local
75 now = TMX_NOW;
77 ns = tmxdate(cp, &last, now);
90 ns = tmxdate(pp, &last, now);
92 ns = tmxdate(pp, &last, now);
96 d = ns - now;
114 time_t now; local
121 if(tloc < (now=time(NIL(time_t*))))
123 d = (double)(tloc-now);
/osnet-11/usr/src/lib/libparted/common/include/parted/
H A Dtimer.h42 time_t now; /**< time of last update (now!) */ member in struct:_PedTimer

Completed in 84 milliseconds

12345678910