RaspberryIO_26/Unosquare.WiringPi/Native/SysCall.cs
2019-12-06 21:09:52 +01:00

18 lines
667 B
C#

using System;
using System.Runtime.InteropServices;
namespace Unosquare.WiringPi.Native {
internal static class SysCall {
internal const String LibCLibrary = "libc";
[DllImport(LibCLibrary, EntryPoint = "chmod", SetLastError = true)]
public static extern Int32 Chmod(String filename, UInt32 mode);
[DllImport(LibCLibrary, EntryPoint = "strtol", SetLastError = true)]
public static extern Int32 StringToInteger(String numberString, IntPtr endPointer, Int32 numberBase);
[DllImport(LibCLibrary, EntryPoint = "write", SetLastError = true)]
public static extern Int32 Write(Int32 fd, Byte[] buffer, Int32 count);
}
}