On Mon, 2006-09-04 at 22:30 +0200, Andi Kleen wrote:
> > 1. C libraries have their own syscall(); there's no _need_ for these
> >    macros to be exported by the kernel.
> 
> I like having them there. I find it it useful for my test programs.

Nevertheless, you could happily use syscall() as provided by glibc -- or
you could keep your own copy of _syscallX around. You don't need to
pollute the kernel with this stuff just so that you can use it in your
own test programs.

> It's also useful for numactl for once.

What makes you say that? Numactl seems used glibc's syscall(), not the
kernel's _syscallX(). Although it does provide its own syscall6() on
both i386 and x86_64 -- citing bugs in both kernel and glibc versions,
although not actually giving bug numbers. But basically, it's using
glibc's syscall().

> > 3. We should be consistent about what we provide in kernel headers.
> >    Since we don't provide these macros on other architectures, we should
> >    not do so on i386 and x86_64 -- especially as the reason for doing so
> >    seems to be just that the arch maintainer doesn't want to use the
> >    proper glibc function in his test hacks.
> 
> We've always provided them and continuing to do so is consistent.

They've always been broken, and we've _never_ been consistent about what
we provide to userspace in kernel headers in the past -- we're only
recently starting to get our act together in that respect, and your
patches _reverted_ some of the cleanup which was part of that process.

Our best option, at this point, is to remove the kernel versions again
and let userspace use syscall(). Like numactl() already does.

-- 
dwmw2

-
To unsubscribe from this list: send the line "unsubscribe linux-arch" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to