Subject: Re: PROPOSAL: removal of brk()/sbrk().
To: der Mouse <mouse@Rodents.Montreal.QC.CA>
From: Simon Burge <simonb@wasabisystems.com>
List: tech-kern
Date: 02/26/2002 10:13:09
[ tech-userspace changed to tech-userlevel ]

der Mouse wrote:

> > Removal of the brk() and sbrk() interfaces, or actually: stop using
> > the break() system call for process heap.
> 
> What about legacy static binaries?  ISTM the scheme you propose is a
> win only if you put mmap segments immediately after _end (give or take
> a page or so), but that will break legacy binaries that expect to use
> brk().
> 
> Or Am I Missing Something?

Isn't that covered with

	Set sys_obreak() in kernel #ifdef COMPAT_15 and change start
	of mmap space calculation. Quite straightforward.

?

Simon.
--
Simon Burge                            <simonb@wasabisystems.com>
NetBSD CDs, Support and Service:    http://www.wasabisystems.com/