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

1234567891011>>

/src/sys/arch/emips/stand/common/
H A Dclock.c44 uint64_t now; local in function:getsecs
53 now = Tc->FreeRunning;
56 now = now / 10*1000*1000;
59 now = now >> 23;
61 return (long) now;
/src/etc/powerd/scripts/
H A Dpower_button15 /sbin/shutdown -p now "power button pressed"
H A Dreset_button14 /sbin/shutdown -r now "reset button pressed"
H A Dsensor_temperature18 /sbin/shutdown -p now "${0}: CRITICAL TEMPERATURE! SHUTTING DOWN."
27 /sbin/shutdown -p now "${0}: CRITICAL TEMPERATURE! SHUTTING DOWN."
/src/sys/sys/
H A Dsyscall_stats.h73 uint32_t now = SYSCALL_TIME(); \
74 SYSCALL_TIME_UPDATE_PROC(l, u, elapsed = now - (l)->l_syscall_time); \
76 (l)->l_syscall_time = now; \
81 uint32_t now = SYSCALL_TIME(); \
82 uint32_t elapsed = now - (l)->l_syscall_time; \
83 (l)->l_syscall_time = now; \
94 uint32_t now = SYSCALL_TIME(); \
95 uint32_t elapsed = now - (l)->l_syscall_time; \
96 (l)->l_syscall_time = now; \
105 uint32_t now
[all...]
/src/usr.sbin/rtadvd/
H A Dtimer.c102 struct timespec now; local in function:rtadvd_set_timer
105 prog_clock_gettime(CLOCK_MONOTONIC, &now);
106 timespecadd(&now, tm, &timer->tm);
125 struct timespec now; local in function:rtadvd_check_timer
128 prog_clock_gettime(CLOCK_MONOTONIC, &now);
134 if (timespeccmp(&tm->tm, &now, <=)) {
139 timespecadd(&tm->tm, &now, &tm->tm);
147 if (timespeccmp(&tm_max, &now, <)) {
151 timespecsub(&tm_max, &now, &returnval);
159 struct timespec now; local in function:rtadvd_timer_rest
[all...]
/src/sys/external/isc/libsodium/dist/test/default/
H A Dcmptest.h45 static unsigned long long now(void) function in typeref:typename:unsigned long long
48 unsigned long long now; local in function:now
53 now = ((unsigned long long) tp.tv_sec * 1000000ULL) +
56 return now;
69 ts_start = now();
75 ts_end = now();
/src/sys/kern/
H A Dsubr_time.c57 struct timeval now, tv; local in function:tvhzto
60 getmicrotime(&now);
61 timersub(&tv, &now, &tv);
68 struct timespec now, ts; local in function:tshzto
71 getnanotime(&now);
72 timespecsub(&ts, &now, &ts);
79 struct timespec now, ts; local in function:tshztoup
82 getnanouptime(&now);
83 timespecsub(&ts, &now, &ts);
102 struct timespec now, sleptt local in function:gettimeleft
[all...]
/src/sys/external/bsd/drm2/dist/drm/vmwgfx/
H A Dvmwgfx_marker.c82 u64 now; local in function:vmw_marker_pull
85 now = ktime_get_raw_ns();
89 queue->lag_time = now;
98 queue->lag = now - marker->submitted;
99 queue->lag_time = now;
113 u64 now; local in function:vmw_fifo_lag
116 now = ktime_get_raw_ns();
117 queue->lag += now - queue->lag_time;
118 queue->lag_time = now;
/src/games/ching/castching/
H A Dcastching.c63 static time_t now; /* current time */ variable in typeref:typename:time_t
83 time(&now);
85 seed = (int)now + getquest() + getgid() + getuid() + getpid();
/src/usr.bin/make/unit-tests/
H A Dcmdline-undefined.exp5 make: cmdline-undefined.mk:47: From the command line: Undefined is now defined.
6 make: cmdline-undefined.mk:48: From .MAKEFLAGS '=': Undefined is now defined.
7 make: cmdline-undefined.mk:49: From .MAKEFLAGS ':=': Undefined is now defined.
13 make: cmdline-undefined.mk:47: From the command line: Undefined is now defined.
14 make: cmdline-undefined.mk:48: From .MAKEFLAGS '=': Undefined is now defined.
15 make: cmdline-undefined.mk:49: From .MAKEFLAGS ':=': Undefined is now defined.
H A Dcmdline-undefined.mk14 # expect+33: From the command line: Undefined is now defined.
15 # expect+33: From .MAKEFLAGS '=': Undefined is now defined.
16 # expect+33: From .MAKEFLAGS ':=': Undefined is now defined.
28 # expect+19: From the command line: Undefined is now defined.
29 # expect+19: From .MAKEFLAGS '=': Undefined is now defined.
30 # expect+19: From .MAKEFLAGS ':=': Undefined is now defined.
45 UNDEFINED?= now defined
H A Ddepsrc-optional.exp11 recheck(optional-cohort): update time from nonexistent to now
14 recheck(important): update time from nonexistent to now
17 recheck(all): update time from nonexistent to now
19 recheck(.END): update time from nonexistent to now
H A Ddoterror.mk19 @echo and now: $@; exit 1
/src/tests/lib/libutil/
H A Dt_parsedate.c191 * but that is fixed now.
289 time_t now; local in function:ATF_TC_BODY
291 #define REL_CHECK(s, now, tm) do { \
294 p = parsedate(s, &now, NULL); \
298 (uintmax_t)now, ctime_r(&now, nb), \
319 for (now = 0x00FFFFFF; now < 0xFF000000; now += 3777779) {
320 ATF_CHECK(localtime_r(&now,
[all...]
/src/sys/net/agr/
H A Dieee8023ad_lacp_sm_tx.c54 int now; local in function:lacp_sm_tx
70 now = getticks();
71 if ((unsigned int)(now - lp->lp_last_lacpdu_sent) <=
75 lp->lp_last_lacpdu_sent = now;
/src/sys/arch/powerpc/booke/
H A De500_timer.c100 const uint64_t now = mftb(); local in function:e500_clock_intr
101 uint64_t latency = now - (ci->ci_lastintr + cpu->cpu_ticks_per_clock_intr);
105 if (now < ci->ci_lastintr + cpu->cpu_ticks_per_clock_intr)
124 if (nticks > 10 || now - ci->ci_lastintr < 7 * cpu->cpu_ticks_per_clock_intr / 8)
125 printf("%s: nticks=%u lastintr=%#"PRIx64"(%#"PRIx64") now=%#"PRIx64" latency=%#"PRIx64" orig=%#"PRIx64"\n", __func__,
126 nticks, ci->ci_lastintr, now - latency, now, latency, orig_latency);
128 ci->ci_lastintr = now - latency;
129 ci->ci_lasttb = now;
/src/bin/sleep/
H A Dsleep.c79 struct timespec now; local in function:main
105 * machines, but now we won't ever have trouble. If you want
178 if (clock_gettime(CLOCK_MONOTONIC, &now) != 0)
180 timespecadd(&now, &ntime, &endtime);
182 if (endtime.tv_sec < now.tv_sec || (endtime.tv_sec == now.tv_sec &&
183 endtime.tv_nsec <= now.tv_nsec))
200 if (clock_gettime(CLOCK_MONOTONIC, &now) != 0) /* Huh? */
203 timespecsub(&endtime, &now, &ntime);
/src/sys/external/bsd/common/include/linux/
H A Dcompletion.h196 unsigned int start = getticks(), now; local in function:wait_for_completion_interruptible_timeout
209 now = getticks();
212 ticks -= MIN(ticks, (now - start));
213 start = now;
235 unsigned int start = getticks(), now; local in function:wait_for_completion_timeout
248 now = getticks();
251 ticks -= MIN(ticks, (now - start));
252 start = now;
/src/usr.bin/finger/
H A Dextern.h34 extern time_t now; /* Current time. */
/src/usr.bin/login/
H A Dcommon.h51 extern struct timeval now;
/src/sys/external/bsd/drm2/include/linux/
H A Dtimer.h63 const unsigned long now = jiffies; local in function:mod_timer
67 callout_schedule(&timer->tl_callout, (now < then? (then - now) : 0));
/src/usr.bin/w/
H A Dpr_time.c56 pr_attime(time_t *started, time_t *now) argument
63 tnow_yday = localtime(now)->tm_yday;
65 diff = *now - *started;
/src/sys/ufs/ext2fs/
H A Dext2fs_subr.c108 struct timespec now; local in function:ext2fs_itimes
114 vfs_timestamp(&now);
117 acc = &now;
122 mod = &now;
128 cre = &now;
/src/sys/ufs/lfs/
H A Dlfs_itimes.c62 struct timespec now; local in function:lfs_itimes
66 vfs_timestamp(&now);
72 acc = &now;
97 mod = &now;
106 cre = &now;

Completed in 13 milliseconds

1234567891011>>