public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Userland headers available
@ 2004-01-23 18:07 Mariusz Mazur
  2004-01-23 18:47 ` Daniel Jacobowitz
  0 siblings, 1 reply; 10+ messages in thread
From: Mariusz Mazur @ 2004-01-23 18:07 UTC (permalink / raw)
  To: linux-kernel

At http://ep09.pld-linux.org/~mmazur/glibc-kernel-headers/ there are userland 
headers for linux, derived from 2.6 kernels with lots of 2.4 compatibility 
fixes. CVS repo can be found at cvs.pld-linux.org/glibc-kernel-headers (anon 
and webcvs). These headers are currently used to compile a whole linux distro 
(ftp.pld-linux.org/dists/ac) for x86, sparc, amd64, alpha and ppc, but 
general fixes are applied to all archs since we never know if a new arch 
won't be added (amd64 was added just a month-two ago). #1 feature is that 
they are and will be maintained (currently three people are working on them) 
and bugs are mostly fixed instantly. Enjoy.


-- 
Każdy człowiek, który naprawdę żyje, nie ma charakteru, nie może go mieć.
Charakter jest zawsze martwy, otacza cię zgniła struktura przeniesiona z 
przeszłości. Jeżeli działasz zgodnie z charakterem wtedy nie działasz w ogóle
- jedynie mechanicznie reagujesz.                 { Osho }

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Userland headers available
  2004-01-23 18:07 Userland headers available Mariusz Mazur
@ 2004-01-23 18:47 ` Daniel Jacobowitz
  2004-01-23 19:04   ` Mariusz Mazur
                     ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Daniel Jacobowitz @ 2004-01-23 18:47 UTC (permalink / raw)
  To: Mariusz Mazur; +Cc: linux-kernel, debian-glibc

On Fri, Jan 23, 2004 at 07:07:17PM +0100, Mariusz Mazur wrote:
> At http://ep09.pld-linux.org/~mmazur/glibc-kernel-headers/ there are userland 
> headers for linux, derived from 2.6 kernels with lots of 2.4 compatibility 
> fixes. CVS repo can be found at cvs.pld-linux.org/glibc-kernel-headers (anon 
> and webcvs). These headers are currently used to compile a whole linux distro 
> (ftp.pld-linux.org/dists/ac) for x86, sparc, amd64, alpha and ppc, but 
> general fixes are applied to all archs since we never know if a new arch 
> won't be added (amd64 was added just a month-two ago). #1 feature is that 
> they are and will be maintained (currently three people are working on them) 
> and bugs are mostly fixed instantly. Enjoy.

I've done precisely the same thing for Debian - if I find the time,
I'll compare...

I would really like to come up with an approach to maintain this
interface definition in the kernel source.  I'm still trying to think
of a way to do it without breaking compatibility or kernel builds.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Userland headers available
  2004-01-23 18:47 ` Daniel Jacobowitz
@ 2004-01-23 19:04   ` Mariusz Mazur
  2004-01-23 19:15   ` Chris Friesen
  2004-01-23 20:28   ` Sam Ravnborg
  2 siblings, 0 replies; 10+ messages in thread
From: Mariusz Mazur @ 2004-01-23 19:04 UTC (permalink / raw)
  To: linux-kernel

On Friday 23 of January 2004 19:47, Daniel Jacobowitz wrote:
> I've done precisely the same thing for Debian - if I find the time,
> I'll compare...

How much testing did you have?

> I would really like to come up with an approach to maintain this
> interface definition in the kernel source.  I'm still trying to think
> of a way to do it without breaking compatibility or kernel builds.

As I really would like that (less work for me :) I do not think this is 
possible. First thing - 2.4 compatibility in 2.6 kernel would seem weird to 
say at least. Second - I've ripped out kernel code where I could and used 
glibc includes instead - this is (a) The Right Thing (tm) and (b) practically 
undoable inside kernel or would require huge amounts of work, which is really 
better of left outside.

-- 
Każdy człowiek, który naprawdę żyje, nie ma charakteru, nie może go mieć.
Charakter jest zawsze martwy, otacza cię zgniła struktura przeniesiona z 
przeszłości. Jeżeli działasz zgodnie z charakterem wtedy nie działasz w ogóle
- jedynie mechanicznie reagujesz.                 { Osho }

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Userland headers available
  2004-01-23 18:47 ` Daniel Jacobowitz
  2004-01-23 19:04   ` Mariusz Mazur
@ 2004-01-23 19:15   ` Chris Friesen
  2004-01-23 19:39     ` Chris Friesen
  2004-01-23 20:28   ` Sam Ravnborg
  2 siblings, 1 reply; 10+ messages in thread
