b30c1933a272d13b3d7918afd053dcd328d700c2 blob 221 bytes (raw)
1
2
3
4
5
6
7
8
9
10
11
| | #define _GNU_SOURCE
#include <unistd.h>
#include <limits.h>
#include <sys/resource.h>
int getdtablesize(void)
{
struct rlimit rl;
getrlimit(RLIMIT_NOFILE, &rl);
return rl.rlim_cur < INT_MAX ? rl.rlim_cur : INT_MAX;
}
|
debug log:
solving b30c193 ...
found b30c193 in https://git.vuxu.org/mirror/musl/
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).