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); } }