From: Chris Friesen @ 2004-01-23 19:15 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: Mariusz Mazur, linux-kernel, debian-glibc

Daniel Jacobowitz wrote:

 > I would really like to come up with an approach to maintain this 
interface
 > definition in the kernel source.  I'm still trying to think of a
 > way to do it without breaking compatibility or kernel builds.

The obvious way is to have the kernel headers include the userland
headers, then everything below that be wrapped in "#ifdef __KERNEL__". 
Userland then includes the normal kernel headers, but only gets the 
userland-safe ones.

This sounds too easy though--I'm sure I've missed something, but I can't 
think what....

Chris


-- 
Chris Friesen                    | MailStop: 043/33/F10
Nortel Networks                  | work: (613) 765-0557
3500 Carling Avenue              | fax:  (613) 765-2986
Nepean, ON K2H 8E9 Canada        | email: cfriesen@nortelnetworks.com


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Userland headers available
  2004-01-23 19:15   ` Chris Friesen
@ 2004-01-23 19:39     ` Chris Friesen
  2004-01-23 23:47       ` jw schultz
  2004-01-24  1:38       ` H. Peter Anvin
  0 siblings, 2 replies; 10+ messages in thread
From: Chris Friesen @ 2004-01-23 19:39 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: Mariusz Mazur, linux-kernel, debian-glibc

Friesen, Christopher [CAR:7Q28:EXCH] wrote:

> The obvious way is to have the kernel headers include the userland
> headers, then everything below that be wrapped in "#ifdef __KERNEL__". 
> Userland then includes the normal kernel headers, but only gets the 
> userland-safe ones.

I just realized this wasn't clear.  I envision a new set of headers in 
the kernel that are clean to export to userland.  The current headers 
then include the appropriate userland-clean ones, and everything below 
that is kernel only.

This lets the kernel maintain the userland-clean headers explicitly, and 
we don't have the work of cleaning them up for glibc.

Chris



-- 
Chris Friesen                    | MailStop: 043/33/F10
Nortel Networks                  | work: (613) 765-0557
3500 Carling Avenue              | fax:  (613) 765-2986
Nepean, ON K2H 8E9 Canada        | email: cfriesen@nortelnetworks.com


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Userland headers available
  2004-01-23 18:47 ` Daniel Jacobowitz
  2004-01-23 19:04   ` Mariusz Mazur
  2004-01-23 19:15   ` Chris Friesen
@ 2004-01-23 20:28   ` Sam Ravnborg
  2 siblings, 0 replies; 10+ messages in thread
From: Sam Ravnborg @ 2004-01-23 20:28 UTC (permalink / raw)
  To: Mariusz Mazur, linux-kernel, debian-glibc

On Fri, Jan 23, 2004 at 01:47:55PM -0500, Daniel Jacobowitz wrote:
> I would really like to come up with an approach to maintain this
> interface definition in the kernel source.  I'm still trying to think
> of a way to do it without breaking compatibility or kernel builds.

