Re: MADV_SPACEAVAIL and MADV_FREE in pre2-3

From: Andreas Jaeger (aj@suse.de)
Date: Sun Mar 19 2000 - 11:11:52 EST


>>>>> David S Miller writes:

David> From: Andreas Jaeger <aj@suse.de>
David> Date: 17 Mar 2000 12:05:04 +0100

David> pre2-3 defines MADV_SPACEAVAIL in asm-alpha/mman.h and MADV_FREE in
David> asm-sparc/mman.h.

David> These defines are not used anywhere else in the kernel - and therefore
David> the madvise function will return EINVAL for these defines.

David> Is this really desired?

David> They are values provided by OSF and Solaris respectively.

David> If this makes for a big issue wrt. glibc we could move them to
David> the OSF/Solaris emulation code on Alpha and Sparc but I think
David> this would be really silly and would like to not have to do this.

There's no need to change asm-*/mman.h since that header is not used
by glibc.

So far I haven't added them to glibc - and will not. AFAIU those
flags are defined - but not used at all. That's the reason why I'm
not adding them (yet) to glibc. But I'd like to point this out so
that people can consider implementing MADV_SPACEAVAIL and MADV_FREE
- and only if it's implemented it should be added to glibc.

Andreas

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.rhein-neckar.de

- 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/



This archive was generated by hypermail 2b29 : Thu Mar 23 2000 - 21:00:26 EST