[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Base Operating System and Extensions Technical Reference, 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 AIX 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.

Implementation Specifics

This subroutine is part of Base Operating System (BOS) Runtime.

Related Information

The close subroutine, open subroutine, select subroutine.


[ Previous | Next | Contents | Glossary | Home | Search ]