Yell if you need any kbuild related help.

	Sam

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Userland headers available
  2004-01-23 19:39     ` Chris Friesen
@ 2004-01-23 23:47       ` jw schultz
  2004-01-24  1:38       ` H. Peter Anvin
  1 sibling, 0 replies; 10+ messages in thread
From: jw schultz @ 2004-01-23 23:47 UTC (permalink / raw)
  To: linux-kernel

On Fri, Jan 23, 2004 at 02:39:57PM -0500, Chris Friesen wrote:
> Friesen, Christopher [CAR:7Q28:EXCH] wrote:
> 
> >The obvious way is to have the kernel headers include the userland
> >headers, then everything below that be wrapped in "#ifdef __KERNEL__". 
> >Userland then includes the normal kernel headers, but only gets the 
> >userland-safe ones.
> 
> I just realized this wasn't clear.  I envision a new set of headers in 
> the kernel that are clean to export to userland.  The current headers 
> then include the appropriate userland-clean ones, and everything below 
> that is kernel only.
> 
> This lets the kernel maintain the userland-clean headers explicitly, and 
> we don't have the work of cleaning them up for glibc.

This gets discussed every few months.  I think the most
recent was in August.

http://groups.google.com/groups?q=linux-kernel+include/abi&hl=en&lr=&ie=UTF-8&selm=lXHU.431.1%40gated-at.bofh.it&rnum=1

	(google linux-kernel include/abi)

-- 
________________________________________________________________
	J.W. Schultz            Pegasystems Technologies
	email address:		jw@pegasys.ws

		Remember Cernan and Schmitt

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Userland headers available
  2004-01-23 19:39     ` Chris Friesen
  2004-01-23 23:47       ` jw schultz
@ 2004-01-24  1:38       ` H. Peter Anvin
  2004-01-25 23:30         ` Daniel Jacobowitz
  1 sibling, 1 reply; 10+ messages in thread
From: H. Peter Anvin @ 2004-01-24  1:38 UTC (permalink / raw)
  To: linux-kernel

Followup to:  <4011788D.3070606@nortelnetworks.com>
By author:    Chris Friesen <cfriesen@nortelnetworks.com>
In newsgroup: linux.dev.kernel
>
> Friesen, Christopher [CAR:7Q28:EXCH] wrote:
> 
> > The obvious way is to have the kernel headers include the userland
> > headers, then everything below that be wrapped in "#ifdef __KERNEL__". 
> > Userland then includes the normal kernel headers, but only gets the 
> > userland-safe ones.
> 
> I just realized this wasn't clear.  I envision a new set of headers in 
> the kernel that are clean to export to userland.  The current headers 
> then include the appropriate userland-clean ones, and everything below 
> that is kernel only.
> 
> This lets the kernel maintain the userland-clean headers explicitly, and 
> we don't have the work of cleaning them up for glibc.
> 

We've referred to this for quite a while as the "ABI header project";
it's been targetted for 2.7, since it missed the 2.6 freeze.

We have set up a mailing list at:

	http://zytor.com/mailman/listinfo/linuxabi

The goal is to get a formal exportable version of the kernel ABI that
user-space libraries can use.

	-hpa

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Userland headers available
  2004-01-24  1:38       ` H. Peter Anvin
@ 2004-01-25 23:30         ` Daniel Jacobowitz
  2004-01-26  0:09           ` H. Peter Anvin
  0 siblings, 1 reply; 10+ messages in thread
From: Daniel Jacobowitz @ 2004-01-25 23:30 UTC (permalink / raw)
  To: H. Peter Anvin; +Cc: linux-kernel

On Sat, Jan 24, 2004 at 01:38:06AM +0000, H. Peter Anvin wrote:
> Followup to:  <4011788D.3070606@nortelnetworks.com>
> By author:    Chris Friesen <cfriesen@nortelnetworks.com>
> In newsgroup: linux.dev.kernel
> >
> > Friesen, Christopher [CAR:7Q28:EXCH] wrote:
> > 
> > > The obvious way is to have the kernel headers include the userland
> > > headers, then everything below that be wrapped in "#ifdef __KERNEL__". 
> > > Userland then includes the normal kernel headers, but only gets the 
> > > userland-safe ones.
> > 
> > I just realized this wasn't clear.  I envision a new set of headers in 
> > the kernel that are clean to export to userland.  The current headers 
> > then include the appropriate userland-clean ones, and everything below 
> > that is kernel only.
> > 
> > This lets the kernel maintain the userland-clean headers explicitly, and 
> > we don't have the work of cleaning them up for glibc.
> > 
> 
> We've referred to this for quite a while as the "ABI header project";
> it's been targetted for 2.7, since it missed the 2.6 freeze.
> 
> We have set up a mailing list at:
> 
> 	http://zytor.com/mailman/listinfo/linuxabi
> 
> The goal is to get a formal exportable version of the kernel ABI that
> user-space libraries can use.

Are the list archives broken, or has there never been traffic on this
list?

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Userland headers available
  2004-01-25 23:30         ` Daniel Jacobowitz
@ 2004-01-26  0:09           ` H. Peter Anvin
  0 siblings, 0 replies; 10+ messages in thread
From: H. Peter Anvin @ 2004-01-26  0:09 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: linux-kernel

Daniel Jacobowitz wrote:
> 
> Are the list archives broken, or has there never been traffic on this
> list?
> 

There was some traffic on the klibc list, but I don't think things got 
started after the new list was created.

	-hpa

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2004-01-26  0:09 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-23 18:07 Userland headers available Mariusz Mazur
2004-01-23 18:47 ` Daniel Jacobowitz
2004-01-23 19:04   ` Mariusz Mazur
2004-01-23 19:15   ` Chris Friesen
2004-01-23 19:39     ` Chris Friesen
2004-01-23 23:47       ` jw schultz
2004-01-24  1:38       ` H. Peter Anvin
2004-01-25 23:30         ` Daniel Jacobowitz
2004-01-26  0:09           ` H. Peter Anvin
2004-01-23 20:28   ` Sam Ravnborg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox