mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
* DiscImageChef.Devices/Linux/Enums.cs:
* DiscImageChef.Devices/Linux/Extern.cs: * DiscImageChef.Devices/Linux/Structs.cs: Filled Linux enums. * DiscImageChef.Devices/Windows/Enums.cs: Typo
This commit is contained in:
@@ -5,7 +5,10 @@ namespace DiscImageChef.Devices.Linux
|
||||
static class Extern
|
||||
{
|
||||
[DllImport("libc", CharSet = CharSet.Ansi, SetLastError = true)]
|
||||
internal static extern int open(string pathname, int flags);
|
||||
internal static extern int open(
|
||||
string pathname,
|
||||
[MarshalAs(UnmanagedType.U4)]
|
||||
FileFlags flags);
|
||||
|
||||
[DllImport("libc")]
|
||||
internal static extern int close(int fd);
|
||||
@@ -14,7 +17,7 @@ namespace DiscImageChef.Devices.Linux
|
||||
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);
|
||||
internal static extern int ioctlSg(int fd, ulong request, ref sg_io_hdr_t value);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user