Mark getpagesize() const.
If folks want to use this instead of PAGE_SIZE, let's let the compiler
know that it doesn't need to be called more than once. Using "const"
rather than "pure" lets us cover more cases, and although this function
may need to check global state, it's _immutable_ global state, so it's
effectively "const".
Test: llvm-objdump -d
Change-Id: I0b13de79d44b57545258121df7cdd6490a9a5be1
diff --git a/libc/include/unistd.h b/libc/include/unistd.h
index 98fab52..9385264 100644
--- a/libc/include/unistd.h
+++ b/libc/include/unistd.h
@@ -302,7 +302,7 @@
int acct(const char* _Nullable __path);
-int getpagesize(void);
+int getpagesize(void) __attribute_const__;
long syscall(long __number, ...);