Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Philip Blundell <Philip.Blundell@pobox.com>
Subject: Re: linux-nfs-0.4.21 for Alpha glibc
Date: Thu, 01 Jan 1998 00:28:16 +0000	[thread overview]
Message-ID: <f5bc73ba9783784216a42368dbdfdc0b.axp-list@archive.invalid> (raw)

>   Date: 	Sat, 27 Dec 1997 22:58:30 +0000
>   From: Philip Blundell <Philip.Blundell@pobox.com>
>
>   The rule of thumb when writing code for glibc is to avoid including
>   any kernel headers - if you need definitions that are only found in
>   the kernel headers then you should duplicate them in your own code
>
>In the long run I think we will need to clean up the kernel headers,

Indeed.  One of the reasons for separating them now is that it gives Linus a 
free rein to do whatever cleanups he wants in kernel space without breaking 
user-space applications.

Once they _have_ been cleaned up (which isn't going to happen in the short 
term, by which I mean Linux 2.2/glibc 2.1) we can go back to using them from 
userspace.  However, this still won't mean that including <linux/*> headers is 
acceptable for a user program in the general case; that's something that 
should be restricted only to the very few cases where it's actually necessary.

In general user programs should still go via the appropriate libc header, 
which may well just be a wrapper round one or more kernel headers.  If there 
are `public' interfaces that the kernel exports, such as the sg device, we 
can add libc headers for them.

p.

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

             reply	other threads:[~1998-01-01  0:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-01-01  0:28 Philip Blundell [this message]
  -- strict thread matches above, loose matches on Subject: below --
1997-12-27 22:58 linux-nfs-0.4.21 for Alpha glibc Philip Blundell
read-only archive

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