Re: [PATCH] compat: add compat functions for *at syscalls

From: David S. Miller
Date: Tue Feb 07 2006 - 03:42:23 EST


From: Linus Torvalds <torvalds@xxxxxxxx>
Date: Mon, 6 Feb 2006 17:15:23 -0800 (PST)

> Oh f*ck, why do people do ugly code like this?
>
> That's just about the nastiest thing I've ever seen.

I totally agree.
>
> However, what I suspect David was actually suggesting was to just have
> some trivial for just the compat functions. You can generate them
> automatically based on
> - function name
> - signedness/unsignedness of each argument
> with some preprocessor hackery.
>
> So each architecture could have the following #defines:

Exactly.
-
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/