This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: Header files for kernel and glibc
- To: Linus Torvalds <torvalds@transmeta.com>
- Subject: Re: Header files for kernel and glibc
- From: Ulrich Drepper <drepper@cygnus.com>
- Date: 25 May 1998 23:55:19 -0700
- Cc: "H.J. Lu" <hjl@lucon.org>, rth@cygnus.com, GNU C Library <libc-hacker@cygnus.com>
- References: <Pine.LNX.3.95.980525220405.31628G-100000@penguin.transmeta.com>
- Reply-To: drepper@cygnus.com (Ulrich Drepper)
Linus Torvalds <torvalds@transmeta.com> writes:
> Anyway, I'd be _really_ much happier if [g]libc only used the really basic
> header files: things like "asm/posix-types.h", "asm/errno.h" etc are
> obviously fine to use from the kernel, but at the same time I'd be even
> happier if glibc was compilable even if you didn't have any kernel sources
> at all.
The problem are not really these little headers. They are mainly
ioctls.h and the filesystem headers. Maybe I forgot some others but
these are definitely on the list I don't want to care for. It should
be quite easy to define them using real types, as uint32_t (i.e, the
ISO C 9x types) plus perhaps a few more #ifdef __KERNEL protectors.
-- Uli
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com `------------------------