tools/nolibc: sys.h: apply __sysret() helper
authorZhangjin Wu <falcon@tinylab.org>
Wed, 28 Jun 2023 13:13:25 +0000 (21:13 +0800)
committerWilly Tarreau <w@1wt.eu>
Sun, 6 Aug 2023 10:27:53 +0000 (12:27 +0200)
commitd27447bc2e0a0c120fb84c33e46885a14a9216eb
treec921ae6ac72140c0707e349d407bd11770bcb35b
parentc8d54fa37c5390cfbb63f63900a2466469eafb3a
tools/nolibc: sys.h: apply __sysret() helper

Use __sysret() to shrink most of the library routines to oneline code.

Removed 266 lines of duplicated code.

Reviewed-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Zhangjin Wu <falcon@tinylab.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
tools/include/nolibc/sys.h