LibC: use auxv for getpagesize

This commit is contained in:
2026-07-01 13:06:57 +03:00
parent 59c59c3316
commit 8be90c49bc
2 changed files with 7 additions and 4 deletions

View File

@@ -705,6 +705,8 @@ int chroot(const char* path)
int getpagesize(void)
{
if (auto value = getauxval(AT_PAGESZ))
return value;
return PAGE_SIZE;
}