[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250620100251.9877-1-w@1wt.eu>
Date: Fri, 20 Jun 2025 12:02:47 +0200
From: Willy Tarreau <w@....eu>
To: Thomas Weißschuh <thomas.weissschuh@...utronix.de>
Cc: linux-kernel@...r.kernel.org, Willy Tarreau <w@....eu>
Subject: [PATCH 0/4] tools/nolibc: assorted fixes and small updates
Trying to port a program to nolibc triggered a few trivial errors that
are worth being addressed:
- inttypes.h is missing, while being generally recommended over stdint.h
for being more portable. Here we add it, which simply includes stdint.h.
- sys/select.h is supposed to be where struct fd_set and FD_CLR() etc
are defined. Till now it was still in types.h. Let's create the file
and move these definitions there.
- memchr() was still missing, thus a trivial one was added.
Finally the help message from "make help" reported an inaccurate
installation path, omitting the dependency on $OUTPUT. This was
fixed as well.
Willy Tarreau (4):
tools/nolibc: fix misleading help message regarding installation path
tools/nolibc: add the more portable inttypes.h
tools/nolibc: move FD_* definitions to sys/select.h
tools/nolibc: add missing memchr() to string.h
tools/include/nolibc/Makefile | 4 +-
tools/include/nolibc/inttypes.h | 8 +++
tools/include/nolibc/string.h | 15 ++++++
tools/include/nolibc/sys/select.h | 56 ++++++++++++++++++++
tools/include/nolibc/types.h | 48 +----------------
tools/testing/selftests/nolibc/nolibc-test.c | 2 +
6 files changed, 85 insertions(+), 48 deletions(-)
create mode 100644 tools/include/nolibc/inttypes.h
create mode 100644 tools/include/nolibc/sys/select.h
--
2.17.5
Powered by blists - more mailing lists