| /openbsd-src/gnu/llvm/lldb/source/Plugins/Process/gdb-remote/ |
| H A D | GDBRemoteClientBase.h | 40 bool SendAsyncSignal(int signo, std::chrono::seconds interrupt_timeout); 42 bool Interrupt(std::chrono::seconds interrupt_timeout); 46 llvm::StringRef payload, std::chrono::seconds interrupt_timeout, 59 std::chrono::seconds interrupt_timeout = std::chrono::seconds(0)); 68 std::chrono::seconds interrupt_timeout, 80 std::chrono::seconds interrupt_timeout = std::chrono::seconds(0)); 92 std::chrono::seconds m_interrupt_timeout;
|
| H A D | GDBRemoteClientBase.cpp | 26 static const seconds kWakeupInterval(5); 40 llvm::StringRef payload, std::chrono::seconds interrupt_timeout, in SendContinuePacketAndWaitForResponse() 59 std::chrono::seconds computed_timeout = std::min(interrupt_timeout, in SendContinuePacketAndWaitForResponse() 82 std::chrono::duration_cast<std::chrono::seconds>(new_wait)); in SendContinuePacketAndWaitForResponse() 161 int signo, std::chrono::seconds interrupt_timeout) { in SendAsyncSignal() 172 bool GDBRemoteClientBase::Interrupt(std::chrono::seconds interrupt_timeout) { in Interrupt() 183 std::chrono::seconds interrupt_timeout) { in SendPacketAndWaitForResponse() 217 std::chrono::seconds interrupt_timeout, in SendPacketAndReceiveResponseWithOutputSupport() 356 std::chrono::seconds interrupt_timeout) in Lock() 368 if (m_comm.m_is_running && m_interrupt_timeout == std::chrono::seconds(0)) in SyncWithContinueThread()
|
| H A D | GDBRemoteCommunication.h | 107 std::chrono::seconds timeout); 112 std::chrono::seconds m_saved_timeout; 141 std::chrono::seconds SetPacketTimeout(std::chrono::seconds packet_timeout) { in SetPacketTimeout() 147 std::chrono::seconds GetPacketTimeout() const { return m_packet_timeout; } in GetPacketTimeout() 170 std::chrono::seconds m_packet_timeout;
|
| /openbsd-src/gnu/usr.bin/perl/cpan/Time-Piece/ |
| H A D | Seconds.pm | 39 '0+' => \&seconds, 40 '""' => \&seconds, 57 $lhs = $lhs->seconds; 60 $rhs = $rhs->seconds; 86 $rhs = $rhs->seconds if UNIVERSAL::isa($rhs, 'Time::Seconds'); 99 $rhs = $rhs->seconds if UNIVERSAL::isa($rhs, 'Time::Seconds'); 108 sub seconds { subroutine 177 $str .= join " ", _counted_objects($s->seconds, "second");
|
| /openbsd-src/usr.sbin/unbound/sldns/ |
| H A D | parseutil.c | 78 time_t seconds; in sldns_mktime_from_utc() local 91 seconds = minutes * 60 + tm->tm_sec; in sldns_mktime_from_utc() 93 return seconds; in sldns_mktime_from_utc() 216 uint32_t seconds = 0; in sldns_str2period() local 229 return seconds; in sldns_str2period() 236 return seconds; in sldns_str2period() 241 if(seconds > maxint-i) { in sldns_str2period() 245 seconds += i; in sldns_str2period() 250 if(i > maxint/60 || seconds > maxint-(i*60)) { in sldns_str2period() 254 seconds in sldns_str2period() [all...] |
| /openbsd-src/sbin/unwind/libunbound/sldns/ |
| H A D | parseutil.c | 78 time_t seconds; in sldns_mktime_from_utc() local 91 seconds = minutes * 60 + tm->tm_sec; in sldns_mktime_from_utc() 93 return seconds; in sldns_mktime_from_utc() 216 uint32_t seconds = 0; in sldns_str2period() local 229 return seconds; in sldns_str2period() 236 return seconds; in sldns_str2period() 241 if(seconds > maxint-i) { in sldns_str2period() 245 seconds += i; in sldns_str2period() 250 if(i > maxint/60 || seconds > maxint-(i*60)) { in sldns_str2period() 254 seconds in sldns_str2period() [all...] |
| /openbsd-src/gnu/llvm/libcxx/src/ |
| H A D | chrono.cpp | 102 static _LIBCPP_CONSTEXPR const seconds nt_to_unix_epoch{11644473600}; in __libcpp_system_clock_now() 125 return system_clock::time_point(seconds(tp.tv_sec) + microseconds(tp.tv_nsec / 1000)); 133 return system_clock::time_point(seconds(tv.tv_sec) + microseconds(tv.tv_usec)); 149 return time_t(duration_cast<seconds>(t.time_since_epoch()).count()); in to_time_t() 155 return system_clock::time_point(seconds(t)); in from_time_t() 232 return steady_clock::time_point(seconds(tp.tv_sec) + nanoseconds(tp.tv_nsec)); in __libcpp_steady_clock_now() 257 auto seconds = counter.QuadPart / freq.QuadPart; in __libcpp_steady_clock_now() local 259 auto dur = seconds * nano::den + fractions * nano::den / freq.QuadPart; in __libcpp_steady_clock_now() 270 return steady_clock::time_point(seconds(ts.tv_sec) + nanoseconds(ts.tv_nsec)); in __libcpp_steady_clock_now() 290 return steady_clock::time_point(seconds(tp.tv_sec) + nanoseconds(tp.tv_nsec)); in __libcpp_steady_clock_now()
|
| /openbsd-src/usr.bin/ssh/ |
| H A D | progressmeter.c | 48 #define STALL_TIME 5 /* we're stalled after this many seconds */ 130 int hours, minutes, seconds; in refresh_progress_meter() 205 seconds = bytes_left / bytes_per_second; in refresh_progress_meter() 207 seconds = elapsed; in refresh_progress_meter() 209 hours = seconds / 3600; in refresh_progress_meter() 210 seconds -= hours * 3600; in refresh_progress_meter() 211 minutes = seconds / 60; in refresh_progress_meter() 212 seconds -= minutes * 60; in refresh_progress_meter() 216 hours, minutes, seconds); in refresh_progress_meter() 218 xextendf(&buf, NULL, " %02d:%02d", minutes, seconds); in refresh_progress_meter() 131 int hours, minutes, seconds; refresh_progress_meter() local [all...] |
| /openbsd-src/sys/dev/pci/ |
| H A D | wdt.c | 228 wdt_set_timeout(void *self, int seconds) in wdt_set_timeout() argument 239 if (seconds == 0) { in wdt_set_timeout() 242 } else if (seconds < 2) in wdt_set_timeout() 243 seconds = 2; in wdt_set_timeout() 244 else if (seconds > 1800) in wdt_set_timeout() 245 seconds = 1800; in wdt_set_timeout() 248 v = (u_int16_t)seconds * 50; in wdt_set_timeout() 258 return (seconds); in wdt_set_timeout()
|
| /openbsd-src/usr.bin/top/ |
| H A D | utils.c | 251 format_time(time_t seconds) in format_time() argument 256 if (seconds < 0 || seconds > (99999l * 360l)) { in format_time() 258 } else if (seconds >= (1000l * 60l)) { in format_time() 261 (double) seconds / (double) (60l * 60l)); in format_time() 273 snprintf(result, sizeof(result), "%3d:%02d", (int)seconds / 60, in format_time() 274 (int)seconds % 60); in format_time()
|
| /openbsd-src/gnu/usr.bin/perl/dist/Time-HiRes/ |
| H A D | HiRes.xs | 197 /* If the performance counter delta drifts more than 0.5 seconds from the 200 # define MAX_PERF_COUNTER_SKEW Const64(5000000) /* 0.5 seconds */ 204 # define MAX_PERF_COUNTER_TICKS Const64(300000000) /* 300 seconds */ in _GetSystemTimePreciseAsFileTime() 256 /* seconds since epoch */ 961 IV seconds = (IV) (useconds / NV_1E6); 965 if (seconds) { 966 sleep(seconds); 967 useconds -= NV_1E6 * seconds; 1027 NV seconds = SvNV(ST(0)); 1028 if (seconds > 953 IV seconds = (IV) (useconds / NV_1E6); global() variable 1019 NV seconds = SvNV(ST(0)); global() variable [all...] |
| /openbsd-src/gnu/llvm/libcxx/include/__chrono/ |
| H A D | hh_mm_ss.h | 35 using __CommonType = common_type_t<_Duration, chrono::seconds>; 63 __s_(chrono::duration_cast<chrono::seconds>(chrono::abs(__d) - hours() - minutes())), in hh_mm_ss() 64 … __f_(chrono::duration_cast<precision> (chrono::abs(__d) - hours() - minutes() - seconds())) in hh_mm_ss() 70 _LIBCPP_HIDE_FROM_ABI constexpr chrono::seconds seconds() const noexcept { return __s_; } in seconds() function 85 chrono::seconds __s_;
|
| /openbsd-src/share/zoneinfo/datfiles/ |
| H A D | leap-seconds.list | 1 # $OpenBSD: leap-seconds.list,v 1.5 2025/01/19 22:03:27 millert Exp $ 6 # clocks. UTC differs from TAI by an integer number of seconds; it is the basis 20 # Leap seconds are needed to keep the two time scales in agreement, i.e. UT1-UTC smaller 21 # than 0.9 seconds. Therefore, when necessary a "leap second" is applied to UTC. 22 # Since the adoption of this system in 1972 it has been necessary to add a number of seconds to UTC, 26 # all leap seconds have been positive (a second has been added to UTC). Based on what we know about 32 # leap second at a rate of 1 to 2 years. Since the year 2000 leap seconds are introduced with an 39 # Observatory. According to international agreements, leap seconds should be scheduled only for certain dates: 41 # and September. Since the introduction of leap seconds in 1972, only dates in June and December were used. 56 # given in units of seconds sinc [all...] |
| /openbsd-src/share/zoneinfo/ |
| H A D | ziguard.awk | 54 hh, mm, ss, seconds, dot_dddd, subseconds) 63 seconds = 3600 * hh + 60 * mm + ss 65 seconds += 0.5 < subseconds || ((subseconds == 0.5) && (seconds % 2)); 67 seconds / 3600, seconds / 60 % 60, seconds % 60) 217 # Normally, prefer whole seconds. However, prefer subseconds
|
| /openbsd-src/regress/usr.bin/ssh/ |
| H A D | rekey.sh | 197 1) seconds=1 ;; 198 1m|1M) seconds=60 ;; 199 1h|1H) seconds=3600 ;; 200 1d|1D) seconds=86400 ;; 201 1w|1W) seconds=604800 ;; 205 if [ "$seconds" != "$s" ]; then 206 fatal "rekeylimit time: expected $time seconds got $s"
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/Support/ |
| H A D | CachePruning.h | 33 std::optional<std::chrono::seconds> Interval = std::chrono::seconds(1200); 38 std::chrono::seconds Expiration = std::chrono::hours(7 * 24); // 1w
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_common.cpp | 352 void internal_sleep(unsigned seconds) { in internal_sleep() argument 353 internal_usleep((u64)seconds * 1000 * 1000); in internal_sleep() 355 void SleepForSeconds(unsigned seconds) { in SleepForSeconds() argument 356 internal_usleep((u64)seconds * 1000 * 1000); in SleepForSeconds() 360 void WaitForDebugger(unsigned seconds, const char *label) { in WaitForDebugger() argument 361 if (seconds) { in WaitForDebugger() 362 Report("Sleeping for %u second(s) %s\n", seconds, label); in WaitForDebugger() 363 SleepForSeconds(seconds); in WaitForDebugger()
|
| /openbsd-src/lib/libcrypto/asn1/ |
| H A D | a_time_posix.c | 81 is_valid_time(int hours, int minutes, int seconds) in is_valid_time() argument 83 return hours >= 0 && minutes >= 0 && seconds >= 0 && hours <= 23 && in is_valid_time() 84 minutes <= 59 && seconds <= 59; in is_valid_time() 106 int64_t minutes, int64_t seconds, int64_t *out_time) in posix_time_from_utc() argument 111 !is_valid_time(hours, minutes, seconds)) in posix_time_from_utc() 125 minutes * 60 + seconds; in posix_time_from_utc()
|
| /openbsd-src/gnu/usr.bin/binutils/gprof/ |
| H A D | flat_bl.m | 5 cumulative a running sum of the number of seconds accounted 6 seconds for by this function and those listed above it. 8 self the number of seconds accounted for by this 9 seconds function alone. This is the major sort for this
|
| /openbsd-src/gnu/usr.bin/binutils-2.17/gprof/ |
| H A D | flat_bl.m | 5 cumulative a running sum of the number of seconds accounted 6 seconds for by this function and those listed above it. 8 self the number of seconds accounted for by this 9 seconds function alone. This is the major sort for this
|
| /openbsd-src/usr.bin/gprof/ |
| H A D | gprof.flat | 9 cumulative a running sum of the number of seconds accounted 10 seconds for by this function and those listed above it. 12 self the number of seconds accounted for by this 13 seconds function alone. This is the major sort for this
|
| /openbsd-src/usr.sbin/nsd/ |
| H A D | util.c | 551 uint32_t seconds = 0; in strtottl() local 560 seconds += i; in strtottl() 565 seconds += i * 60; in strtottl() 570 seconds += i * 60 * 60; in strtottl() 575 seconds += i * 60 * 60 * 24; in strtottl() 580 seconds += i * 60 * 60 * 24 * 7; in strtottl() 597 seconds += i; in strtottl() 604 if ((seconds & MSB_32)) { in strtottl() 605 seconds = DEFAULT_TTL; in strtottl() 607 return seconds; in strtottl() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Support/ |
| H A D | CachePruning.cpp | 52 static Expected<std::chrono::seconds> parseDuration(StringRef Duration) { in parseDuration() 65 return std::chrono::seconds(Num); in parseDuration() 162 if (Policy.Expiration == seconds(0) && in pruneCache() 186 if (Policy.Interval != seconds(0)) { in pruneCache() 193 << duration_cast<seconds>(TimeStampAge).count() in pruneCache() 235 if (Policy.Expiration != seconds(0) && FileAge > Policy.Expiration) { in pruneCache() 237 << duration_cast<seconds>(FileAge).count() in pruneCache()
|
| /openbsd-src/lib/libcrypto/ts/ |
| H A D | ts_rsp_utils.c | 290 TS_ACCURACY_set_seconds(TS_ACCURACY *a, const ASN1_INTEGER *seconds) in TS_ACCURACY_set_seconds() argument 294 if (a->seconds == seconds) in TS_ACCURACY_set_seconds() 296 new_seconds = ASN1_INTEGER_dup(seconds); in TS_ACCURACY_set_seconds() 301 ASN1_INTEGER_free(a->seconds); in TS_ACCURACY_set_seconds() 302 a->seconds = new_seconds; in TS_ACCURACY_set_seconds() 310 return a->seconds; in TS_ACCURACY_get_seconds()
|
| /openbsd-src/gnu/usr.bin/perl/ |
| H A D | time64.c | 156 Time64_T seconds = 0; in S_timegm64() local 177 seconds = days; in S_timegm64() 178 seconds = seconds * 60 * 60 * 24; in S_timegm64() 180 seconds += date->tm_hour * 60 * 60; in S_timegm64() 181 seconds += date->tm_min * 60; in S_timegm64() 182 seconds += date->tm_sec; in S_timegm64() 184 return(seconds); in S_timegm64()
|