diff -r fd948e5af26e -r 2cbdb482d325 src/cx/allocator.h --- a/src/cx/allocator.h Thu Dec 04 18:57:54 2025 +0100 +++ b/src/cx/allocator.h Fri Dec 05 16:11:39 2025 +0100 @@ -146,6 +146,17 @@ const CxAllocator *allocator, void *data); /** + * Returns the system's memory page size. + * + * If the page size cannot be retrieved from the system, + * a default of 4096 bytes is assumed. + * + * @return the system's memory page size in bytes + */ +cx_attr_nodiscard +CX_EXPORT unsigned long cx_system_page_size(void); + +/** * Reallocate a previously allocated block and changes the pointer in-place, * if necessary. *