public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [ANNOUNCE] linux-libc-headers 2.6.8.1
@ 2004-08-29 20:32 Mariusz Mazur
  2004-08-30  6:28 ` Erik Andersen
  2004-08-30  9:22 ` Andrew Walrond
  0 siblings, 2 replies; 9+ messages in thread
From: Mariusz Mazur @ 2004-08-29 20:32 UTC (permalink / raw)
  To: linux-kernel

Available at http://ep09.pld-linux.org/~mmazur/linux-libc-headers/
Changes:
- bugfix release, a couple of minor changes here and there


Nothing special, really. One bigger change - on archs that have >1 possible 
page sizes (PAGE_SIZE definition in asm/page.h) we're now using a call to 
libc's getpagesize(), so don't count on it being static on archs like ia64.

Enjoy.

-- 
In the year eighty five ten
God is gonna shake his mighty head
He'll either say,
"I'm pleased where man has been"
Or tear it down, and start again

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: [ANNOUNCE] linux-libc-headers 2.6.8.1
@ 2004-08-30 13:36 Albert Cahalan
  0 siblings, 0 replies; 9+ messages in thread
From: Albert Cahalan @ 2004-08-30 13:36 UTC (permalink / raw)
  To: linux-kernel mailing list; +Cc: andersen, mmazur

Erik Andersen writes:
> On Sun Aug 29, 2004 at 10:32:13PM +0200, Mariusz Mazur wrote:

>> Nothing special, really. One bigger change - on archs that
>> have >1 possible page sizes (PAGE_SIZE definition in asm/page.h)
>> we're now using a call to libc's getpagesize(), so don't count
>> on it being static on archs like ia64.
>
> I really do not like this change.  Since PAGE_SIZE has always
> been a constant, the change you have made is likely to break a
> fair amount of code, basically any code doing stuff like:
>   
>  static int* foo[PAGE_SIZE];
 
SuSE has already done this, so it's nothing new.

> Your change will result in cryptic errors such as
>
>     "error: variable-size type declared outside of any function"
>     "error: storage size of `foo' isn't constant"
 
You'll get a line number too. At least it's a compile-time
error, instead of a quiet data-corrupting run-time error.

> depending on whether the declaration is outside a function or in one.
> I think it would be much better to either
>
>     a) remove PAGE_SIZE or make using it an error somehow,
 
Nope. That breaks more code than necessary.

>     b) make PAGE_SIZE an install time config option
 
Nope. Executables need to run on multiple kernels.

>     c) declare that on architectures such as mips that support 
>        variable PAGE_SIZE values, the libc kernel headers shall
>        always provide the largest fixed size value of PAGE_SIZE

Nope. This is silent data corruption.

You'll break stuff like this:   P_rss *= (PAGE_SIZE/1024);



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

end of thread, other threads:[~2004-08-30 13:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-29 20:32 [ANNOUNCE] linux-libc-headers 2.6.8.1 Mariusz Mazur
2004-08-30  6:28 ` Erik Andersen
2004-08-30  7:24   ` David S. Miller
2004-08-30  7:48     ` Erik Andersen
2004-08-30  8:07       ` William Lee Irwin III
2004-08-30  8:43         ` Erik Andersen
2004-08-30 11:17       ` Mariusz Mazur
2004-08-30  9:22 ` Andrew Walrond
  -- strict thread matches above, loose matches on Subject: below --
2004-08-30 13:36 Albert Cahalan

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