Searched hist:"7 efd762e" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/tools/include/nolibc/ |
H A D | sys.h | 7efd762e Tue Jan 10 01:24:33 CST 2023 Ammar Faizi <ammarfaizi2@gnuweeb.org> 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>
|