linux-stable/tools/include/nolibc
Ammar Faizi 7efd762e97 nolibc/sys: Implement getpagesize(2) function
This function returns the page size used by the running kernel. The
page size value is taken from the auxiliary vector at 'AT_PAGESZ' key.

'getpagesize(2)' is assumed as a syscall becuase the manpage placement
of this function is in entry 2 ('man 2 getpagesize') despite there is
no real 'getpagesize(2)' syscall in the Linux syscall table. Define
this function in 'sys.h'.

Signed-off-by: Ammar Faizi <ammarfaizi2@gnuweeb.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
2023-01-10 13:33:56 -08:00
..
arch-aarch64.h tools/nolibc: add auxiliary vector retrieval for arm64 2023-01-10 13:33:56 -08:00
arch-arm.h tools/nolibc: add auxiliary vector retrieval for arm 2023-01-10 13:33:56 -08:00
arch-i386.h tools/nolibc: add auxiliary vector retrieval for i386 2023-01-10 13:33:56 -08:00
arch-mips.h tools/nolibc: add auxiliary vector retrieval for mips 2023-01-10 13:33:56 -08:00
arch-riscv.h tools/nolibc: add auxiliary vector retrieval for riscv 2023-01-10 13:33:56 -08:00
arch-s390.h tools/nolibc: add auxiliary vector retrieval for s390 2023-01-10 13:33:56 -08:00
arch-x86_64.h tools/nolibc: add auxiliary vector retrieval for x86_64 2023-01-10 13:33:56 -08:00
arch.h nolibc: add support for s390 2023-01-09 09:36:05 -08:00
ctype.h tools/nolibc: fix missing includes causing build issues at -O0 2023-01-09 09:36:05 -08:00
errno.h tools/nolibc: make errno a weak symbol instead of a static one 2023-01-10 13:33:55 -08:00
Makefile tools/nolibc: add a help target to list supported targets 2022-06-20 09:43:19 -07:00
nolibc.h tools/nolibc: also mention how to build by just setting the include path 2022-04-20 17:05:45 -07:00
signal.h tools/nolibc: fix missing includes causing build issues at -O0 2023-01-09 09:36:05 -08:00
std.h tools/nolibc/std: move the standard type definitions to std.h 2022-04-20 17:05:33 -07:00
stdio.h tools/nolibc: fix missing includes causing build issues at -O0 2023-01-09 09:36:05 -08:00
stdlib.h nolibc/stdlib: Implement getauxval(3) function 2023-01-10 13:33:56 -08:00
string.h tools/nolibc: prevent gcc from making memset() loop over itself 2023-01-09 09:36:05 -08:00
sys.h nolibc/sys: Implement getpagesize(2) function 2023-01-10 13:33:56 -08:00
time.h tools/nolibc: fix missing includes causing build issues at -O0 2023-01-09 09:36:05 -08:00
types.h tools/nolibc: fix missing includes causing build issues at -O0 2023-01-09 09:36:05 -08:00
unistd.h tools/nolibc: fix missing includes causing build issues at -O0 2023-01-09 09:36:05 -08:00