/openbsd/gnu/usr.bin/perl/cpan/Memoize/t/ |
H A D | expmod_t.t | 25 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 D | timevar.c | 183 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 D | DNBTimer.h | 72 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 D | timevar.c | 192 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 D | timer.c | 52 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/sbin/unwind/libunbound/services/cache/ |
H A D | dns.c | 373 time_t now = *env->now; in cache_fill_missing() local 445 0, now, 0); in find_add_ds() 607 time_t now_control = now; in tomsg() 608 if(now > r->ttl) { in tomsg() 638 :r->ttl - now; in tomsg() 672 region, now); in tomsg() 716 if(now > d->ttl) in rrset_msg() 750 if(now > d->ttl) in synth_dname_msg() 839 time_t now = *env->now; in fill_any() local 864 qclass, 0, now, 0); in fill_any() [all …]
|
/openbsd/usr.sbin/unbound/services/cache/ |
H A D | dns.c | 373 time_t now = *env->now; in cache_fill_missing() local 445 0, now, 0); in find_add_ds() 607 time_t now_control = now; in tomsg() 608 if(now > r->ttl) { in tomsg() 638 :r->ttl - now; in tomsg() 672 region, now); in tomsg() 716 if(now > d->ttl) in rrset_msg() 750 if(now > d->ttl) in synth_dname_msg() 839 time_t now = *env->now; in fill_any() local 864 qclass, 0, now, 0); in fill_any() [all …]
|
/openbsd/usr.bin/openssl/ |
H A D | apps_posix.c | 130 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 D | timer.c | 72 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/usr.bin/ssh/ |
H A D | srclimit.c | 235 expire_penalties(time_t now) in expire_penalties() argument 261 time_t now; in srclimit_penalty_check_allow() local 278 now = monotime(); in srclimit_penalty_check_allow() 279 expire_penalties(now); in srclimit_penalty_check_allow() 299 expire_penalties(now); in srclimit_penalty_check_allow() 348 time_t now; in srclimit_penalise() local 398 now = monotime(); in srclimit_penalise() 399 expire_penalties(now); in srclimit_penalise() 467 time_t now; in srclimit_penalty_info_for_tree() local 469 now = monotime(); in srclimit_penalty_info_for_tree() [all …]
|
H A D | log.c | 517 if (now < 0) in log_ratelimit() 526 rl->last_event = now; in log_ratelimit() 527 if (now > rl->last_event) { in log_ratelimit() 528 uint64_t n = now - rl->last_event; in log_ratelimit() 542 rl->last_event = now; in log_ratelimit() 552 (long)(now - rl->hysteresis_start), in log_ratelimit() 562 rl->hysteresis_start = now; in log_ratelimit() 583 rl->ratelimit_start = now; in log_ratelimit() 584 rl->last_log = now; in log_ratelimit() 600 (long)(now - rl->last_log))); in log_ratelimit() [all …]
|
/openbsd/usr.sbin/unbound/testcode/ |
H A D | fake_event.c | 200 if(!runtime->now || runtime->now->evt_type != repevt_back_query in pending_matches_current() 408 &runtime->now->addr, runtime->now->addrlen, in answer_check_it() 683 struct replay_moment* now = runtime->now; in do_infra_rtt() local 688 rto = infra_rtt_update(runtime->infra, &now->addr, now->addrlen, in do_infra_rtt() 691 log_addr(0, "INFRA_RTT for", &now->addr, now->addrlen); in do_infra_rtt() 702 struct replay_moment* now = runtime->now; in do_flush_message() local 726 struct replay_moment* now = runtime->now; in do_expire_message() local 784 else runtime->now = runtime->now->mom_next; in advance_moment() 1180 &runtime->now->addr, runtime->now->addrlen, in pending_udp_query() 1230 &runtime->now->addr, runtime->now->addrlen, in pending_tcp_query() [all …]
|
H A D | delayer.c | 274 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 D | perf.c | 307 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/regress/sys/kern/kqueue/ |
H A D | kqueue-timer.c | 39 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 D | 950628-1.c | 9 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 D | NEWS | 107 ** 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.bin/dig/lib/isc/ |
H A D | timer.c | 167 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 D | clock.c | 163 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 D | HZ.pm | 87 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 D | move.c | 194 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/gnu/usr.bin/perl/pod/ |
H A D | perl58delta.pod | 331 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 D | NEWS | 7 * 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 D | NEWS | 3 * 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 D | ReleaseNotes.rst | 30 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 …]
|