The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group

 NAME

getdtablesize - get the file descriptor table size (LEGACY)

 SYNOPSIS



#include <unistd.h>

int getdtablesize(void);

 DESCRIPTION

The getdtablesize() function is equivalent to getrlimit() with the RLIMIT_NOFILE option.

This interface need not be reentrant.

 RETURN VALUE

The getdtablesize() function returns the current soft limit as if obtained from a call to getrlimit() with the RLIMIT_NOFILE option.

 ERRORS

No errors are defined.

 EXAMPLES

None.

 APPLICATION USAGE

There is no direct relationship between the value returned by getdtablesize() and {OPEN_MAX} defined in <limits.h>.

The getrlimit() function returns a value of type rlim_t. This interface, returning an int, may have problems representing appropriate values in the future. Applications should use the getrlimit() function instead.

 FUTURE DIRECTIONS

None.

 SEE ALSO

close(), getrlimit(), open(), select(), setrlimit(), <limits.h>, <unistd.h>.

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]