From b631ec7409cd5e1b5179fa60d39bf1590ae007ae Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 3 Jun 2024 19:19:22 +0000 Subject: [PATCH] : 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 --- libc/include/unistd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/include/unistd.h b/libc/include/unistd.h index bc708e13b..2552ca8c6 100644 --- a/libc/include/unistd.h +++ b/libc/include/unistd.h @@ -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. */