Calling ioctl with varargs on Linux/FreeBSD AMD64 from Java
Andrew Haley
aph@redhat.com
Fri Jul 6 13:52:00 GMT 2012
On 07/06/2012 12:20 PM, Kustaa Nyholm wrote:
> I've been discussing this in the JNA list and Timothy
> Wall, JNA author, suggested that this might be a
> problem how the variable args (for ioctl()) are handled
> by the libffi on AMD64.
>
> Now I'm looking for suggestions, guesses, what ever
> to get me further.... I'm short of things to try and
> investigate.
>
> Is there some way I can, for example, compare how a
> C compiler and JNA/libffi call ioctl()?
Sure, you can just get your debugger (gdb?) to disassemble it.
But the register-passing isn't supposed to be different for varargs
on AMD64, at least on Linux.
Have you got a test case we can try?
Andrew.
More information about the Libffi-discuss
mailing list