]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: fd: move the hap_fd_{clr,set,isset} functions to fd.h
authorWilly Tarreau <w@1wt.eu>
Thu, 25 Jan 2018 15:37:04 +0000 (16:37 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 29 Jan 2018 15:03:15 +0000 (16:03 +0100)
commit322e6c7e73191ead3b868c683bf76b373f522736
tree47d4be262328366a090468935049cbc337f0c5a6
parent745c60eac6f70d79a30ba8c4cbb8ede4dd3450ef
MINOR: fd: move the hap_fd_{clr,set,isset} functions to fd.h

These functions were created for poll() in 1.5-dev18 (commit 80da05a4) to
replace the previous FD_{CLR,SET,ISSET} that were shared with select()
because some libcs enforce a limit on FD_SET. But FD_SET doesn't seem
to be universally MT-safe, requiring locks in the select() code that
are not needed in the poll code. So let's move back to the initial
situation where we used to only use bit fields, since that has been in
use since day one without a problem, and let's use these hap_fd_*
functions instead of FD_*.

This patch only moves the functions to fd.h and revives hap_fd_isset()
that was recently removed to kill an "unused" warning.
include/proto/fd.h
src/ev_poll.c