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

Thomas Weißschuh posted 2 patches 2 weeks, 5 days ago
tools/include/nolibc/Makefile                |  1 +
tools/include/nolibc/crt.h                   | 26 +++++++++
tools/include/nolibc/err.h                   | 87 ++++++++++++++++++++++++++++
tools/include/nolibc/errno.h                 |  4 ++
tools/include/nolibc/nolibc.h                |  1 +
tools/testing/selftests/nolibc/nolibc-test.c | 34 +++++++++++
6 files changed, 153 insertions(+)
[PATCH v4 0/2] tools/nolibc: add err.h
Posted by Thomas Weißschuh 2 weeks, 5 days ago
Add a few convenient helpers to print error and warning messages.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
Changes in v4:
- #include <stdbool.h> from nolibc-test.c
- Link to v3: https://patch.msgid.link/20260316-nolibc-err-h-v3-0-6ef80c051ab7@weissschuh.net

Changes in v3:
- Make sure program_invocation_{short_,}name are never NULL.
- Provide dummy definitions of program_invocation_{short_,}name
  when NOLIBC_IGNORE_ERRNO is set.
- Drop Ack from Willy.
- Link to v2: https://patch.msgid.link/20260313-nolibc-err-h-v2-0-f4481053b07a@weissschuh.net

Changes in v2:
- Fix program_invocation_name test to handle test execution as /init
- Drop already applied patches
- Link to v1: https://patch.msgid.link/20260311-nolibc-err-h-v1-0-735a9de7f15d@weissschuh.net

---
Thomas Weißschuh (2):
      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                   | 87 ++++++++++++++++++++++++++++
 tools/include/nolibc/errno.h                 |  4 ++
 tools/include/nolibc/nolibc.h                |  1 +
 tools/testing/selftests/nolibc/nolibc-test.c | 34 +++++++++++
 6 files changed, 153 insertions(+)
---
base-commit: d59131de97ee69ab4e4b8926089a6e953d699b11
change-id: 20260311-nolibc-err-h-df36a75dddf8

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

Re: [PATCH v4 0/2] tools/nolibc: add err.h
Posted by Willy Tarreau 2 weeks, 1 day ago
On Wed, Mar 18, 2026 at 04:50:15PM +0100, Thomas Weißschuh wrote:
> Add a few convenient helpers to print error and warning messages.
> 
> Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>

Thank you Thomas. For the whole series:

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

willy