Back to index

glibc  2.9
getdtsz.c File Reference
#include <limits.h>
#include <unistd.h>
#include <sys/resource.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


int __getdtablesize (void)

Function Documentation

int __getdtablesize ( void  )

Definition at line 26 of file getdtsz.c.

  struct rlimit ru;

  /* This should even work if `getrlimit' is not implemented.  POSIX.1
     does not define this function but we will generate a stub which
     returns -1.  */
  return __getrlimit (RLIMIT_NOFILE, &ru) < 0 ? OPEN_MAX : ru.rlim_cur;

Here is the call graph for this function:

Here is the caller graph for this function: