/src/sys/arch/zaurus/stand/zboot/ |
getsecs.c | 44 sleep(int seconds) 49 while (getsecs() - start < seconds)
|
unixdev.h | 50 int sleep(int seconds);
|
/src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/ |
sanitizer_common_nolibc.cc | 28 void SleepForSeconds(int seconds) { internal_sleep(seconds); }
|
sanitizer_libc.h | 71 unsigned int internal_sleep(unsigned int seconds);
|
sanitizer_rtems.cc | 69 void SleepForSeconds(int seconds) { sleep(seconds); }
|
sanitizer_fuchsia.cc | 45 unsigned int internal_sleep(unsigned int seconds) { 46 internal_nanosleep(ZX_SEC(seconds)); 73 void SleepForSeconds(int seconds) { internal_sleep(seconds); }
|
sanitizer_netbsd.cc | 208 unsigned int internal_sleep(unsigned int seconds) { 210 ts.tv_sec = seconds;
|
/src/lib/libc/gen/ |
sleep.c | 46 sleep(unsigned int seconds) 50 rqt.tv_sec = seconds;
|
/src/usr.bin/quota/ |
printquota.c | 100 timeprt(char *buf, size_t len, time_t now, time_t seconds) 104 if (now > seconds) 107 seconds -= now; 109 minutes = (seconds + MINUTE / 2) / MINUTE; 110 hours = (seconds + HOUR / 2) / HOUR; 111 days = (seconds + DAY / 2) / DAY; 112 years = (seconds + YEAR / 2) / YEAR; 113 months = (seconds + MONTH / 2) / MONTH; 114 weeks = (seconds + WEEK / 2) / WEEK; 143 * either in seconds or in format xWyDzHtMu [all...] |
/src/games/rogue/ |
machdep.c | 235 time_t seconds; local in function:md_gct 237 time(&seconds); 238 t = localtime(&seconds); 268 time_t seconds; local in function:md_gfmt 272 seconds = sbuf.st_mtime; 273 t = localtime(&seconds); 325 * seconds. 397 * current time (minutes + seconds) returned from md_gct(), if implemented. 408 time_t seconds; local in function:md_gseed 410 time(&seconds); [all...] |
/src/sys/arch/mac68k/mac68k/ |
pram.c | 64 long year, month, day, hour, minute, seconds, i, dayperyear; local in function:convtime 71 seconds = 0; 114 seconds = t; 119 monstr[month], day, year, hour, minute, seconds);
|
/src/tests/kernel/kqueue/ |
t_timer.c | 45 check_timespec(struct timespec *ts, time_t seconds) 47 time_t upper = seconds; 58 if (ts->tv_sec < seconds - 1 || 59 (ts->tv_sec == seconds - 1 && ts->tv_nsec < 500000000)) 67 seconds - 1, upper); 110 * Make sure TIME1_TOTAL_SEC seconds have 128 * Make sure TIME2_TOTAL_SEC seconds have 203 * Start a 500ms timer, sleep for 5 seconds, and check 218 * Modify to a 4 second timer, sleep for 5 seconds, and check 239 * Start a 500ms timer, sleep for 2 seconds 279 time_t seconds; local in function:ATF_TC_BODY [all...] |
/src/lib/libc/time/ |
Makefile | 142 # seconds since the epoch (not counting leap seconds), use 145 # as seconds since the epoch (counting leap seconds), use 147 # below. If you want both sets of data available, with leap seconds not 150 # below. If you want both sets of data available, with leap seconds counted 153 # below. POSIX mandates that leap seconds not be counted; for compatibility 449 # Where to fetch leap-seconds.list from. 451 https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list 461 # append "-r @N" to omit data before N-seconds-after-the-Epoch [all...] |
zdump.c | 311 platforms where time_t counts leap seconds; this works due to 443 " -t [L,]U Start at time L, end before time U (in seconds since 1970)\n" 675 intmax_t myy, seconds, years; local in function:yeartot 685 seconds = diff400 * SECSPER400YEARS; 688 seconds = isleap(myy) ? SECSPERLYEAR : SECSPERNYEAR; 692 if (t > absolute_max_time - seconds) 694 t += seconds; 701 seconds = diff400 * SECSPER400YEARS; 704 seconds = isleap(myy - 1) ? SECSPERLYEAR : SECSPERNYEAR; 708 if (t < absolute_min_time + seconds) [all...] |
/src/usr.sbin/screenblank/ |
screenblank.c | 105 * Set the default timeouts: 10 minutes on, .25 seconds off. 405 int seconds, nanoseconds, factor; local in function:cvt_arg 409 seconds = 0; 428 seconds = (seconds * 10) + (*cp - '0'); 431 tvp->tv_sec = seconds;
|
/src/sys/external/bsd/gnu-efi/dist/apps/ |
bltgrid.c | 96 SetWatchdog(UINTN seconds) 99 rc = uefi_call_wrapper(BS->SetWatchdogTimer, 4, seconds, 0x1ffff,
|
modelist.c | 72 SetWatchdog(UINTN seconds) 75 rc = uefi_call_wrapper(BS->SetWatchdogTimer, 4, seconds, 0x1ffff,
|
lfbgrid.c | 136 SetWatchdog(UINTN seconds) 139 rc = uefi_call_wrapper(BS->SetWatchdogTimer, 4, seconds, 0x1ffff,
|
/src/usr.sbin/intrctl/ |
intrctl.c | 247 int seconds = 0; local in function:intrctl_list 261 seconds = atoi(optarg); 262 if (seconds < 0) 263 errx(1, "seconds must be positive."); 272 if (seconds == 0) 274 sleep(seconds);
|
/src/tests/lib/libc/time/ |
t_strptime.c | 374 ATF_TC(seconds); 376 ATF_TC_HEAD(seconds, tc) 380 "Checks strptime(3) seconds conversions [S]"); 383 ATF_TC_BODY(seconds, tc) 552 * Convert back to POSIX seconds since epoch -- unless 598 ATF_TP_ADD_TC(tp, seconds);
|
/src/usr.bin/make/unit-tests/ |
varmod-order-shuffle.mk | 8 # As of 2020-08-16, make uses random(3) seeded by the current time in seconds.
|
/src/bin/sh/ |
eval.c | 1810 conv_time(clock_t ticks, char *seconds, size_t l) 1820 snprintf(seconds, l, "%.4f", (ticks - mins * tpm) * 60.0 / tpm ); 1822 if (seconds[0] == '6' && seconds[1] == '0') { 1825 strlcpy(seconds, "0.0", l); 1830 i = strlen(seconds) - 1; 1831 for (; seconds[i] == '0' && seconds[i - 1] != '.'; i--) 1832 seconds[i] = 0;
|
/src/sys/external/bsd/compiler_rt/dist/lib/fuzzer/ |
FuzzerInternal.h | 45 return duration_cast<seconds>(system_clock::now() - ProcessStartTime) 56 size_t Seconds = secondsSinceProcessStartUp(); 57 return Seconds ? TotalNumberOfRuns / Seconds : 0;
|
/src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/ |
dra72-evm-tps65917.dtsi | 129 ti,palmas-long-press-seconds = <6>;
|
/src/lib/libc/resolv/ |
res_send.c | 880 int seconds, n, s; local in function:send_dg 977 seconds = (statp->retrans << tries); 979 seconds /= statp->nscount; 980 if (seconds <= 0) 981 seconds = 1; 983 timeout = evConsTime((time_t)seconds, 0L);
|