Re: [PATCH v2 4/4] tools/nolibc: provide the portable sys/select.h
From: Thomas Weißschuh
Date: Sun Nov 02 2025 - 07:52:11 EST
On 2025-11-02 11:46:11+0100, Willy Tarreau wrote:
> Modern programs tend to include sys/select.h to get FD_SET() and
> FD_CLR() definitions as well as struct fd_set, but in our case it
> didn't exist.
>
> The definitions were moved from types.h to sys/select.h, which is
> now included from nolibc.h, and the sys_select() definition moved
> there as well from sys.h.
>
> Signed-off-by: Willy Tarreau <w@xxxxxx>
> ---
> tools/include/nolibc/Makefile | 1 +
> tools/include/nolibc/nolibc.h | 1 +
> tools/include/nolibc/sys.h | 45 -------------
> tools/include/nolibc/sys/select.h | 103 ++++++++++++++++++++++++++++++
> tools/include/nolibc/types.h | 47 --------------
> 5 files changed, 105 insertions(+), 92 deletions(-)
> create mode 100644 tools/include/nolibc/sys/select.h
Applied.