first commit

This commit is contained in:
2025-04-07 07:44:27 -07:00
commit d6cde0c05e
512 changed files with 142392 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
// If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
// Copyright (C) LibreHardwareMonitor and Contributors.
// All Rights Reserved.
using System;
using System.Runtime.InteropServices;
// ReSharper disable InconsistentNaming
namespace LibreHardwareMonitor.Interop;
internal class LibC
{
private const string DllName = "libc";
[DllImport(DllName)]
internal static extern int sched_getaffinity(int pid, IntPtr maskSize, ref ulong mask);
[DllImport(DllName)]
internal static extern int sched_setaffinity(int pid, IntPtr maskSize, ref ulong mask);
}