[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: incompatible unaligned.h between x86 and ppc - kernel-hackersverify please

On Wed, 2004-11-03 at 23:37 +0100, Klaus Schmidinger wrote:

> It's a bug in VDR to use a platform independent way of accessing unaligned
> data? I don't think so...

It is a bug in _ANY_ userland application to rely on an inline function
exposed by a kernel header. If glibc doesn't provide an equivalent (and
maybe it does), then you'll have to find a different way. Sorry, I know
it sucks for your problem, but as I wrote, there is absolutely no
guarantee that the kernel implementation of this is actually inline, or
doesn't rely on kernel internal thingies, etc...

In general, the only ABI exposed by the kernel is syscall interface.
It's been comon practice every now and then to abuse the kernel headers,
but that's what it is... an abuse.

If glibc wants to chip modified version of the headers that do expose
those functions, then fine. In that case, it becomes glibc's
responsibility to provide this interface to you. But not the kernel.


Reply to: