-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On a follow up I have made a little C snippet to intercept the ioctl() call.
On 64 bit: Received fd=3, request=8837, pointer=0x7ffce86ac3b8 On 32 bit: Received fd=3, request=8837, pointer=(nil) El 29/1/16 a las 2:36, Natalia Portillo escribió: > Hi all, > > I've got stuck trying to solve why calling Linux ioctl() on 64bit > systems works perfectly but on 32bit ones doesn't. > > I have checked the marshalling size, and is as expected (64 bytes). > Trying to strace on my 32bit system give "ioctl(3, SG_IO, 0)". > > I have the structure defined in > https://github.com/claunia/DiscImageChef/blob/master/DiscImageChef.Dev ic > > > es/Linux/Structs.cs > > DllImport defined in > https://github.com/claunia/DiscImageChef/blob/master/DiscImageChef.Dev ic > > > es/Linux/Extern.cs > > And the calling code in > https://github.com/claunia/DiscImageChef/blob/master/DiscImageChef.Dev ic > > > es/Linux/Command.cs > method SendScsiCommand() > > I have absolutely no clue at this time on why this is happening, > so any help is welcome. > > Regards, Natalia Portillo > _______________________________________________ Mono-list maillist > - Mono-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iF4EAREIAAYFAlaq4bwACgkQVFd6BnR3EAA0OwEAh4tpZlY+qgKTk8/aE5c0Ljh0 hV7SLo7xkd5HwTA4tHcBALZXUzkKqd69Bk8CHpB+VuAKaliwJPdGT8r1LlrtSXMG =AHCz -----END PGP SIGNATURE----- _______________________________________________ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list