> > Both OSs define getdtablesize() as sysconf(_SC_OPEN_MAX). sysconf(3)
> > returns a long, so it seems more correct to make getdtablesize(3) return
> > a long or ssize_t. The return value has to be signed because sysconf(3)
> > is specified by POSIX to return -1 and set errno on failure.
>
> No, fds are ints so returning a long from getdtablesize(3) would be
> misleading and useless.
I want to return to this point.
We cannot change the types of old fundamentals without incurring
many new problems.
int dtablesize = getdtablesize();
Hello new compiler warning everytime.