tools/nolibc: Implement poll() based on ppoll()
authorWilly Tarreau <w@1wt.eu>
Thu, 21 Jan 2021 07:20:27 +0000 (08:20 +0100)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 21 Jan 2021 18:06:44 +0000 (10:06 -0800)
commit5b1c827ca3b349801e2faff4185118cfa74f94c6
treeb43a7962b05c86870788308576297d5b8a85c92f
parentbe60ca41fbaa93bc8f92b24e34d8cc62af41300d
tools/nolibc: Implement poll() based on ppoll()

Some architectures like arm64 do not implement poll() and have to use
ppoll() instead. This commit therefore makes poll() use ppoll() when
available. This is a port of nolibc's upstream commit 800f75c13ede to
the Linux kernel.

Fixes: 66b6f755ad45 ("rcutorture: Import a copy of nolibc")
Tested-by: Valentin Schneider <valentin.schneider@arm.com>
Tested-by: Mark Rutland <mark.rutland@arm.com> [arm64]
Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/include/nolibc/nolibc.h