[ 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.

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 ]