diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2025-07-17 14:22:28 +0200 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2025-07-17 14:22:28 +0200 |
commit | f0912e9a74cd082b9ae2e9844095a4743e526529 (patch) | |
tree | ba7627432e7476c6539d766a38c02c5c1b790d58 /newlib/libc | |
parent | c2a8984c7032de7a9335289cf7bec4bbbd0aaff8 (diff) | |
download | newlib-f0912e9a74cd082b9ae2e9844095a4743e526529.zip newlib-f0912e9a74cd082b9ae2e9844095a4743e526529.tar.gz newlib-f0912e9a74cd082b9ae2e9844095a4743e526529.tar.bz2 |
Cygwin: clocks: read leap seconds from registry
Windows 10 1803 introduced leap seconds support in 2018. The OS always
starts at 37 leap secs. Additional leap second timestamps are added to
the registry key HKLM\SYSTEM\CurrentControlSet\Control\LeapSecondInformation,
value LeapSeconds.
If the key exists, read the leap second timestamps from this value,
otherwise fallback to reading /usr/share/zoneinfo/leapseconds.
Note that we might change the file we read from yet, but that's no part
of this patch.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib/libc')
0 files changed, 0 insertions, 0 deletions