Re: madvise() first draft

Oliver Xymoron (oxymoron@waste.org)
Wed, 25 Aug 1999 21:24:20 -0500 (CDT)


On Wed, 25 Aug 1999, Chuck Lever wrote:

> On Wed, 25 Aug 1999, Jeff Garzik wrote:
> > > On Wed, 25 Aug 1999, Jeff Garzik wrote:
> > > > If MADV_xxx are the same on all platforms, shouldn't they go in
> > > > include/linux somewhere (perhaps referenced by something in asm-arch/*)
> > > > ?
> > >
> > > most of the stuff in include/asm/mman.h is the same for all platforms, i
> > > believe, so i was following precedent there.
> >
> > Understand, but arch already has wads of duplicate code and constants ;)
>
> i really don't want to pull on that chain! if people agree on a new
> precedent, i'll be happy to follow it.

I believe the reason many of the duplicates exist is to make syscall
emulation for foreign binaries easier - where things were different, they
could be made to match the 'native' OS. I don't think this is much of a
concern these days. It now makes more sense for Linux to aim to minimize
its own cross-platform differences for the sake of keeping the kernel
manageable.

--
 "Love the dolphins," she advised him. "Write by W.A.S.T.E.." 

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/