[Mono-list] Problem calling ioctl() on 32bit systems, works on 64bit
Natalia Portillo
claunia at claunia.com
Fri Jan 29 02:36:18 UTC 2016
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
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.Devic
es/Linux/Structs.cs
DllImport defined in
https://github.com/claunia/DiscImageChef/blob/master/DiscImageChef.Devic
es/Linux/Extern.cs
And the calling code in
https://github.com/claunia/DiscImageChef/blob/master/DiscImageChef.Devic
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
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
iF4EAREIAAYFAlaq0CIACgkQVFd6BnR3EADtHQD/UuGD+e0k1sc3biNX13u80psb
1zxIlSOy//39p7fSi/AA+waItEw1MTZQlcVLrYRO/hRAbGiIZLQXhcrZ+xul+KxK
=pTJU
-----END PGP SIGNATURE-----
More information about the Mono-list
mailing list