#include "tbm_bufmgr_backend.h"
#include "list.h"
+#include <sys/resource.h>
+
#ifdef DEBUG
int bDebug;
#endif
return 1;
}
/* LCOV_EXCL_STOP */
+
+int tbm_bufmgr_get_fd_limit(void)
+{
+ struct rlimit lim;
+
+ if (getrlimit(RLIMIT_NOFILE, &lim))
+ return 1024;
+
+ return (int)lim.rlim_cur;
+}
+