selftests/nolibc: simplify call to ioperm
authorThomas Weißschuh <linux@weissschuh.net>
Mon, 3 Jul 2023 08:11:08 +0000 (10:11 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 23 Aug 2023 02:38:02 +0000 (04:38 +0200)
commit67eb617a8e1e46ee726d0b2689dd459aab4e5e18
treef68e0c23b9a432c377c1154f9f63a57cc2918c26
parent2d7481eb5d885ffdc1b9d948151e983341e45c38
selftests/nolibc: simplify call to ioperm

Since commit 53fcfafa8c5c ("tools/nolibc/unistd: add syscall()") nolibc
has support for syscall(2).
Use it to get rid of some ifdef-ery.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Willy Tarreau <w@1wt.eu>
tools/testing/selftests/nolibc/nolibc-test.c