This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Wrong SHMLBA for MIPS
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: libc-alpha at sources dot redhat dot com
- Date: Tue, 15 Jul 2003 16:37:48 -0400
- Subject: Wrong SHMLBA for MIPS
A year ago, HJ posted a patch to create a <sys/shm.h> for MIPS. It was
applied and then reverted, and <bits/shm.h> got a definition of SHMLBA. But
it's not the right one...
The kernel says:
#define SHMLBA 0x40000 /* attach addr a multiple of this */
But the MIPS <bits/shm.h> says:
/* Segment low boundary address multiple. */
#define SHMLBA (__getpagesize ())
extern int __getpagesize (void) __THROW __attribute__ ((__const__));
which works out to 4K on MIPS. Am I missing something or should
<bits/shm.h> be corrected?
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer