]> www.infradead.org Git - users/hch/uuid.git/commit
tools/nolibc: implement strerror()
authorThomas Weißschuh <linux@weissschuh.net>
Fri, 26 Apr 2024 11:08:57 +0000 (13:08 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Sat, 29 Jun 2024 07:44:57 +0000 (09:44 +0200)
commitd20d0b10f883085a44afd1a3af1bbd77ed53acf7
treece3b6539dc00258926e15d48ccec772b63ede5b9
parent582facfa5a71c8211714ffe74f5167d403b968a7
tools/nolibc: implement strerror()

strerror() is commonly used.
For example in kselftest which currently needs to do an #ifdef NOLIBC to
handle the lack of strerror().

Keep it simple and reuse the output format of perror() for strerror().

Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
tools/include/nolibc/stdio.h
tools/testing/selftests/nolibc/nolibc-test.c