getdtablesize function

int getdtablesize()

Return the maximum number of file descriptors the current process could possibly have.

Implementation

int getdtablesize() {
  _getdtablesize ??= Libc()
      .dylib
      .lookupFunction<ffi.Int32 Function(), _dart_getdtablesize>(
          'getdtablesize');
  return _getdtablesize!();
}