[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Base Operating System and Extensions, Volume 1

getdtablesize Subroutine

Purpose

Gets the descriptor table size.

Library

Standard C Library (libc.a)

Syntax

#include <unistd.h>

int getdtablesize (void)

Description

The getdtablesize subroutine is used to determine the size of the file descriptor table.

The size of the file descriptor table for a process is set by the ulimit command or by the setrlimit subroutine. The getdtablesize subroutine returns the current size of the table as reported by the getrlimit subroutine. If getrlimit reports that the table size is unlimited, getdtablesize instead returns the value of OPEN_MAX, which is the largest possible size of the table.

Note
The getdtablesize subroutine returns a runtime value that is specific to the version of the operating system on which the application is running. In AIX 4.3.1, getdtablesize returns a value that is set in the limits file, which can be different from system to system.

Return Values

The getdtablesize subroutine returns the size of the descriptor table.

Related Information

The close (close Subroutine) subroutine, open (open, openx, open64, creat, or creat64 Subroutine) subroutine, select subroutine.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]