<unistd.h>: explain why getpagesize() is better than getauxval() as well as sysconf().

I thought we'd already done this, but apparently not.

Bug: http://b/315511637
Change-Id: I0581438a6f551be9750b6679a9f3ad06c83f1e9b
This commit is contained in:
Elliott Hughes 2024-06-03 19:19:22 +00:00
parent b851c4c5bf
commit b631ec7409

View file

@ -353,7 +353,7 @@ int acct(const char* _Nullable __path);
/**
* [getpagesize(2)](https://man7.org/linux/man-pages/man2/getpagesize.2.html)
* returns the system's page size. This is slightly faster than going via
* sysconf().
* sysconf(), and avoids the linear search in getauxval().
*
* Returns the system's page size in bytes.
*/