@rodrigc requested to switch to getdtablesize() as it will be more close with
what was implemented on OpenBSD. I have no objection with it as it has a good
side and the FD can be tunable.
However, it will be slower than FD_SETSIZE as it needs to calloc more than 1024.
Not a big deal to be honest.