This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]