]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tools/nolibc: add getopt()
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Fri, 11 Apr 2025 09:00:48 +0000 (11:00 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Tue, 22 Apr 2025 08:59:00 +0000 (10:59 +0200)
commitbae3cd708e8adef27ee7657cd877d9ba9aa4f2ae
treed6c5a7d750eea5c51dcf9142296475d22f148646
parent5197b7b87cbfeed61b69ff54532bb58a0d55cb0b
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>
tools/include/nolibc/Makefile
tools/include/nolibc/getopt.h [new file with mode: 0644]
tools/include/nolibc/nolibc.h