On 2025-07-09 20:44:43+0200, Willy Tarreau wrote:
Hi Thomas,
On Wed, Jul 09, 2025 at 08:36:49PM +0200, Thomas Weißschuh wrote:
+#define FD_CLR(fd, set) BITSET_CLR(fd, (set)->fds) +#define FD_SET(fd, set) BITSET_SET(fd, (set)->fds) +#define FD_ISSET(fd, set) BITSET_ISSET(fd, (set)->fds) +#define FD_ZERO(set) BITSET_ZERO((set)->fds)
These could be inline function I think.
It's better not do, because man says they are macros, and I've seen programs using ifdef on them (not to mean that it's common but it's supposed to be possible according to the man).
Ack. OTOH, we could define a noop-macro for the functions:
static __inline__ void FD_SET(...) { } #define FD_SET FD_SET