Home
last modified time | relevance | path

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

12345678910>>...65

/openbsd/gnu/usr.bin/perl/cpan/Memoize/t/
H A Dexpmod_t.t25 INSTALL => 'now';
27 my (@before, @after, @now);
37 my $now = now($i);
40 # the time returned by now() should either straddle the
46 my $in_range0 = !$iteration || ($before[$i] <= $now && $now <= $after[$i]);
47 my $in_range1 = ($before <= $now && $now <= $after);
57 $ok = $after[$i] + $LIFETIME >= $before && $now[$i] == $now;
63 $ok = $before[$i] + $LIFETIME <= $after && $now[$i] != $now;
82 $before[$i]||-1, $after[$i]||-1, $before, $after, $now[$i]||-1, $now;
85 if (!defined($now[$i]) || $now[$i] != $now) {
[all …]
/openbsd/gnu/usr.bin/gcc/gcc/
H A Dtimevar.c183 get_time (now) in get_time() argument
186 now->user = 0;
187 now->sys = 0;
188 now->wall = 0;
276 get_time (&now);
285 start_time = now;
328 get_time (&now);
335 start_time = now;
388 get_time (&now);
442 get_time (&now);
[all …]
/openbsd/gnu/llvm/lldb/tools/debugserver/source/
H A DDNBTimer.h72 struct timeval now; in ElapsedMicroSeconds() local
73 gettimeofday(&now, NULL); in ElapsedMicroSeconds()
75 (uint64_t)(now.tv_sec) * 1000000ull + (uint64_t)now.tv_usec; in ElapsedMicroSeconds()
81 m_timeval = now; in ElapsedMicroSeconds()
86 struct timeval now; in GetTimeOfDay() local
87 gettimeofday(&now, NULL); in GetTimeOfDay()
89 (uint64_t)(now.tv_sec) * 1000000ull + (uint64_t)now.tv_usec; in GetTimeOfDay()
99 struct timeval now; variable
100 gettimeofday(&now, NULL);
114 struct timespec now; in TimeOfDayLaterThan() local
[all …]
/openbsd/gnu/gcc/gcc/
H A Dtimevar.c192 now->user = 0; in get_time()
193 now->sys = 0; in get_time()
194 now->wall = 0; in get_time()
268 struct timevar_time_def now; in timevar_push_1() local
277 get_time (&now); in timevar_push_1()
286 start_time = now; in timevar_push_1()
319 get_time (&now); in timevar_pop_1()
326 start_time = now; in timevar_pop_1()
375 get_time (&now); in timevar_stop()
401 get_time (&now); in timevar_print()
[all …]
/openbsd/sbin/isakmpd/
H A Dtimer.c52 struct timespec now; in timer_next_event() local
55 clock_gettime(CLOCK_MONOTONIC, &now); in timer_next_event()
68 struct timespec now; in timer_handle_expirations() local
71 clock_gettime(CLOCK_MONOTONIC, &now); in timer_handle_expirations()
73 n && timespeccmp(&now, &n->expiration, >=); in timer_handle_expirations()
90 struct timespec now; in timer_add_event() local
97 clock_gettime(CLOCK_MONOTONIC, &now); in timer_add_event()
112 (int)(expiration->tv_sec - now.tv_sec))); in timer_add_event()
131 struct timespec now; in timer_report() local
133 clock_gettime(CLOCK_MONOTONIC, &now); in timer_report()
[all …]
/openbsd/usr.sbin/unbound/services/cache/
H A Ddns.c218 if(now > data->ttl) { in rrset_expired_above()
397 time_t now = *env->now; in cache_fill_missing() local
462 0, now, 0); in find_add_ds()
625 if(now > r->ttl) { in tomsg()
655 :r->ttl - now; in tomsg()
689 region, now); in tomsg()
733 if(now > d->ttl) in rrset_msg()
767 if(now > d->ttl) in synth_dname_msg()
856 time_t now = *env->now; in fill_any() local
881 qclass, 0, now, 0); in fill_any()
[all …]
/openbsd/sbin/unwind/libunbound/services/cache/
H A Ddns.c218 if(now > data->ttl) { in rrset_expired_above()
397 time_t now = *env->now; in cache_fill_missing() local
462 0, now, 0); in find_add_ds()
625 if(now > r->ttl) { in tomsg()
655 :r->ttl - now; in tomsg()
689 region, now); in tomsg()
733 if(now > d->ttl) in rrset_msg()
767 if(now > d->ttl) in synth_dname_msg()
856 time_t now = *env->now; in fill_any() local
881 qclass, 0, now, 0); in fill_any()
[all …]
/openbsd/usr.bin/openssl/
H A Dapps_posix.c130 struct timespec elapsed, now; in app_timer_real() local
132 clock_gettime(CLOCK_MONOTONIC, &now); in app_timer_real()
134 timespecsub(&now, &start, &elapsed); in app_timer_real()
137 start = now; in app_timer_real()
146 struct rusage now; in app_timer_user() local
148 getrusage(RUSAGE_SELF, &now); in app_timer_user()
150 timersub(&now.ru_utime, &start, &elapsed); in app_timer_user()
153 start = now.ru_utime; in app_timer_user()
/openbsd/usr.sbin/sasyncd/
H A Dtimer.c72 struct timespec now; in timer_next_event() local
76 clock_gettime(CLOCK_MONOTONIC, &now); in timer_next_event()
77 if (timespeccmp(&now, &e->expire, >=)) in timer_next_event()
80 timespecsub(&e->expire, &now, ts); in timer_next_event()
94 struct timespec now; in timer_run() local
97 clock_gettime(CLOCK_MONOTONIC, &now); in timer_run()
98 for (e = TAILQ_FIRST(&events); e && timespeccmp(&now, &e->expire, >=); in timer_run()
114 struct timespec now, tmp; in timer_add() local
129 clock_gettime(CLOCK_MONOTONIC, &now); in timer_add()
130 timespecadd(&now, &tmp, &new->expire); in timer_add()
/openbsd/regress/sys/kern/kqueue/
H A Dkqueue-timer.c39 struct timespec ts, start, end, now; in do_timer() local
107 clock_gettime(CLOCK_REALTIME, &now); in do_timer()
115 ev.data = now.tv_sec + 1; in do_timer()
118 ev.data = now.tv_sec * 1000 + now.tv_nsec / 1000000 in do_timer()
122 ev.data = now.tv_sec * 1000000 + now.tv_nsec / 1000 in do_timer()
126 ev.data = now.tv_sec * 1000000000 + now.tv_nsec in do_timer()
155 clock_gettime(CLOCK_REALTIME, &now); in do_timer()
158 ev.data = now.tv_sec - 1; in do_timer()
161 ev.data = now.tv_sec * 1000 + now.tv_nsec / 1000000 in do_timer()
165 ev.data = now.tv_sec * 1000000 + now.tv_nsec / 1000 in do_timer()
[all …]
/openbsd/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/execute/
H A D950628-1.c9 T now; in g() local
11 now.hours = 1; in g()
12 now.day = 2; in g()
13 now.month = 3; in g()
14 now.year = 4; in g()
15 return now; in g()
/openbsd/usr.bin/lex/
H A DNEWS107 ** c++ scanners can now use yywrap
120 ** flex development now happens with automake 1.9.6
162 ** flex is now hosted at sourceforge
170 ** flex now works with recent bison versions
331 ** manual now discusses memory usage
365 ** yylex_init now reports errors
383 ** the yylineno performance hit is now gone
433 ** compilation with --disable-nls now works
435 ** flex can now be built in a separate directory
451 *** Options are now parsed left to right
[all …]
/openbsd/usr.sbin/unbound/testcode/
H A Dfake_event.c196 if(!runtime->now || runtime->now->evt_type != repevt_back_query in pending_matches_current()
404 &runtime->now->addr, runtime->now->addrlen, in answer_check_it()
679 struct replay_moment* now = runtime->now; in do_infra_rtt() local
684 rto = infra_rtt_update(runtime->infra, &now->addr, now->addrlen, in do_infra_rtt()
687 log_addr(0, "INFRA_RTT for", &now->addr, now->addrlen); in do_infra_rtt()
718 if(!runtime->now) in advance_moment()
720 else runtime->now = runtime->now->mom_next; in advance_moment()
1106 if(runtime->now && runtime->now->evt_type == repevt_back_query && in pending_udp_query()
1108 &runtime->now->addr, runtime->now->addrlen, in pending_udp_query()
1158 &runtime->now->addr, runtime->now->addrlen, in pending_tcp_query()
[all …]
H A Ddelayer.c274 when = *now; in ring_add()
383 p->lastuse = *now; in service_send()
429 p->lastuse = *now; in service_proxy()
451 t = *now; in find_create_proxy()
513 p->lastuse = *now; in service_recv()
600 p->timeout = *now;
654 item->wait = *now;
725 tout = *now;
758 &p->querylast, now))
776 now))
[all …]
H A Dperf.c307 perfsend(info, n, now); in perfreply()
316 perfsend(info, n, now); in perftimeout()
334 info->since = *now; in stat_printout()
346 struct timeval timeout, now; in perfselect() local
353 timeout = now; in perfselect()
361 timeout = now; in perfselect()
370 perftimeout(info, i, &now); in perfselect()
389 perfreply(info, i, &now); in perfselect()
400 struct timeval timeout, now; in perfendstats() local
404 timeout = now; in perfendstats()
[all …]
/openbsd/usr.bin/dig/lib/isc/
H A Dtimer.c167 struct timespec now; in isc_timer_create() local
186 clock_gettime(CLOCK_MONOTONIC, &now); in isc_timer_create()
196 timespecadd(&now, interval, &timer->idle); in isc_timer_create()
235 struct timespec now; in isc_timer_reset() local
250 clock_gettime(CLOCK_MONOTONIC, &now); in isc_timer_reset()
272 struct timespec now; in isc_timer_touch() local
278 clock_gettime(CLOCK_MONOTONIC, &now); in isc_timer_touch()
321 if (timespeccmp(now, &timer->due, >=)) { in dispatch()
490 struct timespec now; in isc_timermgr_dispatch() local
496 clock_gettime(CLOCK_MONOTONIC, &now); in isc_timermgr_dispatch()
[all …]
/openbsd/usr.sbin/amd/amd/
H A Dclock.c163 reschedule_timeouts(time_t now, time_t then) in reschedule_timeouts() argument
168 if (cp->c_time >= now && cp->c_time <= then) { in reschedule_timeouts()
172 cp->c_id, cp->c_time - now); in reschedule_timeouts()
174 next_softclock = cp->c_time = now; in reschedule_timeouts()
185 time_t now; in softclock() local
192 now = clocktime(); in softclock()
197 while ((cp = callouts.c_next) && cp->c_time <= now) { in softclock()
226 return cp->c_time - now; in softclock()
/openbsd/gnu/usr.bin/perl/cpan/Encode/lib/Encode/CN/
H A DHZ.pm87 my $now;
90 $now = $1;
93 $now = '~';
108 $now = $GB->decode( $1, $chk );
119 next if !defined $now;
121 $ret .= $now;
123 if ( $now eq $trm ) {
/openbsd/games/backgammon/backgammon/
H A Dmove.c194 now = nextfree(); /* get free BOARD */ in bsave()
198 now->b_board[i] = board[i]; in bsave()
199 now->b_in[0] = in[0]; in bsave()
200 now->b_in[1] = in[1]; in bsave()
201 now->b_off[0] = off[0]; in bsave()
202 now->b_off[1] = off[1]; in bsave()
204 now->b_st[i] = p[i]; in bsave()
205 now->b_fn[i] = g[i]; in bsave()
207 return(now); in bsave()
318 struct BOARD *now = bsave(); in pickmove() local
[all …]
/openbsd/sys/net/
H A Dfq_codel.c296 codel_gettime(int64_t *now) in codel_gettime() argument
325 m->m_pkthdr.ph_timestamp = now; in codel_enqueue()
390 cd->start = now + cp->interval; in codel_next_packet()
391 } else if (now > cd->start) { in codel_next_packet()
409 else if (now >= cd->next) in codel_state_change()
453 if (now < cd->next || in codel_dequeue()
460 control_law(cd, cp, now); in codel_dequeue()
539 int64_t now; in fqcodel_enq() local
546 codel_gettime(&now); in fqcodel_enq()
648 int64_t now; in fqcodel_deq_begin() local
[all …]
/openbsd/gnu/usr.bin/perl/pod/
H A Dperl58delta.pod331 regular expressions should work now, Unicode in tr/// should work now,
1368 with 'no lib' now works.
1383 now supported, Win32 functionality is better, there is now time
1698 behaviour of sort() is now better (in computer science terms it now
2144 condition C<"0"> now treated correctly, the C<d> command now checks
2184 C<*foo{FORMAT}> now works.
2402 is now avoided. [561]
2420 again now. [561]
2489 C<eval "v200"> now works.
2658 chdir() now works better despite a CRT bug; now works with MULTIPLICITY
[all …]
/openbsd/gnu/gcc/gcc/cp/
H A DNEWS7 * The "new X = 3" extension has been removed; you must now use "new X(3)".
103 * G++ now enforces access control for nested types.
149 * References to functions are now supported.
189 * operator new now throws bad_alloc where appropriate.
195 * protected virtual inheritance is now supported.
217 standard is now available. See
237 + Member function templates are now supported.
240 is now supported.
270 now supported. For instance:
353 * new (nothrow) is now supported.
[all …]
/openbsd/gnu/usr.bin/gcc/gcc/cp/
H A DNEWS3 * The "new X = 3" extension has been removed; you must now use "new X(3)".
99 * G++ now enforces access control for nested types.
145 * References to functions are now supported.
185 * operator new now throws bad_alloc where appropriate.
191 * protected virtual inheritance is now supported.
213 standard is now available. See
233 + Member function templates are now supported.
236 is now supported.
266 now supported. For instance:
349 * new (nothrow) is now supported.
[all …]
/openbsd/gnu/llvm/lld/docs/
H A DReleaseNotes.rst30 initialization and relocation scanning are now parallel.
33 * ``ELFCOMPRESS_ZSTD`` compressed input sections are now supported.
35 * ``--compress-debug-sections=zstd`` is now available to compress debug
38 * ``--no-warnings``/``-w`` is now available to suppress warnings.
43 * ``DT_STATIC_TLS`` is now set for AArch64/PPC32/PPC64 initial-exec TLS models
45 * ``--no-undefined-version`` is now the default; symbols named in version
52 ``STB_GNU_UNIQUE`` in different COMDATs) is now supported.
54 * The output ``SHT_RISCV_ATTRIBUTES`` section now merges all input components
58 are now supported. Previous output might have runtime crash.
59 * Armv4(T) thunks are now supported.
[all …]
/openbsd/usr.sbin/smtpd/
H A Drunq.c45 time_t now; in runq_reset() local
51 now = time(NULL); in runq_reset()
52 if (job->when <= now) in runq_reset()
55 tv.tv_sec = job->when - now; in runq_reset()
65 time_t now; in runq_timeout() local
68 now = time(NULL); in runq_timeout()
71 if (job->when > now) in runq_timeout()

12345678910>>...65