Re: getrlimit() patch

2018-07-16 Thread Barath Aron
Hello, Sorry for the self-reply. I have an additional suggestion for an alternate method: getdtablesize(2) returns the current limit on the number of open files per process. This also can be used in get_max_fd function. Aron On 07/16/2018 11:24 AM, Barath Aron wrote: Hello, I made a patch

getrlimit() patch

2018-07-16 Thread Barath Aron
Hello, I made a patch that fixes (at least to me) the declaration of an unused variable if HAVE_GETRLIMIT is false. The OS I use does not have getrlimit(). Is sysconf(3) mandatory? Because it is not guarded (HAVE_SYSCONF ?). It is a few lines below where my patch applies. And a quick questi