mirror of
https://github.com/fluencelabs/musl
synced 2025-06-20 10:16:47 +00:00
10 lines
181 B
C
10 lines
181 B
C
![]() |
#include <limits.h>
|
||
|
#include <sys/resource.h>
|
||
|
|
||
|
int getdtablesize(void)
|
||
|
{
|
||
|
struct rlimit rl;
|
||
|
getrlimit(RLIMIT_NOFILE, &rl);
|
||
|
return rl.rlim_max < INT_MAX ? rl.rlim_max : INT_MAX;
|
||
|
}
|