Problem calling ioctl() on 32bit systems, works on 64bit

Natalia Portillo <[email protected]>
Newsgroups gmane.comp.gnome.mono.general
Message-ID <[email protected]>
-----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-----
_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.