[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OSF mmap flags 0201



Jason Gunthorpe writes:
 > 
 > On Wed, 6 Jan 1999, Paul Slootman wrote:
 > 
 > > On Tue 05 Jan 1999, David A. van Leeuwen wrote:
 > > 
 > > > My latest sendmail (8.9.1-15) still gives loads and loads of
 > > > `unimplemented OSF mmap 0201' messages.  Should this
 > > >  - either be implemented in alpha
 > > >  - not be used in sendmail?
 > > 
 > > I have no idea... I use exim, and that works fine :-)
 > 
 > How about these:
 > 
 > Jan  4 15:33:37 faure kernel: bash: unimplemented OSF mmap flags 0402 
 > Jan  4 15:33:37 faure last message repeated 4 times

Hello,

Altough ignoring the warning message in all cases, seems to works
well, I think the problem should be fixed in the kernel source, and I
do not believe this has been done in 2.1. The part concerned is the
following definitions in include/asm-alpha/mman.h):

   /* not used by linux, but here to make sure we don't clash with OSF/1 defines */ 
  #define MAP_HASSEMAPHORE 0x0200
  #define MAP_INHERIT	0x0400
  #define MAP_UNALIGNED	0x0800


Unless the semantics of all these flags is actually the default in
Linux (which may be the case), these definitions should be commented
out, so that programs that test for the existence of this defines
(like libc, sendmail,...)  do not find them and do not rely on their
semantics.

In particular it may be better if the libc was build with
kernel-headers that comment them out.

Loic



Reply to: