[PATCH] Fix ioctl() wrappers for 64-bit systems

Denys Vlasenko vda.linux at googlemail.com
Sun Apr 20 14:30:42 UTC 2008


On Monday 14 April 2008 23:13, Nate Case wrote:
> On Sat, 2008-04-12 at 02:17 +0200, Denys Vlasenko wrote:
> > 
> > If this indeed is true, you need to fix ppc64 libc headers!
> > 
> > Can you send preprocessed output of your testcase in ppc64?
> 
> Here is the preprocessed output.  I don't actually see the ioctl()
> headers in there that you may have been hoping for, though.

Exactly. It means that compiler doesn't see it too,
and because of that it handles ioctl as variadic funtion.

When it sees int parameter, it pushes int on the stack, not long.

Headers need to be fixed to contain correct prototype.
--
vda



More information about the busybox mailing list