forked from dotnet/corefx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Leap Seconds Support (dotnet/coreclr#21420)
* Leap Seconds Support * Address Feedback * More feedback addressing Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
- Loading branch information
1 parent
5ce17d9
commit 75707e7
Showing
4 changed files
with
196 additions
and
12 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
src/Common/src/CoreLib/Interop/Windows/NtDll/Interop.NtQuerySystemInformation.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using System; | ||
using System.Runtime.InteropServices; | ||
|
||
internal partial class Interop | ||
{ | ||
internal partial class NtDll | ||
{ | ||
[DllImport(Libraries.NtDll)] | ||
internal static unsafe extern int NtQuerySystemInformation(int SystemInformationClass, void* SystemInformation, int SystemInformationLength, uint* ReturnLength); | ||
|
||
[StructLayout(LayoutKind.Sequential)] | ||
internal struct SYSTEM_LEAP_SECOND_INFORMATION | ||
{ | ||
public bool Enabled; | ||
public uint Flags; | ||
} | ||
|
||
internal const int SystemLeapSecondInformation = 206; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters