tools/nolibc: add getopt()

Introduce a getopt() implementation based on the one from musl.
The only deviations are adaption to the kernel coding style and nolibc
infrastructure and removal of multi-byte support.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Acked-by: Willy Tarreau <w@1wt.eu>
This commit is contained in:
Thomas Weißschuh 2025-04-11 11:00:48 +02:00 • committed by Thomas Weißschuh
commit bae3cd708e
3 changed files with 103 additions and 0 deletions