Re: 64-syscall args on 32-bit vs syscall()

From: Benjamin Herrenschmidt
Date: Mon Mar 15 2010 - 16:34:25 EST


On Mon, 2010-03-15 at 15:04 +0000, Jamie Lokier wrote:
> There are several problems with syscall(), not just this - because a
> number of system calls in section 2 of the manual don't map directly
> to kernel syscalls with the same function prototype.
>
> Even fork() has become something complicated in Glibc that doesn't use
> the fork syscall :-(
>
> So anything using syscall() has to be careful on Linux already.
> Changing the 64-bit alignment won't fix the other differences.

It won't fix -all- the problems with syscall(), but it will fix a wagon
of them without breaking existing code that already does the arch
specific breakup on the call site...

Cheers,
Ben.



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/