Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* ls: unimplemented OSF mmap flags 0402
@ 1998-08-20  9:51 Robert Wilhelm
  1998-08-20 10:52 ` Matti Aarnio
  0 siblings, 1 reply; 3+ messages in thread
From: Robert Wilhelm @ 1998-08-20  9:51 UTC (permalink / raw)
  To: axp-list


I get a  "unimplemented OSF mmap flags 0402" message for nearly every program,
when glibc tries to load the locales.

ALPHA LX164 board
RedHat 5.1
glibc-2.0.7-19
kernel 2.1.115  + d-axp-10 diffs


void
_nl_load_locale (struct loaded_l10nfile *file, int category)
{
...
  /* Map in the file's data.  */
  save_err = errno;
#ifndef MAP_COPY
  /* Linux seems to lack read-only copy-on-write.  */
#define MAP_COPY MAP_PRIVATE
#endif
#ifndef	MAP_FILE
  /* Some systems do not have this flag; it is superfluous.  */
#define	MAP_FILE 0
#endif
#ifndef MAP_INHERIT
  /* Some systems might lack this; they lose.  */
#define MAP_INHERIT 0
#endif
  filedata = (void *) __mmap ((caddr_t) 0, st.st_size, PROT_READ,
			      MAP_FILE|MAP_COPY|MAP_INHERIT, fd, 0);
...
}

strace shows following
...
personality(0 /* PER_??? */)            = 0
osf_getsysinfo(0x2d, 0x11ffffa20, 0x11ffffa88, 0, 0x2) = 0
osf_setsysinfo(0xe, 0x11ffffa20, 0x11ffffa88, 0, 0x2) = 0
getxpid()                               = 23425
brk(0)                                  = 0x12010abd4
brk(0x12010ac24)                        = 0x12010ac24
brk(0x12010c000)                        = 0x12010c000
open("/usr/share/locale/locale.alias", O_RDONLY) = 4
fstat(4, {st_mode=01, st_size=903600833, ...}) = 0
mmap(0, 4831819280, PROT_WRITE|PROT_EXEC|0x1b0, 0 /* MAP_??? */, 2, 0) = 0x20000014000
read(4, "# Locale name alias data base.\n"..., 8192) = 2032
read(4, "", 8192)                       = 0
close(4)                                = 0
munmap(0x20000014000, 8192)             = 0
open("/usr/share/i18n/locale.alias", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de_DE.iso88591/LC_CTYPE", O_RDONLY) = 4
fstat(4, {st_mode=01, st_size=903600833, ...}) = 0
mmap(0, 4831835968, PROT_WRITE|0x38, 0 /* MAP_??? */, 2, 0) = 0x20000014000
close(4)  
-- 
Robert Wilhelm


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

* Re: ls: unimplemented OSF mmap flags 0402
  1998-08-20  9:51 ls: unimplemented OSF mmap flags 0402 Robert Wilhelm
@ 1998-08-20 10:52 ` Matti Aarnio
  1998-08-20 11:17   ` Robert Wilhelm
  0 siblings, 1 reply; 3+ messages in thread
From: Matti Aarnio @ 1998-08-20 10:52 UTC (permalink / raw)
  To: axp-list

> I get a  "unimplemented OSF mmap flags 0402" message for nearly every program,
> when glibc tries to load the locales.
> 
> ALPHA LX164 board
> RedHat 5.1
> glibc-2.0.7-19
> kernel 2.1.115  + d-axp-10 diffs

	I did recompile glibc-2.0.7-19 at my 2.1.115 system,
	and now made the resulting RPMs available at:

		ftp://mea.tmt.tele.fi/linux/

	The filenames are unchanged, though (causing likely confusion..).
	You may also have to --force the installation (rpm --force -Uvh)...

	Your alternate is to modify kernel's  arch/alpha/kernel/osf_sys.c
	approach to the matter of mmap() flags -- like comment away the
	test...

....
> -- 
> Robert Wilhelm

/Matti Aarnio <matti.aarnio@sonera.fi>


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

* Re: ls: unimplemented OSF mmap flags 0402
  1998-08-20 10:52 ` Matti Aarnio
@ 1998-08-20 11:17   ` Robert Wilhelm
  0 siblings, 0 replies; 3+ messages in thread
From: Robert Wilhelm @ 1998-08-20 11:17 UTC (permalink / raw)
  To: axp-list

On Thu, Aug 20, 1998 at 01:52:39PM +0300, Matti Aarnio wrote:
> 
> 	Your alternate is to modify kernel's  arch/alpha/kernel/osf_sys.c
> 	approach to the matter of mmap() flags -- like comment away the
> 	test...

Thanks for your help. 
I will just delete  _MAP_INHERIT from the test in arch/alpha/kernel/osf_sys.c for now.

-- 
Robert Wilhelm


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

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

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-08-20  9:51 ls: unimplemented OSF mmap flags 0402 Robert Wilhelm
1998-08-20 10:52 ` Matti Aarnio
1998-08-20 11:17   ` Robert Wilhelm

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