*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> getdtablesize (2)              
Title
Content
Arch
Section
 

getdtablesize(2)

Contents


NAME    [Toc]    [Back]

       getdtablesize - Get the size of the descriptor table

SYNOPSIS    [Toc]    [Back]

       #include <unistd.h>

       int getdtablesize(
               void );

STANDARDS    [Toc]    [Back]

       Interfaces  documented  on  this reference page conform to
       industry standards as follows:

       getdtablesize(): XSH4.2, XSH5.0

       Refer to the standards(5) reference page for more information
 about industry standards and associated tags.

DESCRIPTION    [Toc]    [Back]

       The getdtablesize() function returns the maximum number of
       file descriptors in a process' descriptor table. Each process
  has a fixed size descriptor table that is guaranteed
       to have at least 64 slots.  The entries in the  descriptor
       table  are  numbered  with  small  integers  starting at 0
       (zero).

       The getdtablesize() function returns the total  number  of
       file  descriptors  that a process can have open simultaneously.
 Each process is limited to a fixed number  of  open
       file  descriptors.  This limit is at least 64. The systemdefined
 limit is configurable. If it is greater  than  64,
       the  system will allocate more file descriptors for a process
 up to the defined maximum. See  the  descriptions  of
       the   open_max_hard   and   open_max_soft   attributes  in
       sys_attrs_proc(5) for information about changing the  perprocess
 limit on open file descriptors.

RETURN VALUES    [Toc]    [Back]

       The  getdtablesize()  function  returns  the  size  of the
       descriptor table, and is always successful.

SEE ALSO    [Toc]    [Back]

      
      
       Functions: close(2), getrlimit(2), open(2), select(2)

       Standards: standards(5)



                                                 getdtablesize(2)
[ Back ]
 Similar pages
Name OS Title
getdtablesize FreeBSD get descriptor table size
getdtablesize OpenBSD get descriptor table size
getdtablesize NetBSD get descriptor table size
getdtablesize Linux get descriptor table size
getdtablesize IRIX get file descriptor table size
vx_ninode HP-UX Determines the internal node table size
amd64_get_ldt OpenBSD manage amd64 per-process Local Descriptor Table entries
i386_get_ldt OpenBSD manage i386 per-process Local Descriptor Table entries
i386_get_ldt NetBSD manage i386 per-process Local Descriptor Table entries
i386_set_ldt NetBSD manage i386 per-process Local Descriptor Table entries
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service