This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Proposal for a userspace "architecture portability" library
- From: Joel Becker <Joel dot Becker at oracle dot com>
- To: Paul Mackerras <paulus at samba dot org>
- Cc: Linus Torvalds <torvalds at osdl dot org>, David Woodhouse <dwmw2 at infradead dot org>, David Howells <dhowells at redhat dot com>, linux-kernel at vger dot kernel dot org, libc-alpha at sources dot redhat dot com
- Date: Sun, 5 Dec 2004 15:29:09 -0800
- Subject: Re: Proposal for a userspace "architecture portability" library
- References: <16818.23575.549824.733470@cargo.ozlabs.ibm.com>
On Sun, Dec 05, 2004 at 11:53:43AM +1100, Paul Mackerras wrote:
> Some of our kernel headers implement generally useful abstractions
> across all of the architectures we support. I would like to make an
> "architecture portability" library, based on the kernel headers but as
> a separate project from the kernel, and intended for use in userspace.
I'd love to see this also. We've wrapped kernel-style bitops
from ext2 in
http://oss.oracle.com/projects/ocfs2-tools/src/trunk/libocfs2/include/bitops.h
(code is very similar to the libext2fs version). We've also done the
kernel endian macros in userspace (glibc) in
http://oss.oracle.com/projects/ocfs2-tools/src/trunk/libocfs2/include/byteorder.h.
These might be useful (or not). Also, I'd suggest list.h and
rbtree.[ch]. We use them extensively, as they are nice implementations
with little to no dependancies on anything else.
Again, we've taken the approach of not including kernel headers,
instead making the kernel interface work via userspace methods. I would
love to leave that work up to this library, and then just use it.
Joel
--
Pitchers and catchers report.
Joel Becker
Senior Member of Technical Staff
Oracle Corporation
E-mail: joel.becker@oracle.com
Phone: (650) 506-8127