/dragonfly/contrib/gcc-4.7/gcc/ |
H A D | timevar.c | 182 now->user = 0; in get_time() 183 now->sys = 0; in get_time() 184 now->wall = 0; in get_time() 267 get_time (&now); in timevar_push_1() 276 start_time = now; in timevar_push_1() 309 get_time (&now); in timevar_pop_1() 316 start_time = now; in timevar_pop_1() 366 get_time (&now); in timevar_stop() 419 get_time (&now); in timevar_cond_stop() 446 get_time (&now); in timevar_print() [all …]
|
/dragonfly/stand/boot/pc32/libi386/ |
H A D | time.c | 44 time_t now; in bios_seconds() local 57 now = hr * 3600 + minute * 60 + sec; in bios_seconds() 59 return (now); in bios_seconds() 74 time_t now, check; in time() local 80 now = check; in time() 82 if (check != now) in time() 86 if (now < lasttime) in time() 87 now += 24 * 3600; in time() 88 lasttime = now; in time() 91 *t = now; in time() [all …]
|
/dragonfly/contrib/binutils-2.34/gold/ |
H A D | timer.cc | 93 Timer::get_time(TimeStats *now) in get_time() argument 97 now->wall = (times(&t) * 1000) / ticks_per_sec; in get_time() 98 now->user = (t.tms_utime * 1000) / ticks_per_sec; in get_time() 101 now->wall = get_run_time() / 1000; in get_time() 102 now->user = 0; in get_time() 103 now->sys = 0; in get_time() 111 TimeStats now; in get_elapsed_time() local 112 this->get_time(&now); in get_elapsed_time() 114 delta.wall = now.wall - this->start_time_.wall; in get_elapsed_time() 115 delta.user = now.user - this->start_time_.user; in get_elapsed_time() [all …]
|
/dragonfly/contrib/binutils-2.27/gold/ |
H A D | timer.cc | 93 Timer::get_time(TimeStats *now) in get_time() argument 97 now->wall = (times(&t) * 1000) / ticks_per_sec; in get_time() 98 now->user = (t.tms_utime * 1000) / ticks_per_sec; in get_time() 101 now->wall = get_run_time() / 1000; in get_time() 102 now->user = 0; in get_time() 103 now->sys = 0; in get_time() 111 TimeStats now; in get_elapsed_time() local 112 this->get_time(&now); in get_elapsed_time() 114 delta.wall = now.wall - this->start_time_.wall; in get_elapsed_time() 115 delta.user = now.user - this->start_time_.user; in get_elapsed_time() [all …]
|
/dragonfly/contrib/gcc-8.0/gcc/ |
H A D | timevar.c | 219 now->user = 0; in get_time() 220 now->sys = 0; in get_time() 221 now->wall = 0; in get_time() 348 get_time (&now); in push_internal() 357 m_start_time = now; in push_internal() 399 get_time (&now); in pop_internal() 422 m_start_time = now; in pop_internal() 485 get_time (&now); in stop() 554 get_time (&now); in cond_stop() 704 get_time (&now); in print() [all …]
|
/dragonfly/contrib/openpam/lib/libpam/ |
H A D | openpam_ttyconv.c | 89 struct timeval now, target, remaining; in prompt_tty() local 129 (void)gettimeofday(&now, NULL); in prompt_tty() 132 timeradd(&now, &remaining, &target); in prompt_tty() 135 now.tv_sec = now.tv_usec = 0; in prompt_tty() 149 gettimeofday(&now, NULL); in prompt_tty() 150 if (timercmp(&now, &target, >)) in prompt_tty() 229 (void)gettimeofday(&now, NULL); in prompt_notty() 232 timeradd(&now, &remaining, &target); in prompt_notty() 235 now.tv_sec = now.tv_usec = 0; in prompt_notty() 247 gettimeofday(&now, NULL); in prompt_notty() [all …]
|
/dragonfly/crypto/libressl/apps/openssl/ |
H A D | apps_posix.c | 140 struct timespec elapsed, now; in app_timer_real() local 142 clock_gettime(CLOCK_MONOTONIC, &now); in app_timer_real() 144 timespecsub(&now, &start, &elapsed); in app_timer_real() 147 start = now; in app_timer_real() 156 struct rusage now; in app_timer_user() local 158 getrusage(RUSAGE_SELF, &now); in app_timer_user() 160 timersub(&now.ru_utime, &start, &elapsed); in app_timer_user() 163 start = now.ru_utime; in app_timer_user()
|
/dragonfly/sbin/routed/ |
H A D | main.c | 112 now.tv_sec = EPOCH; in main() 362 timevalsub(&now, &clk, &epoch); in main() 441 if (!timercmp(&no_flash, &now, >)) in main() 443 timevalsub(&t2, &no_flash, &now); in main() 450 timevalsub(&t2, &age_timer, &now); in main() 460 timevalsub(&t2, &need_kern, &now); in main() 522 ifinit_timer.tv_sec = now.tv_sec; in sigalrm() 751 ifinit_timer.tv_sec = now.tv_sec; in rip_on() 867 if (lim->reuse > now.tv_sec) { in msglim() 871 lim->reuse = now.tv_sec + 10*60; in msglim() [all …]
|
/dragonfly/usr.sbin/rtadvd/ |
H A D | timer.c | 158 struct timespec now; in rtadvd_check_timer() local 161 clock_gettime(CLOCK_MONOTONIC_FAST, &now); in rtadvd_check_timer() 164 if (TS_CMP(&rat->rat_tm, &now, <=)) { in rtadvd_check_timer() 169 TS_ADD(&rat->rat_tm, &now, &rat->rat_tm); in rtadvd_check_timer() 177 } else if (TS_CMP(&tm_max, &now, <)) { in rtadvd_check_timer() 181 TS_SUB(&tm_max, &now, &returnval); in rtadvd_check_timer() 188 struct timespec now; in rtadvd_set_timer() local 191 clock_gettime(CLOCK_MONOTONIC_FAST, &now); in rtadvd_set_timer() 192 TS_ADD(&now, tm, &rat->rat_tm); in rtadvd_set_timer()
|
/dragonfly/contrib/tcsh-6/ |
H A D | tc.func.c | 1344 now = pl; in insert() 1345 xfree(now->word); in insert() 1370 cp1 = now->word; in insert() 1391 now->word = bcmd; in insert() 1397 now = pl; in insert() 1402 for (now = now->next; in insert() 1403 *now->word != '\n' && *now->word != ';' && now != pl;) { in insert() 1404 now->prev->next = now->next; in insert() 1405 now->next->prev = now->prev; in insert() 1407 del = now; in insert() [all …]
|
/dragonfly/usr.bin/top/ |
H A D | username.c | 89 time_t now; in username() local 92 now = time(NULL); in username() 113 if (data->expire <= now) in username() 118 data->expire = now + EXPIRETIME; in username() 126 data->expire = now + EXPIRETIME; in username()
|
/dragonfly/games/larn/ |
H A D | Fixed.Bugs | 8 0. lprintf() in fileio.c (now called io.c) has been changed to use varargs 9 so that its variable number of arguments usage is now portable. Pyramids 18 2. The version number of the program is now selectable from the Makefile. 33 is needless to say, fixed. Absolute bounds are now in effect for missile 51 player might end up with a negative strength. Strength is now stored 53 can now be weakened down to a minimum of 3, so unless you have a ring of 72 playerid's will now be used to govern scoreboard entry posting. This 102 is now looked for. 173 This call has been replaced (now using loginname already determined). 208 demise is now included in the logfile. [all …]
|
/dragonfly/contrib/wpa_supplicant/src/utils/ |
H A D | eloop_win.c | 320 struct os_reltime now; in eloop_cancel_timeout_one() local 322 os_get_reltime(&now); in eloop_cancel_timeout_one() 331 if (os_reltime_before(&now, &timeout->time)) in eloop_cancel_timeout_one() 361 struct os_reltime now, requested, remaining; in eloop_deplete_timeout() local 370 os_get_reltime(&now); in eloop_deplete_timeout() 393 struct os_reltime now, requested, remaining; in eloop_replenish_timeout() local 402 os_get_reltime(&now); in eloop_replenish_timeout() 535 struct os_reltime tv, now; in eloop_run() local 547 os_get_reltime(&now); in eloop_run() 549 os_reltime_sub(&timeout->time, &now, &tv); in eloop_run() [all …]
|
/dragonfly/lib/libpam/modules/pam_lastlog/ |
H A D | pam_lastlog.c | 94 struct timeval now; in pam_sm_open_session() local 139 (void)gettimeofday(&now, NULL); in pam_sm_open_session() 152 dolastlogx(pamh, quiet, pwd, rhost, tty, NULL, &now); in pam_sm_open_session() 153 doutmpx(user, rhost, tty, NULL, &now); in pam_sm_open_session() 210 const struct sockaddr_storage *ss, const struct timeval *now) in doutmpx() argument 216 utmpx.ut_tv = *now; in doutmpx() 244 const struct timeval *now __unused) in dolastlogx() 254 ll.ll_tv = *now; in dolastlogx()
|
/dragonfly/usr.sbin/ppp/ |
H A D | README.changes | 33 to answer any `this used to work, why doesn't it now?' 51 o pppd-deflate is now called deflate24. 73 o Filters are now called `allow', `dial', `in' and `out'. `set 84 o `set loopback' is now `enable/disable loopback'. 89 o A signal 15 (TERM) will now shut down the link gracefully. 91 o Signal 30 (USR1) is now ignored. 95 o Timer based DEBUG messages are now logged in the new TIMER log. 109 o Ppp now accepts M$CHAP (as well as normal CHAP) by default. If this 119 command should now be used instead. 130 o ``nat pptp'' is no longer necessary as this is now done transparently [all …]
|
/dragonfly/tools/tools/net80211/w00t/prga/ |
H A D | prga.c | 335 struct timeval now; in wait_ack() local 343 if (gettimeofday(&now, NULL) == -1) in wait_ack() 347 el = elapsed(&p->last, &now); in wait_ack() 364 now.tv_sec = el/1000/1000; in wait_ack() 365 now.tv_usec = el - now.tv_sec*1000*1000; in wait_ack() 369 if (select(p->rx+1, &fds, NULL, NULL, &now) == -1) in wait_ack() 403 struct timeval now; in wait_relay() local 413 if (gettimeofday(&now, NULL) == -1) in wait_relay() 416 el = elapsed(&p->last, &now); in wait_relay() 425 now.tv_sec = el/1000/1000; in wait_relay() [all …]
|
/dragonfly/usr.sbin/mfiutil/ |
H A D | mfi_patrol.c | 43 adapter_time(time_t now, uint32_t at_now, uint32_t at) in adapter_time() argument 47 t = (now - at_now) + at; in adapter_time() 84 time_t now; in show_patrol() local 96 time(&now); in show_patrol() 120 printf(" Next Run Starts: %s", adapter_time(now, at, in show_patrol() 251 time_t now; in patrol_config() local 312 time(&now); in patrol_config() 320 adapter_time(now, at, prop.next_exec)); in patrol_config()
|
/dragonfly/contrib/wpa_supplicant/src/ap/ |
H A D | pmksa_cache_auth.c | 112 struct os_reltime now; in pmksa_cache_expire() local 114 os_get_reltime(&now); in pmksa_cache_expire() 128 struct os_reltime now; in pmksa_cache_set_expiration() local 133 os_get_reltime(&now); in pmksa_cache_set_expiration() 321 struct os_reltime now; in pmksa_cache_auth_create_entry() local 342 os_get_reltime(&now); in pmksa_cache_auth_create_entry() 343 entry->expiration = now.sec; in pmksa_cache_auth_create_entry() 635 struct os_reltime now; in pmksa_cache_auth_list() local 637 os_get_reltime(&now); in pmksa_cache_auth_list() 686 struct os_reltime now; in pmksa_cache_auth_list_mesh() local [all …]
|
/dragonfly/gnu/usr.bin/rcs/ |
H A D | NEWS | 75 rlog's -d option by default now uses exclusive time ranges. 137 File names may now contain tab, newline, space, and '$'. 144 A bare -V option now prints the current version number. 153 Mach style memory mapping is now supported. 212 RCS can now be used as a setuid program. 269 Years given in -d options must now have four digits. 285 a space, not a tab, is now output after `$Log:'. 298 RCS can now emulate older versions of RCS; see `co -V'. 315 rcsdiff now passes through all options used by GNU diff; 339 are now handled more cleanly, portably, and quickly. [all …]
|
/dragonfly/games/backgammon/backgammon/ |
H A D | move.c | 248 now = nextfree(); /* get free BOARD */ in bsave() 252 now->b_board[i] = board[i]; in bsave() 253 now->b_in[0] = in[0]; in bsave() 254 now->b_in[1] = in[1]; in bsave() 255 now->b_off[0] = off[0]; in bsave() 256 now->b_off[1] = off[1]; in bsave() 258 now->b_st[i] = mm->p[i]; in bsave() 259 now->b_fn[i] = mm->g[i]; in bsave() 261 return (now); in bsave() 374 struct BOARD *now = bsave(mm); in pickmove() local [all …]
|
/dragonfly/sys/net/altq/ |
H A D | altq_rmclass.c | 742 struct timeval now; in rmc_queue_packet() local 747 RM_GETTIME(now); in rmc_queue_packet() 851 if (!rmc_satisfied(p, now)) in rmc_satisfied() 915 p->overtime_ = *now; in rmc_under_limit() 918 p->overtime_ = *now; in rmc_under_limit() 955 struct timeval now; in _rmc_wrr_dequeue_next() local 957 RM_GETTIME(now); in _rmc_wrr_dequeue_next() 1085 ifd->now_[ifd->qi_] = now; in _rmc_wrr_dequeue_next() 1123 struct timeval now; in _rmc_prr_dequeue_next() local 1125 RM_GETTIME(now); in _rmc_prr_dequeue_next() [all …]
|
/dragonfly/contrib/wpa_supplicant/src/rsn_supp/ |
H A D | pmksa_cache.c | 59 struct os_reltime now; in pmksa_cache_expire() local 61 os_get_reltime(&now); in pmksa_cache_expire() 86 struct os_reltime now; in pmksa_cache_set_expiration() local 92 os_get_reltime(&now); in pmksa_cache_set_expiration() 93 sec = pmksa->pmksa->expiration - now.sec; in pmksa_cache_set_expiration() 101 sec = pmksa->pmksa->reauth_time - now.sec; in pmksa_cache_set_expiration() 137 struct os_reltime now; in pmksa_cache_add() local 158 os_get_reltime(&now); in pmksa_cache_add() 543 struct os_reltime now; in pmksa_cache_list() local 553 os_get_reltime(&now); in pmksa_cache_list() [all …]
|
/dragonfly/sys/kern/ |
H A D | kern_nrandom.c | 489 struct timespec now; in rand_initialize() local 513 nanouptime(&now); in rand_initialize() 515 (const LByteType *)&now.tv_nsec, sizeof(now.tv_nsec)); in rand_initialize() 518 nanotime(&now); in rand_initialize() 521 (const uint8_t *)&now.tv_nsec, in rand_initialize() 522 sizeof(now.tv_nsec), in rand_initialize() 525 nanouptime(&now); in rand_initialize() 529 sizeof(now.tv_nsec), in rand_initialize() 936 struct timespec now; in NANOUP_EVENT() local 942 nanouptime(&now); in NANOUP_EVENT() [all …]
|
/dragonfly/sys/netproto/802_11/wlan/ |
H A D | ieee80211_dfs.c | 238 int i, oldest, now; in dfs_timeout() local 242 now = oldest = ticks; in dfs_timeout() 246 if (ieee80211_time_after_eq(now, dfs->nol_event[i]+NOL_TIMEOUT)) { in dfs_timeout() 266 if (oldest != now) { in dfs_timeout() 269 callout_schedule_dfly(&dfs->nol_timer, oldest + NOL_TIMEOUT - now, in dfs_timeout() 272 callout_schedule(&dfs->nol_timer, oldest + NOL_TIMEOUT - now); in dfs_timeout() 303 int i, now; in ieee80211_dfs_notify_radar() local 331 now = ticks; in ieee80211_dfs_notify_radar() 337 dfs->nol_event[i] = now; in ieee80211_dfs_notify_radar()
|
/dragonfly/contrib/tnftp/src/ |
H A D | progressbar.c | 139 struct timeval now, wait; local 178 (void)gettimeofday(&now, NULL); 180 timersub(&now, &lastupdate, &wait); 182 lastupdate = now; 257 timersub(&now, &start, &td); 319 struct timeval now, td, wait; local 330 (void)gettimeofday(&now, NULL); 331 timersub(&now, &start, &td); 378 timersub(&now, &lastupdate, &wait);
|