mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
* DiscImageChef.Devices/Device/Constructor.cs:
Added support for USB on Linux. * DiscImageChef/Commands/DeviceInfo.cs: * DiscImageChef.Devices/Device/Variables.cs: Added support for USB detection and metadata. * DiscImageChef.Devices/Linux/Extern.cs: * DiscImageChef.Devices/Linux/Command.cs: Added readlink(3) support, for getting symlink destinations.
This commit is contained in:
@@ -56,6 +56,12 @@ namespace DiscImageChef.Devices.Linux
|
||||
|
||||
[DllImport("libc", EntryPoint="ioctl", SetLastError = true)]
|
||||
internal static extern int ioctlSg(int fd, LinuxIoctl request, ref sg_io_hdr_t value);
|
||||
|
||||
[DllImport("libc", CharSet = CharSet.Ansi, SetLastError = true)]
|
||||
internal static extern int readlink(string path, System.IntPtr buf, int bufsize);
|
||||
|
||||
[DllImport("libc", CharSet = CharSet.Ansi, EntryPoint="readlink", SetLastError = true)]
|
||||
internal static extern long readlink64(string path, System.IntPtr buf, long bufsize);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user