Subject: Definition of SHMLBA in shm.h
To: None <tech-kern@netbsd.org, tech-userlevel@netbsd.org>
From: Paul Kranenburg <pk@cs.few.eur.nl>
List: tech-userlevel
Date: 05/01/2001 17:24:28
SHMLBA is currently defined as NBPG in shm.h, which makes it unsuitable
for usr-land programs on some architectures.

I'd like to change this as follows:

===================================================================
RCS file: /cvsroot/syssrc/sys/sys/shm.h,v
retrieving revision 1.28
diff -r1.28 shm.h
84c84,89
< #define       SHMLBA          NBPG    /* Segment low boundry address multiple XXX */
---
> /* Segment low boundry address multiple XXX */
> #if defined(_KERNEL) || defined(_STANDALONE) || defined(_LKM)
> #define       SHMLBA          PAGE_SIZE
> #else
> #define       SHMLBA          sysconf(_SC_PAGESIZE)
> #endif

Is there any standards document saying that SHMLBA cannot be a non-compile-time
constant like this?

-pk