]> granicus.if.org Git - strace/commit
Use sysconf(_SC_PAGESIZE) instead of hardcoded PAGE_SHIFT
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 5 Mar 2013 14:58:24 +0000 (14:58 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 5 Mar 2013 16:03:53 +0000 (16:03 +0000)
commitc76a363af8bfc7b83558253fae38ae3d255e0aa9
tree80afea822554e0b6b3469c6ee75a51e8f516d0e6
parentaba62927974603bb1ac0b659f6a4f8afb9899c83
Use sysconf(_SC_PAGESIZE) instead of hardcoded PAGE_SHIFT

PAGE_SHIFT couldn't be reliably obtained at compile time,
thanks to Chris Metcalf for the hint.

* mem.c: Do not include <sys/user.h>.
[SH64] Do not include <asm/page.h>.
(get_pagesize): New function.
(sys_mmap_pgoff, sys_old_mmap_pgoff): Use it.
mem.c