I noticed when looking into something else that we can simplify some getpagesize-using code by removing some dependencies and using sysconf (_SC_PAGESIZE) where that might be safer. While I was at it, I updated the getpagesize doc and fixed what seems to be an obvious porting bug (pointers do not always fit into unsigned long).
Paul Eggert (9): getpagesize: improve doc getpagesize: remove outdated ref getcwd: simplify abort bug checking memchr,strncat: prefer sysconf (_SC_PAGESIZE) mprotect: don’t assume pointers fit in long maint: avoid some test getpagesize dependencies free-posix-tests: port to plain POSIX sigsegv-tests: port to plain POSIX ssfmalloc-tests: simplify by using sysconf ChangeLog | 68 ++++++++++++++++++++++++++++ doc/glibc-functions/getpagesize.texi | 13 ++++++ lib/.cppi-disable | 1 - m4/getcwd-abort-bug.m4 | 19 ++------ m4/memchr.m4 | 4 +- m4/mprotect.m4 | 24 ++++------ m4/strncat.m4 | 4 +- modules/getcwd | 1 - modules/memcasecmp-tests | 1 - modules/memchr-tests | 1 - modules/memchr2-tests | 1 - modules/memcmp-tests | 1 - modules/memmem-tests | 2 - modules/memrchr-tests | 1 - modules/rawmemchr-tests | 1 - modules/strncat-tests | 1 - modules/strnlen-tests | 1 - modules/strstr-tests | 1 - modules/unistr/u16-chr-tests | 1 - modules/unistr/u16-cmp-tests | 1 - modules/unistr/u16-stpncpy-tests | 1 - modules/unistr/u16-strchr-tests | 1 - modules/unistr/u16-strncat-tests | 1 - modules/unistr/u16-strncpy-tests | 1 - modules/unistr/u16-strnlen-tests | 1 - modules/unistr/u32-chr-tests | 1 - modules/unistr/u32-cmp-tests | 1 - modules/unistr/u32-stpncpy-tests | 1 - modules/unistr/u32-strchr-tests | 1 - modules/unistr/u32-strncat-tests | 1 - modules/unistr/u32-strncpy-tests | 1 - modules/unistr/u32-strnlen-tests | 1 - modules/unistr/u8-chr-tests | 1 - modules/unistr/u8-cmp-tests | 1 - modules/unistr/u8-stpncpy-tests | 1 - modules/unistr/u8-strchr-tests | 1 - modules/unistr/u8-strncat-tests | 1 - modules/unistr/u8-strncpy-tests | 1 - modules/unistr/u8-strnlen-tests | 1 - modules/wcsstr-tests | 1 - tests/test-free.c | 2 +- tests/test-getcwd.c | 10 ++-- tests/test-sigsegv-catch-segv1.c | 2 +- tests/test-sigsegv-catch-segv2.c | 2 +- tests/test-ssfmalloc.c | 13 +----- tests/zerosize-ptr.h | 2 +- 46 files changed, 108 insertions(+), 90 deletions(-) -- 2.45.2