2019-12-06 21:09:52 +01:00
|
|
|
|
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);
|
|
|
|
|
}
|
2019-12-04 18:57:18 +01:00
|
|
|
|
}
|