tools/nolibc/types: make FD_SETSIZE configurable
authorWilly Tarreau <w@1wt.eu>
Sun, 13 Feb 2022 08:53:01 +0000 (09:53 +0100)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 24 Feb 2022 17:56:44 +0000 (09:56 -0800)
commitf3dc964bdf090119dc934955e95ef0f9abc803ac
tree0e5e1a879014c4f37aafa7a7a9bf211b2fea9db6
parentd926009c8bf6b37526889582af51312c067fbbe7
tools/nolibc/types: make FD_SETSIZE configurable

The macro was hard-coded to 256 but it's common to see it redefined.
Let's support this and make sure we always allocate enough entries for
the cases where it wouldn't be multiple of 32.

Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/include/nolibc/types.h