getdtablehi

Returns the largest open file descriptor index.

Library:LibC
Classification:Other
Service:File and Directory I/O

Syntax

  #include <unistd.h> 
   
  int getdtablehi ( void );
  

Return Values

If successful, returns the largest open file descriptor index, plus 1. Otherwise, returns 0 and sets errno.

Decimal

Constant

Description

105

ENOCONTEXT

The calling thread has no context.

Remarks

The getdtablehi function is not thread-safe, since other threads from the process could be increasing the number of open files.

See Also