Re: [PATCH 0/9] getpagesize simplifications etc.

2024-06-14 Thread Paul Eggert
On 6/14/24 13:46, Collin Funk wrote: Isn't sysconf not available on Windows? Yes, it's not. But the sysconf uses in question should be protected by #ifdef and so not compiled on MS-Windows, so it shouldn't be a problem. Maybe implementing _SC_PAGESIZE and some other simple ones would work

Re: [PATCH 0/9] getpagesize simplifications etc.

2024-06-14 Thread Collin Funk
On 6/14/24 1:19 PM, Paul Eggert wrote: > 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 seem

[PATCH 0/9] getpagesize simplifications etc.

2024-06-14 Thread Paul Eggert
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 a