[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070227000318.GA3448@infradead.org>
Date: Tue, 27 Feb 2007 00:03:18 +0000
From: Christoph Hellwig <hch@...radead.org>
To: "H. Peter Anvin" <hpa@...or.com>
Cc: David Miller <davem@...emloft.net>, a.gruenbacher@...puter.org,
nathans@....com, bunk@...sta.de, linux-kernel@...r.kernel.org,
jmorris@...hat.com, dwmw2@...radead.org
Subject: Re: include/linux/xattr.h: how much userpace visible?
On Mon, Feb 26, 2007 at 03:52:42PM -0800, H. Peter Anvin wrote:
> David Miller wrote:
> >>>
> >>However, it would be better if the ABI constants were exported, or at
> >>least *exportable* (using a __KERNEL_XATTR_MACROS test macro or
> >>something like that.)
> >
> >This is the same situation as the socket.h issue we're trying
> >to figure out what to do about.
> >
> >wrt. the socket.h case I think I'm going to revert the guilty
> >changeset for now until a better scheme is implemented
>
> Indeed it is (as well as <linux/stat.h>).
>
> I believe the use of feature macros is probably the way to go; that way
> userspace can request subsets, which can vary from libc to libc.
>
> There is, of course, the "ABI language" variant, but I don't see that
> happening unless someone has a lot of time to spend on it.
What's the problem of exposing all these APIs unconditionally?
glibcs should either use all information from the linux/ headers
or nothing at all, but not depend on hiding some bits.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists