2019-12-08 12:34:43 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Runtime.InteropServices;
|
2019-12-06 23:12:34 +01:00
|
|
|
|
|
|
|
|
|
namespace Unosquare.RaspberryIO.Native {
|
|
|
|
|
internal static class Standard {
|
|
|
|
|
internal const String LibCLibrary = "libc";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Fills in the structure with information about the system.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="name">The name.</param>
|
|
|
|
|
/// <returns>The result.</returns>
|
|
|
|
|
[DllImport(LibCLibrary, EntryPoint = "uname", SetLastError = true)]
|
|
|
|
|
public static extern Int32 Uname(out SystemName name);
|
|
|
|
|
}
|
2019-12-04 18:57:18 +01:00
|
|
|
|
}
|