haiku/headers/posix
Adrien Destugues 68d37cfb3a Fix definition of PAGESIZE and B_PAGE_SIZE
On sparc, the minimal page size we can use is 8K. Since B_PAGE_SIZE and
PAGESIZE defines were hardcoded to 4K, this resulted in a lot of
confusion in all code trying to manipulate pages.

- Remove cpu.h from headers/private/kernel/arch/*. It dates back from
  NewOS and was not used anymore since our kernel uses B_PAGE_SIZE
  (PAGE_SIZE was the only thing defined in this header).
- Add posix/arch/*/limits.h with the arch specific page size and include
  it from the main limits.h.
- Adjust bios_ia32/debug.cpp which was the only place using the
  PAGE_SIZE constant from the deleted headers.
- Change OS.h to define B_PAGE_SIZE to be the same as POSIX PAGESIZE.
- Define PAGESIZE in the build header if the host OS doesn't.

Change-Id: I8c3732cf952ea3c2f088aa16d216678fbf198b96
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3558
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-01-08 12:02:16 +00:00
..
arch Fix definition of PAGESIZE and B_PAGE_SIZE 2021-01-08 12:02:16 +00:00
arpa
compat/sys
net
netinet
netinet6
sys implement mlock(), munlock() 2020-12-03 07:58:05 +00:00
alloca.h
assert.h
bsd_mem.h
complex.h
ctype.h
dirent.h
div_t.h
dlfcn.h
endian.h
errno.h
fcntl.h
fenv.h
fnmatch.h
fts.h
ftw.h
getopt.h
glob.h
grp.h
inttypes.h
iovec.h
langinfo.h
libgen.h
libio.h
limits.h Fix definition of PAGESIZE and B_PAGE_SIZE 2021-01-08 12:02:16 +00:00
locale.h
malloc_debug.h
malloc.h
math.h
memory.h
monetary.h
netdb.h
nl_types.h
null.h
poll.h
pthread.h
pwd.h
regex.h
resolv.h
sched.h
search.h
semaphore.h
setjmp.h
shadow.h
signal.h
size_t.h
spawn.h
stdint.h
stdio_ext.h
stdio_post.h
stdio_pre.h
stdio.h
stdlib.h
string.h
strings.h
syslog.h
tar.h
termios.h
time.h
uchar.h
unistd.h
utime.h
utmpx.h
wchar_t.h
wchar.h
wctype.h