RaspberryIO_26/Unosquare.WiringPi/Native/SysCall.cs
2019-12-04 18:57:18 +01:00

20 lines
682 B
C#

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