Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* "unimplemented OSF mmap flags 0201"
@ 1998-11-15 23:25 furio ercolessi
  1998-11-16  0:06 ` furio ercolessi
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: furio ercolessi @ 1998-11-15 23:25 UTC (permalink / raw)
  To: axp-list; +Cc: furio

I am trying to build sendmail 8.9.1 with Berkeley db 2.5.9 (from
SleepyCat) on a stock RH 5.2 system (2.0.35, glibc 2.0.7-29,
egcs 1.0.3).

It apparently works, but I get messages
	kernel: sendmail: unimplemented OSF mmap flags 0201
in /var/log/messages, apparently every time sendmail starts.
This does not happen when I use the standard libdb included
with glibc.

I had a brief email exchange with SleepyCat, and they say
that, most likely, Alpha Linux states in some include file 
that these flags are supported, while in reality they are not.
I found a similar comment in a very old message in the archives:
http://archive.redhat.com/axp-list/1996/1996-November/0275.html

So I made a little research. The offending message comes from function
osf_mmap in arch/alpha/kernel/osf_sys.c :
[...]
if (flags & (MAP_HASSEMAPHORE | MAP_INHERIT | MAP_UNALIGNED))
	printk("%s: unimplemented OSF mmap flags %04lx\n", current->comm, flags);
[...]
and include/asm-alpha/mman.h contains
#define MAP_HASSEMAPHORE 0x0200
#define MAP_INHERIT      0x0400
#define MAP_UNALIGNED    0x0800
so my case (0201) should have to do with MAP_HASSEMAPHORE.
The db software indeed checks if this variable is defined
(in os/os_map.c), and calls the mmap function with modified
flags if it is.  mmap(2) does not mention MAP_HASSEMAPHORE
among the supported flags.

To summarize, it appears to me that include/asm-alpha/mman.h
is indeed faulty in defining things which are not really
supported in glibc, thus causing kernel error messages and
perhaps misfunctioning applications.
If all this is true, include/asm-alpha/mman.h should be
modified in the next kernel distributions, removing these
three definitions.

furio ercolessi
Spin 
Trieste (Italy)


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

end of thread, other threads:[~1998-11-28 20:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-11-15 23:25 "unimplemented OSF mmap flags 0201" furio ercolessi
1998-11-16  0:06 ` furio ercolessi
1998-11-16  5:17 ` Matti Aarnio
1998-11-16  9:43   ` furio ercolessi
1998-11-28 20:50 ` Using non-parity RAM in AS200? John Scott

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