[PATCH 0/4] tools/nolibc: add err.h

Thomas Weißschuh posted 4 patches 3 weeks, 5 days ago
There is a newer version of this series
tools/include/nolibc/Makefile                      |  1 +
tools/include/nolibc/crt.h                         | 26 +++++++
tools/include/nolibc/err.h                         | 91 ++++++++++++++++++++++
tools/include/nolibc/errno.h                       |  2 +
tools/include/nolibc/nolibc.h                      |  1 +
tools/testing/selftests/nolibc/Makefile            |  4 +-
tools/testing/selftests/nolibc/Makefile.include    |  2 +
tools/testing/selftests/nolibc/Makefile.nolibc     |  8 +-
.../selftests/nolibc/nolibc-test-ignore-errno.c    |  6 ++
tools/testing/selftests/nolibc/nolibc-test.c       |  2 +
10 files changed, 137 insertions(+), 6 deletions(-)
[PATCH 0/4] tools/nolibc: add err.h
Posted by Thomas Weißschuh 3 weeks, 5 days ago
Add a few convenient helpers to print error and warning messages.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
Thomas Weißschuh (4):
      selftests/nolibc: add a variable for nolibc-test source files
      selftests/nolibc: validate NOLIBC_IGNORE_ERRNO compilation
      tools/nolibc: add support for program_invocation_{,short_}name
      tools/nolibc: add err.h

 tools/include/nolibc/Makefile                      |  1 +
 tools/include/nolibc/crt.h                         | 26 +++++++
 tools/include/nolibc/err.h                         | 91 ++++++++++++++++++++++
 tools/include/nolibc/errno.h                       |  2 +
 tools/include/nolibc/nolibc.h                      |  1 +
 tools/testing/selftests/nolibc/Makefile            |  4 +-
 tools/testing/selftests/nolibc/Makefile.include    |  2 +
 tools/testing/selftests/nolibc/Makefile.nolibc     |  8 +-
 .../selftests/nolibc/nolibc-test-ignore-errno.c    |  6 ++
 tools/testing/selftests/nolibc/nolibc-test.c       |  2 +
 10 files changed, 137 insertions(+), 6 deletions(-)
---
base-commit: db4f34cc063d68f329fc543a5808fe53e61fc796
change-id: 20260311-nolibc-err-h-df36a75dddf8

Best regards,
-- 
Thomas Weißschuh <linux@weissschuh.net>

Re: [PATCH 0/4] tools/nolibc: add err.h
Posted by Willy Tarreau 3 weeks, 5 days ago
Hi Thomas!

On Wed, Mar 11, 2026 at 11:00:48PM +0100, Thomas Weißschuh wrote:
> Add a few convenient helpers to print error and warning messages.

Nice! I had never heard about these variables but I agree these are
convenient and do simplify error messages production.

> Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>

For the whole series:

  Acked-by: Willy Tarreau <w@1wt.eu>

thanks,
Willy