mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
21 lines
663 B
C#
21 lines
663 B
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace DiscImageChef.Devices.Linux
|
|
{
|
|
static class Extern
|
|
{
|
|
[DllImport("libc", CharSet = CharSet.Ansi, SetLastError = true)]
|
|
internal static extern int open(string pathname, int flags);
|
|
|
|
[DllImport("libc")]
|
|
internal static extern int close(int fd);
|
|
|
|
[DllImport("libc", EntryPoint="ioctl", SetLastError = true)]
|
|
internal static extern int ioctlInt(int fd, ulong request, out int value);
|
|
|
|
[DllImport("libc", EntryPoint="ioctl", SetLastError = true)]
|
|
internal static extern int ioctlSg(int fd, ulong request, ref Structs.sg_io_hdr_t value);
|
|
}
|
|
}
|
|
|